Changeset 1653 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 11/20/02 14:01:38 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.