Changeset 7181 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 07/12/05 14:31:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 2 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 -
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h
r6912 r7181 19 19 class MSrcPosCalc : public MTask 20 20 { 21 public: 22 enum Mode_t { 23 kDefault = 0, 24 kOffData = 1, 25 kWobble = 2 26 }; 21 27 private: 22 28 enum { … … 34 40 UShort_t fRunType; //! Run Type to decide where to get pointing position from 35 41 36 Bool_t fIsWobbleMode;42 Int_t fMode; 37 43 38 44 // MSrcPosCalc … … 59 65 void SetSourcePos(Double_t ra, Double_t dec); 60 66 void SetOwner(Bool_t b=kTRUE) { b ? SetBit(kIsOwner) : ResetBit(kIsOwner); } // Make MSrcPosCalc owner of fSourcePos 61 void Set WobbleMode(Bool_t b=kTRUE) { fIsWobbleMode = b; }67 void SetMode(Mode_t m=kDefault) { fMode = m; } 62 68 63 69 ClassDef(MSrcPosCalc, 0) // Calculates the source position in the camera
Note:
See TracChangeset
for help on using the changeset viewer.