Changeset 8172 for trunk/MagicSoft
- Timestamp:
- 10/27/06 19:36:19 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8170 r8172 30 30 - do not print observation time statistics if observation time is 31 31 zero 32 33 * mjobs/MJSpectrum.[h,cc]: 34 - added reading and usage of "CalcHadronness" when processing 35 the MCs 32 36 33 37 -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8047 r8172 86 86 MJSpectrum::MJSpectrum(const char *name, const char *title) 87 87 : fCut0(0),fCut1(0), fCut2(0), fCut3(0), fEstimateEnergy(0), 88 f Refill(kFALSE), fSimpleMode(kTRUE), fRawMc(kFALSE),89 f NoThetaWeights(kFALSE)88 fCalcHadronness(0), fRefill(kFALSE), fSimpleMode(kTRUE), 89 fRawMc(kFALSE), fNoThetaWeights(kFALSE) 90 90 { 91 91 fName = name ? name : "MJSpectrum"; … … 105 105 if (fEstimateEnergy) 106 106 delete fEstimateEnergy; 107 if (fCalcHadronness) 108 delete fCalcHadronness; 107 109 } 108 110 … … 118 120 } 119 121 120 Bool_t MJSpectrum::ReadTask(MTask* &task, const char *name ) const122 Bool_t MJSpectrum::ReadTask(MTask* &task, const char *name, Bool_t mustexist) const 121 123 { 122 124 if (task) … … 129 131 if (!task) 130 132 { 133 if (!mustexist) 134 return kTRUE; 131 135 *fLog << err << dbginf << "ERROR - " << name << " doen't exist in file!" << endl; 132 136 return kFALSE; … … 247 251 return -1; 248 252 if (!ReadTask(fCut3, "Cut3")) 253 return -1; 254 if (!ReadTask(fCalcHadronness, "CalcHadronness", kFALSE)) 249 255 return -1; 250 256 … … 1179 1185 fill8a.SetWeight(); 1180 1186 1187 MTaskEnv taskenv0("CalcHadronness"); 1188 taskenv0.SetDefault(fCalcHadronness); 1189 1181 1190 MEnergyEstimate est; 1182 1191 MTaskEnv taskenv1("EstimateEnergy"); … … 1196 1205 tlist2.AddToList(&fill30); 1197 1206 tlist2.AddToList(fCut0); 1207 tlist2.AddToList(&taskenv0); 1198 1208 tlist2.AddToList(fCut1); 1199 1209 tlist2.AddToList(fCut2); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
r7404 r8172 29 29 MTask *fCut3; 30 30 MTask *fEstimateEnergy; 31 MTask *fCalcHadronness; 31 32 32 33 Bool_t fRefill; … … 36 37 37 38 // Read Input 38 Bool_t ReadTask(MTask* &task, const char *name ) const;39 Bool_t ReadTask(MTask* &task, const char *name, Bool_t mustexist=kTRUE) const; 39 40 Float_t ReadInput(MParList &plist, TH1D &h1, TH1D &size); 40 41 Bool_t ReadOrigMCDistribution(const MDataSet &set, TH1 &h, MMcSpectrumWeight &w) const;
Note:
See TracChangeset
for help on using the changeset viewer.