Changeset 9224 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 01/16/09 13:24:04 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r9153 r9224 187 187 break; 188 188 } 189 190 return kTRUE; 191 } 192 193 // -------------------------------------------------------------------------- 194 // 195 // The geometry read from the RunHeaders might have changed. This does not 196 // effect anything in PreProcess. So we set a new geometry. We don't move 197 // this away from PreProcess to support also loops without calling ReInit. 198 // 199 Bool_t MHEvent::ReInit(MParList *plist) 200 { 201 MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam"); 202 if (!cam) 203 { 204 *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl; 205 return kFALSE; 206 } 207 208 fHist->SetGeometry(*cam); 189 209 190 210 return kTRUE; -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r9153 r9224 53 53 Bool_t SetupFill(const MParList *plist); 54 54 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 55 Bool_t ReInit(MParList *par); 55 56 56 57 public:
Note:
See TracChangeset
for help on using the changeset viewer.