Changeset 3526 for trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
- Timestamp:
- 03/16/04 18:50:24 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r3474 r3526 65 65 #include "MHillasExt.h" 66 66 #include "MNewImagePar.h" 67 67 #include "MConcentration.h" 68 68 #include "MCerPhotEvt.h" 69 69 … … 81 81 MHillasCalc::MHillasCalc(const char *name, const char *title) 82 82 : fHilName("MHillas"), fHilExtName("MHillasExt"), 83 fImgParName("MNewImagePar"), fFlags(0xff), fErrors(5) 83 fImgParName("MNewImagePar"), fConcName("MConcentration"), 84 fFlags(0xff), fErrors(5) 84 85 { 85 86 fName = name ? name : "MHillasCalc"; … … 139 140 } 140 141 141 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize()); 142 // if enabled 143 if (TestFlag(kCalcConc)) 144 { 145 fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fConcName); 146 if (!fConc) 147 return kFALSE; 148 } 149 150 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize()); 142 151 143 152 return kTRUE; … … 171 180 if (TestFlag(kCalcNewImagePar)) 172 181 fNewImgPar->Calc(*fGeomCam, *fCerPhotEvt, *fHillas); 182 183 if (TestFlag(kCalcConc)) 184 fConc->Calc(*fGeomCam, *fCerPhotEvt, *fHillas); 173 185 174 186 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.