Changeset 8456
- Timestamp:
- 04/27/07 14:17:37 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/ganymed.rc
r8017 r8456 198 198 # Cut1.CalcDisp: No 199 199 200 # ------------------------------------------------------------------------- 201 # Use this to executa a task (eg to estimate energy) after all Cuts 202 # ------------------------------------------------------------------------- 203 # EstimateEnergy: MRanForestCalc 204 # EstimateEnergy.NameOutput: MEnergyEst 205 # EstimateEnergy.FileName: ranforest.root 206 # EstimateEnergy.Debug: No -
trunk/MagicSoft/Mars/ganymed_onoff.rc
r8017 r8456 170 170 # CalcDisp.Debug: No 171 171 # Cut1.CalcDisp: No 172 173 # ------------------------------------------------------------------------- 174 # Use this to executa a task (eg to estimate energy) after all Cuts 175 # ------------------------------------------------------------------------- 176 # EstimateEnergy: MRanForestCalc 177 # EstimateEnergy.NameOutput: MEnergyEst 178 # EstimateEnergy.FileName: ranforest.root 179 # EstimateEnergy.Debug: No -
trunk/MagicSoft/Mars/ganymed_wobble.rc
r8017 r8456 170 170 # CalcDisp.Debug: No 171 171 # Cut1.CalcDisp: No 172 173 # ------------------------------------------------------------------------- 174 # Use this to executa a task (eg to estimate energy) after all Cuts 175 # ------------------------------------------------------------------------- 176 # EstimateEnergy: MRanForestCalc 177 # EstimateEnergy.NameOutput: MEnergyEst 178 # EstimateEnergy.FileName: ranforest.root 179 # EstimateEnergy.Debug: No -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8442 r8456 90 90 : fStoreSummary(kFALSE), fStoreResult(kTRUE), fWriteOnly(kFALSE), 91 91 fFullDisplay(kTRUE), 92 fRndmSrcPos(kFALSE), fNameHist("MHThetaSq"), fCalcHadronness(0), fCalcDisp(0) 92 fRndmSrcPos(kFALSE), fNameHist("MHThetaSq"), 93 fCalcHadronness(0), fCalcDisp(0), fEstimateEnergy(0) 93 94 { 94 95 fName = name ? name : "MJCut"; … … 102 103 MJCut::~MJCut() 103 104 { 104 //if (fEstimateEnergy)105 //delete fEstimateEnergy;105 if (fEstimateEnergy) 106 delete fEstimateEnergy; 106 107 if (fCalcHadronness) 107 108 delete fCalcHadronness; … … 177 178 delete fCalcDisp; 178 179 fCalcDisp = task ? (MTask*)task->Clone() : 0; 180 } 181 182 // -------------------------------------------------------------------------- 183 // 184 // Setup a task estimating the eneryg. The given task is cloned. 185 // 186 void MJCut::SetEnergyEstimator(const MTask *task) 187 { 188 if (fEstimateEnergy) 189 delete fEstimateEnergy; 190 fEstimateEnergy = task ? (MTask*)task->Clone() : 0; 179 191 } 180 192 … … 369 381 write->AddContainer("OpticalAxis", "Events", kFALSE); 370 382 write->AddContainer("Disp", "Events", kFALSE); 383 write->AddContainer("MEnergyEst", "Events", kFALSE); 371 384 write->AddContainer("MTime", "Events", kFALSE); 372 385 write->AddContainer("MMcEvt", "Events", kFALSE); … … 663 676 MTaskEnv taskenv3("CalcDisp"); 664 677 taskenv3.SetDefault(fCalcDisp); 678 679 MTaskEnv taskenv4("EstimateEnergy"); 680 taskenv4.SetDefault(fEstimateEnergy); 665 681 666 682 MParameterCalc setevtnum("MRawEvtHeader.fDAQEvtNumber", "SetEvtNumber"); … … 754 770 } 755 771 tlist2.AddToList(&cont3); 772 tlist2.AddToList(&taskenv4); 773 756 774 if (write1) 757 775 tlist2.AddToList(write1); -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r8442 r8456 32 32 TString fNameHistFS; 33 33 34 //MTask *fEstimateEnergy;35 34 MTask *fCalcHadronness; 36 35 MTask *fCalcDisp; 36 MTask *fEstimateEnergy; 37 37 38 38 TString GetOutputFile(UInt_t num) const; … … 69 69 void SetNameHistFS(const char *name) { fNameHistFS=name; } 70 70 71 //void SetEnergyEstimator(const MTask *task=0);71 void SetEnergyEstimator(const MTask *task=0); 72 72 void SetHadronnessCalculator(const MTask *task=0); 73 73 void SetDispCalculator(const MTask *task=0);
Note:
See TracChangeset
for help on using the changeset viewer.