Changeset 1837 for trunk/MagicSoft/Mars
- Timestamp:
- 03/19/03 12:41:28 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1836 r1837 1 1 -*-*- END OF LINE -*-*- 2 3 2003/03/19: Abelardo Moralejo 4 5 * macros/CT1collarea.C: 6 - Added filter to cut in hadronness (now available in new version of 7 root CT1 Monte Carlo file from Wolfgang). 2 8 3 9 2003/03/19: Robert Wagner … … 6 12 - changed MH3::New() such that constructor according to Thomas' 7 13 previous changes is supported 8 9 14 10 15 -
trunk/MagicSoft/Mars/macros/CT1collarea.C
r1823 r1837 24 24 25 25 26 void CT1collarea(TString filename="MC_ON 1.root", TString outname="")26 void CT1collarea(TString filename="MC_ON2.root", TString outname="") 27 27 { 28 28 // … … 40 40 // 41 41 MReadMarsFile reader("Events", filename); 42 reader.DisableAutoScheme(); 43 // reader.EnableBranch("fHadronness"); 44 42 45 MMcCT1CollectionAreaCalc effi; 46 MHMcCT1CollectionArea* collarea = new MHMcCT1CollectionArea("MHMcCT1CollectionArea","",30,2.,5.); 47 parlist.AddToList(collarea); 43 48 44 49 tasklist.AddToList(&reader); 50 51 MF filterhadrons("MHadronness.fHadronness<0.25"); 52 tasklist.AddToList(&filterhadrons); 53 effi.SetFilter(&filterhadrons); 45 54 46 55 tasklist.AddToList(&effi); … … 75 84 return; 76 85 77 TFile f(outname, "recreate"); 78 if (!f) 79 return; 80 parlist.FindObject("MHMcCT1CollectionArea")->Write(); 86 TFile f("area.root","recreate"); 87 collarea->GetHist()->Write(); 88 collarea->GetHAll()->Write(); 89 collarea->GetHSel()->Write(); 90 f.Close(); 81 91 } 82 92
Note:
See TracChangeset
for help on using the changeset viewer.