/[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.8 by mocchiut, Tue Mar 20 20:56:29 2007 UTC revision 1.10 by mocchiut, Mon Nov 26 08:01:13 2007 UTC
# Line 41  OrbitalInfo::OrbitalInfo(){ Line 41  OrbitalInfo::OrbitalInfo(){
41    phi = -1000.;    phi = -1000.;
42    etha = -1000.;    etha = -1000.;
43    
44    // Euler angles (local field reference frame)  //   // Euler angles (local field reference frame)
45    thetamag = -1000.;  //   thetamag = -1000.;
46    phimag = -1000.;  //   phimag = -1000.;
47    ethamag = -1000.;  //   ethamag = -1000.;
48      mode = 0;
49    std::fill_n(goodAttitude, 5, 0);  //  std::fill_n(goodAttitude, 5, 0);
50  }  }
51    
52    
53  void OrbitalInfo::Clear(){  void OrbitalInfo::Clear(Option_t *t){
54    absTime = 0;    absTime = 0;
55    OBT = 0;    OBT = 0;
56    pkt_num = 0;    pkt_num = 0;
# Line 92  void OrbitalInfo::Clear(){ Line 92  void OrbitalInfo::Clear(){
92    etha = -1000.;    etha = -1000.;
93    
94    // Euler angles (local field reference frame)    // Euler angles (local field reference frame)
95    thetamag = -1000.;    //  thetamag = -1000.;
96    phimag = -1000.;    //  phimag = -1000.;
97    ethamag = -1000.;    //  ethamag = -1000.;
98    
99    std::fill_n(goodAttitude, 5, 0);    mode = 0;
100      //  std::fill_n(goodAttitude, 5, 0);
101  }  }
102    
103  /**  /**
# Line 143  void OrbitalInfo::GetLevel2Struct(cOrbit Line 144  void OrbitalInfo::GetLevel2Struct(cOrbit
144    l2->phi = phi;    l2->phi = phi;
145    l2->etha = etha;    l2->etha = etha;
146    
147      l2->mode = mode;
148    // Euler angles (local field reference frame)    // Euler angles (local field reference frame)
149    l2->thetamag = thetamag;  //   l2->thetamag = thetamag;
150    l2->phimag = phimag;  //   l2->phimag = phimag;
151    l2->ethamag = ethamag;  //   l2->ethamag = ethamag;
152    
153    memcpy(l2->goodAttitude, goodAttitude, sizeof(goodAttitude));  //   memcpy(l2->goodAttitude, goodAttitude, sizeof(goodAttitude));
154  }  }
155    
156  void OrbitalInfo::SetFromLevel2Struct(cOrbitalInfo *l2){  void OrbitalInfo::SetFromLevel2Struct(cOrbitalInfo *l2){
# Line 192  void OrbitalInfo::SetFromLevel2Struct(cO Line 194  void OrbitalInfo::SetFromLevel2Struct(cO
194    phi = l2->phi;    phi = l2->phi;
195    etha = l2->etha;    etha = l2->etha;
196    
197      mode = l2->mode;
198    // Euler angles (local field reference frame)    // Euler angles (local field reference frame)
199    thetamag = l2->thetamag;  //   thetamag = l2->thetamag;
200    phimag = l2->phimag;  //   phimag = l2->phimag;
201    ethamag = l2->ethamag;  //   ethamag = l2->ethamag;
202    
203    memcpy(goodAttitude, l2->goodAttitude, sizeof(l2->goodAttitude));  //   memcpy(goodAttitude, l2->goodAttitude, sizeof(l2->goodAttitude));
204  }  }
205    
206  ClassImp(OrbitalInfo)  ClassImp(OrbitalInfo)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23