/[PAMELA software]/DarthVader/OrbitalInfo/src/OrbitalInfo.cpp
ViewVC logotype

Diff of /DarthVader/OrbitalInfo/src/OrbitalInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mocchiut, Fri Oct 31 15:49:00 2008 UTC revision 1.13 by mocchiut, Tue Nov 11 10:46:44 2008 UTC
# Line 7  ClassImp(OrbitalInfo); Line 7  ClassImp(OrbitalInfo);
7    
8  OrbitalInfoTrkVar::OrbitalInfoTrkVar(){  OrbitalInfoTrkVar::OrbitalInfoTrkVar(){
9    this->Clear();    this->Clear();
10      //  Eij = new TMatrixD(3,3);
11      //  Sij = new TMatrixD(3,3);
12  }  }
13    
14  void OrbitalInfoTrkVar::Clear(Option_t *t){  void OrbitalInfoTrkVar::Clear(Option_t *t){
15    trkseqno = 0;    trkseqno = 0;
16    pitch = -1000.;    pitch = -1000.;
17      Eij.Zero();
18      Sij.Zero();
19  }  }
20    
21    void OrbitalInfoTrkVar::Delete(Option_t *t){
22      //  if ( Eij ) Eij->Delete();
23      //  if ( Sij ) Sij->Delete();
24    }
25    
26  OrbitalInfo::OrbitalInfo(){  OrbitalInfo::OrbitalInfo(){
27    OrbitalInfoTrk = 0; //ELENA    OrbitalInfoTrk = 0; //ELENA
# Line 22  OrbitalInfo::OrbitalInfo(){ Line 30  OrbitalInfo::OrbitalInfo(){
30    
31  void OrbitalInfo::Delete(Option_t *t){ //ELENA  void OrbitalInfo::Delete(Option_t *t){ //ELENA
32    //    //
33      //  if ( Iij ) Iij->Delete();
34    if(OrbitalInfoTrk){    if(OrbitalInfoTrk){
35      OrbitalInfoTrk->Delete(); //ELENA      OrbitalInfoTrk->Delete(); //ELENA
36      delete OrbitalInfoTrk;  //ELENA      delete OrbitalInfoTrk;  //ELENA
# Line 30  void OrbitalInfo::Delete(Option_t *t){ / Line 39  void OrbitalInfo::Delete(Option_t *t){ /
39  }; //ELENA  }; //ELENA
40    
41  void OrbitalInfo::Set(){//ELENA  void OrbitalInfo::Set(){//ELENA
42    if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA    if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA}  
43      //  if ( !Iij ) Iij = new TMatrixD(3,3);
44  }//ELENA  }//ELENA
45    
46  OrbitalInfoTrkVar *OrbitalInfo::GetOrbitalInfoTrkVar(Int_t itrk){  OrbitalInfoTrkVar *OrbitalInfo::GetOrbitalInfoTrkVar(Int_t itrk){
# Line 66  void OrbitalInfo::Clear(Option_t *t){ Line 76  void OrbitalInfo::Clear(Option_t *t){
76    BB0 = -1000.;    BB0 = -1000.;
77    L = -1000.;    L = -1000.;
78    
79    londip = -1000.;  //   londip = -1000.;
80    latdip = -1000.;  //   latdip = -1000.;
81    altdip = -1000.;  //   altdip = -1000.;
82    
83    loncgm = -1000.;  //   loncgm = -1000.;
84    latcgm = -1000.;  //   latcgm = -1000.;
85    altcgm = -1000.;  //   altcgm = -1000.;
86    
87    loncbm = -1000.;  //   loncbm = -1000.;
88    latcbm = -1000.;  //   latcbm = -1000.;
89    altcbm = -1000.;  //   altcbm = -1000.;
90    
91    std::fill_n(cutoff, 20, 0.);    //  std::fill_n(cutoff, 20, 0.);
92      //  std::fill_n(cutoff, 2, 0.);
93      cutoffsvl = 0.;
94    
95    // Quaternions    // Quaternions
96    q0 = -1000.;    q0 = -1000.;
# Line 96  void OrbitalInfo::Clear(Option_t *t){ Line 108  void OrbitalInfo::Clear(Option_t *t){
108    //  phimag = -1000.;    //  phimag = -1000.;
109    //  ethamag = -1000.;    //  ethamag = -1000.;
110    
111    pamzenitangle = -1000.;    //  pamzenitangle = -1000.;
112    pamBangle = -1000.;    //  pamBangle = -1000.;
113      Iij.Zero();
114    
115    mode = 0;    mode = 0;
116    //  std::fill_n(goodAttitude, 5, 0);    //  std::fill_n(goodAttitude, 5, 0);
# Line 123  void OrbitalInfo::GetLevel2Struct(cOrbit Line 135  void OrbitalInfo::GetLevel2Struct(cOrbit
135    l2->BB0 = BB0;    l2->BB0 = BB0;
136    l2->L = L;    l2->L = L;
137    
138    l2->londip = londip;  //   l2->londip = londip;
139    l2->latdip = latdip;  //   l2->latdip = latdip;
140    l2->altdip = altdip;  //   l2->altdip = altdip;
141    
142    l2->loncgm = loncgm;  //   l2->loncgm = loncgm;
143    l2->latcgm = latcgm;  //   l2->latcgm = latcgm;
144    l2->altcgm = altcgm;  //   l2->altcgm = altcgm;
145    
146    l2->loncbm = loncbm;  //   l2->loncbm = loncbm;
147    l2->latcbm = latcbm;  //   l2->latcbm = latcbm;
148    l2->altcbm = altcbm;  //   l2->altcbm = altcbm;
149    
150    memcpy(l2->cutoff, cutoff, sizeof(cutoff));    l2->cutoffsvl = cutoffsvl;
151    //  memcpy(l2->cutoffsvl, cutoffsvl, sizeof(cutoffsvl));
152    
153    // Quaternions    // Quaternions
154    l2->q0 = q0;    l2->q0 = q0;
# Line 173  void OrbitalInfo::SetFromLevel2Struct(cO Line 186  void OrbitalInfo::SetFromLevel2Struct(cO
186    BB0 = l2->BB0;    BB0 = l2->BB0;
187    L = l2->L;    L = l2->L;
188    
189    londip = l2->londip;  //   londip = l2->londip;
190    latdip = l2->latdip;  //   latdip = l2->latdip;
191    altdip = l2->altdip;  //   altdip = l2->altdip;
192    
193    loncgm = l2->loncgm;  //   loncgm = l2->loncgm;
194    latcgm = l2->latcgm;  //   latcgm = l2->latcgm;
195    altcgm = l2->altcgm;  //   altcgm = l2->altcgm;
196    
197    loncbm = l2->loncbm;  //   loncbm = l2->loncbm;
198    latcbm = l2->latcbm;  //   latcbm = l2->latcbm;
199    altcbm = l2->altcbm;  //   altcbm = l2->altcbm;
200    
201    memcpy(cutoff, l2->cutoff, sizeof(l2->cutoff));  //  memcpy(cutoff, l2->cutoff, sizeof(l2->cutoff));
202      l2->cutoffsvl = cutoffsvl;
203    
204    // Quaternions    // Quaternions
205    q0 = l2->q0;    q0 = l2->q0;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23