Changeset 1837 for trunk/MagicSoft/Mars/macros/CT1collarea.C
- Timestamp:
- 03/19/03 12:41:28 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.