Changeset 7413 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 11/21/05 11:09:12 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MDataSet.cc
r7409 r7413 196 196 fName = fname; 197 197 198 fSequencesOn.SetOwner(); 199 fSequencesOff.SetOwner(); 200 198 201 const char *expname = gSystem->ExpandPathName(fname); 199 202 -
trunk/MagicSoft/Mars/mjobs/MDataSet.h
r7380 r7413 54 54 55 55 public: 56 MDataSet( ) : fNumAnalysis((UInt_t)-1) { }56 MDataSet(Int_t num=(UInt_t)-1) : fNumAnalysis(num) { } 57 57 MDataSet(const char *fname, TString sequences="", TString data=""); 58 59 void Copy(TObject &obj) const 60 { 61 MDataSet &ds = (MDataSet&)obj; 62 ds.fNumAnalysis = fNumAnalysis; 63 ds.fNumSequencesOn = fNumSequencesOn; 64 ds.fNumSequencesOff = fNumSequencesOff; 65 ds.fNameSource = fNameSource; 66 ds.fCatalog = fCatalog; 67 ds.fComment = fComment; 68 ds.fIsWobbleMode = fIsWobbleMode; 69 70 TObject *o=0; 71 72 ds.fSequencesOn.Delete(); 73 ds.fSequencesOff.Delete(); 74 75 TIter NextOn(&fSequencesOn); 76 while ((o=NextOn())) 77 ds.fSequencesOn.Add(o->Clone()); 78 79 TIter NextOff(&fSequencesOff); 80 while ((o=NextOff())) 81 ds.fSequencesOff.Add(o->Clone()); 82 } 58 83 59 84 // Getter -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7390 r7413 86 86 : fStoreSummary(kFALSE), fStoreResult(kTRUE), fWriteOnly(kFALSE), 87 87 fIsWobble(kFALSE), fIsMonteCarlo(kFALSE), fFullDisplay(kTRUE), 88 fNameHist("MHThetaSq"), fCalcHadronness(0) 88 fNameHist("MHThetaSq"), fCalcHadronness(0), fCalcDisp(0) 89 89 { 90 90 fName = name ? name : "MJCut"; … … 102 102 if (fCalcHadronness) 103 103 delete fCalcHadronness; 104 if (fCalcDisp) 105 delete fCalcDisp; 104 106 } 105 107 … … 160 162 delete fCalcHadronness; 161 163 fCalcHadronness = task ? (MTask*)task->Clone() : 0; 164 } 165 166 // -------------------------------------------------------------------------- 167 // 168 // Setup a task calculating disp. The given task is cloned. 169 // 170 void MJCut::SetDispCalculator(const MTask *task) 171 { 172 if (fCalcDisp) 173 delete fCalcDisp; 174 fCalcDisp = task ? (MTask*)task->Clone() : 0; 162 175 } 163 176 … … 540 553 taskenv2.SetDefault(fCalcHadronness); 541 554 555 MTaskEnv taskenv3("CalcDisp"); 556 taskenv3.SetDefault(fCalcDisp); 557 542 558 MFillH fill1a("MHHillasOffPre [MHHillas]", "MHillas", "FillHillasPre"); 543 559 MFillH fill2a("MHHillasOffPost [MHHillas]", "MHillas", "FillHillasPost"); … … 579 595 //tlist2.AddToList(&taskenv1); 580 596 tlist2.AddToList(&taskenv2); 597 tlist2.AddToList(&taskenv3); 581 598 tlist2.AddToList(&cont0); 582 599 if (write0) -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r7109 r7413 33 33 //MTask *fEstimateEnergy; 34 34 MTask *fCalcHadronness; 35 MTask *fCalcDisp; 35 36 36 37 TString GetOutputFile(UInt_t num) const; … … 68 69 //void SetEnergyEstimator(const MTask *task=0); 69 70 void SetHadronnessCalculator(const MTask *task=0); 71 void SetDispCalculator(const MTask *task=0); 70 72 71 73 ClassDef(MJCut, 0) // Standard program to perform g/h-separation cuts
Note:
See TracChangeset
for help on using the changeset viewer.