Changeset 7181 for trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
- Timestamp:
- 07/12/05 14:31:02 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r7179 r7181 93 93 MSrcPosCalc::MSrcPosCalc(const char *name, const char *title) 94 94 : fObservatory(NULL), fPointPos(NULL), fSourcePos(NULL), fSrcPosCam(NULL), 95 fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), f IsWobbleMode(kFALSE)95 fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), fMode(kDefault) 96 96 { 97 97 fName = name ? name : "MSrcPosCalc"; … … 209 209 void MSrcPosCalc::SetSrcPos(TVector2 v) const 210 210 { 211 if (f IsWobbleMode)211 if (fMode==kWobble) 212 212 { 213 213 fSrcPosAnti->SetXY(v); … … 230 230 Bool_t MSrcPosCalc::ReInit(MParList *plist) 231 231 { 232 if (fMode==kOffData) 233 { 234 SetSrcPos(TVector2()); 235 return kTRUE; 236 } 237 232 238 MRawRunHeader *run = (MRawRunHeader*)plist->FindObject("MRawRunHeader"); 233 239 if (!run) … … 328 334 Int_t MSrcPosCalc::Process() 329 335 { 330 if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory )336 if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory || fMode==kOffData) 331 337 return kTRUE; 332 338
Note:
See TracChangeset
for help on using the changeset viewer.