Changeset 1653
- Timestamp:
- 11/20/02 14:01:38 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1649 r1653 1 1 -*-*- END -*-*- 2 2002/11/20: Abelardo Moralejo 3 4 * macros/collarea.C: 5 - Introduced check before opening output file to avoid annoying 6 error message. 7 2 8 2002/11/19: Abelardo Moralejo 3 9 … … 18 24 - removed also the corresponding AddToList for the tasklist 19 25 20 21 26 2002/11/19: Abelardo Moralejo 22 27 … … 24 29 - Added 2nd argument to write an output file containing the 25 30 collection area histogram. 26 27 31 28 32 -
trunk/MagicSoft/Mars/macros/collarea.C
r1645 r1653 70 70 // Write histogram to a file in case an output filename has been supplied: 71 71 72 TFile* f = new TFile(outname,"recreate"); 73 if (f) 72 if (strlen(outname) > 0) 74 73 { 75 TH1D* hc = ((MHMcCollectionArea*)parlist.FindObject("MHMcCollectionArea"))->GetHist(); 76 hc->Write(); 77 f.Close(); 74 TFile* f = new TFile(outname,"recreate"); 75 if (f) 76 { 77 TH1D* hc = ((MHMcCollectionArea*)parlist.FindObject("MHMcCollectionArea"))->GetHist(); 78 hc->Write(); 79 f.Close(); 80 } 78 81 } 79 82 }
Note:
See TracChangeset
for help on using the changeset viewer.