1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* Copyright (C) 2006 by pamelaprod * |
* Copyright (C) 2006 by pamelaprod * |
3 |
* pamelaprod@P1.pamela * |
* pamelaprod@P1.pamela * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
7 |
* the Free Software Foundation; either version 2 of the License, or * |
* the Free Software Foundation; either version 2 of the License, or * |
8 |
* (at your option) any later version. * |
* (at your option) any later version. * |
9 |
* * |
* * |
10 |
* This program is distributed in the hope that it will be useful, * |
* This program is distributed in the hope that it will be useful, * |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 |
* GNU General Public License for more details. * |
* GNU General Public License for more details. * |
14 |
* * |
* * |
15 |
* You should have received a copy of the GNU General Public License * |
* You should have received a copy of the GNU General Public License * |
16 |
* along with this program; if not, write to the * |
* along with this program; if not, write to the * |
17 |
* Free Software Foundation, Inc., * |
* Free Software Foundation, Inc., * |
18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 |
***************************************************************************/ |
***************************************************************************/ |
20 |
#ifndef FIRST_H |
#ifndef FIRST_H |
21 |
#define FIRST_H |
#define FIRST_H |
22 |
|
|
23 |
#include <TObject.h> |
#include <TObject.h> |
24 |
#include <iostream> |
#include <iostream> |
25 |
|
|
26 |
#include "TROOT.h" |
#include "TROOT.h" |
27 |
|
|
28 |
#include "YMcmd.h" |
#include "YMcmd.h" |
29 |
//#include "OrbitalInfoStruct.h" |
//#include "OrbitalInfoStruct.h" |
30 |
/** |
/** |
31 |
@author pamelaprod |
@author pamelaprod |
32 |
*/ |
*/ |
33 |
class Quaternions: public InclinationInfoItem { |
class Quaternions: public InclinationInfoItem { |
34 |
public: |
public: |
35 |
|
|
36 |
Quaternions(); |
Quaternions(); |
37 |
~Quaternions(); |
~Quaternions(); |
38 |
|
|
39 |
//Int_t CodeErrQua; |
//Int_t CodeErrQua; |
40 |
|
|
41 |
}; |
}; |
42 |
|
|
43 |
class InclinationInfo: public TObject { |
class InclinationInfo: public TObject { |
44 |
//private: |
|
45 |
//Double_t k1; |
public: |
46 |
//Double_t k2; |
|
47 |
//void coefplane(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2); |
InclinationInfo(); |
48 |
//Double_t AngBetAxes(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2); |
~InclinationInfo(); |
49 |
//Double_t ValueT(Double_t x1,Double_t y1, Double_t z1, Double_t n1, Double_t n2); |
|
50 |
//Double_t AngBetPlan(Double_t x1,Double_t y1, Double_t z1, Double_t n1, Double_t n2); |
Double_t Tangazh; |
51 |
|
Double_t Ryskanie; |
52 |
public: |
Double_t Kren; |
53 |
|
|
54 |
InclinationInfo(); |
bool mode; |
55 |
~InclinationInfo(); |
// Float_t dircutoff; |
56 |
|
|
57 |
// Nico's variables // |
void TransAngle(Double_t x,Double_t y,Double_t z,Double_t Vx0,Double_t Vy0, Double_t Vz0, Double_t q0, Double_t q1, Double_t q2, Double_t q3); |
58 |
//Int_t nicos1; |
|
59 |
//Int_t nicos2; |
// float_t procRegidity(double_t L, double_t B, double_t R); |
60 |
//Int_t nicos3; |
|
61 |
//Int_t nicos4; |
void Clear(); |
62 |
// End nico's // |
}; |
63 |
|
|
64 |
// Our variables // |
#endif |
|
float_t A11; |
|
|
float_t A12; |
|
|
float_t A13; |
|
|
// float_t A21; |
|
|
// float_t A22; |
|
|
// float_t A23; |
|
|
// Angles RCS of OCS |
|
|
// float_t AXrXo; |
|
|
// float_t AXrYo; |
|
|
// float_t AXrZo; |
|
|
// float_t AYrXo; |
|
|
// float_t AYrYo; |
|
|
// float_t AYrZo; |
|
|
// float_t AZrXo; |
|
|
// float_t AZrYo; |
|
|
// float_t AZrZo; |
|
|
|
|
|
// float_t AXrZXo; |
|
|
// float_t AXrXYo; |
|
|
// float_t AXrYZo; |
|
|
// float_t AYrZXo; |
|
|
// float_t AYrXYo; |
|
|
// float_t AYrYZo; |
|
|
// float_t AZrZXo; |
|
|
// float_t AZrXYo; |
|
|
// float_t AZrYZo; |
|
|
|
|
|
// float_t ApXrZXoZ; |
|
|
// float_t ApXrXYoZ; |
|
|
// float_t ApXrYZoZ; |
|
|
// float_t ApYrZXoZ; |
|
|
// float_t ApYrXYoZ; |
|
|
// float_t ApYrYZoZ; |
|
|
// float_t ApZrZXoZ; |
|
|
// float_t ApZrXYoZ; |
|
|
// float_t ApZrYZoZ; |
|
|
|
|
|
// float_t AXrZXo_2m; |
|
|
// float_t AXrXYo_2m; |
|
|
// float_t AXrYZo_2m; |
|
|
// float_t AYrZXo_2m; |
|
|
// float_t AYrXYo_2m; |
|
|
// float_t AYrYZo_2m; |
|
|
// float_t AZrZXo_2m; |
|
|
// float_t AZrXYo_2m; |
|
|
// float_t AZrYZo_2m; |
|
|
|
|
|
// float_t ApXrZXoZ_2m; |
|
|
// float_t ApXrXYoZ_2m; |
|
|
// float_t ApXrYZoZ_2m; |
|
|
// float_t ApYrZXoZ_2m; |
|
|
// float_t ApYrXYoZ_2m; |
|
|
// float_t ApYrYZoZ_2m; |
|
|
// float_t ApZrZXoZ_2m; |
|
|
// float_t ApZrXYoZ_2m; |
|
|
// float_t ApZrYZoZ_2m; |
|
|
|
|
|
Double_t XXRCS; |
|
|
Double_t YXRCS; |
|
|
Double_t ZXRCS; |
|
|
Double_t XYRCS; |
|
|
Double_t YYRCS; |
|
|
Double_t ZYRCS; |
|
|
Double_t XZRCS; |
|
|
Double_t YZRCS; |
|
|
Double_t ZZRCS; |
|
|
|
|
|
Double_t Tangazh; |
|
|
Double_t Ryskanie; |
|
|
Double_t Kren; |
|
|
|
|
|
bool mode; |
|
|
Float_t dircutoff; |
|
|
|
|
|
short int Sign_1(double_t a, short int b){ |
|
|
if (a>0){b=1;}; |
|
|
if (a<0){b=-1;} |
|
|
else {b=0;}; |
|
|
return b;}; |
|
|
void QuaternionstoAngle(Quaternions); |
|
|
void TransAngle(Double_t x,Double_t y,Double_t z,Double_t Vx0,Double_t Vy0, Double_t Vz0, Double_t gamar, Double_t ksir, Double_t tetar, Double_t q0, Double_t q1, Double_t q2, Double_t q3); |
|
|
|
|
|
// float_t procRegidity(double_t L, double_t B, double_t R); |
|
|
|
|
|
// UInt_t absTime; |
|
|
// UInt_t OBT; |
|
|
// UInt_t pkt_num; |
|
|
|
|
|
void Clear(); |
|
|
}; |
|
|
|
|
|
#endif |
|