Changeset 8172 for trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
- Timestamp:
- 10/27/06 19:36:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.