Changeset 14817 for fact/tools
- Timestamp:
- 01/31/13 15:12:16 (12 years ago)
- Location:
- fact/tools/rootmacros/PulseTemplates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/rootfilehandler.C
r14807 r14817 109 109 110 110 void 111 Save Histograms(111 SaveList( 112 112 TString loc_fname, 113 113 TString subdirectory, 114 TList* histList,114 TList* list, 115 115 bool saveResults, 116 116 int verbosityLevel … … 119 119 120 120 if (!saveResults) return; 121 if ( histList==NULL) return;121 if (list==NULL) return; 122 122 if (verbosityLevel > 2) cout << endl 123 << "...saving pixel histogramsto subdirectory: "123 << "...saving pixel's list to subdirectory: " 124 124 << subdirectory << endl ; 125 125 … … 128 128 129 129 if (verbosityLevel > 2) cout << endl 130 << "...writing histogramlist to root file "130 << "...writing list to root file " 131 131 << endl ; 132 132 gFile->mkdir(subdirectory.Data()); … … 136 136 gDirectory->pwd(); 137 137 } 138 // cout << histList;139 for ( int idx = 0; idx < histList->GetSize(); idx++)140 { 141 histList->At(idx)->Write();142 } 143 // gFile->WriteTObject( histList, subdirectory); // write the histograms into one Key in the top level directory138 // cout << list; 139 for ( int idx = 0; idx < list->GetSize(); idx++) 140 { 141 list->At(idx)->Write(); 142 } 143 // gFile->WriteTObject(list, subdirectory); // write the histograms into one Key in the top level directory 144 144 gFile->cd(".."); 145 145 -
fact/tools/rootmacros/PulseTemplates/rootfilehandler.h
r13858 r14817 16 16 17 17 void 18 Save Histograms( TString ,TString, TList*, bool, int );18 SaveList( TString ,TString, TList*, bool, int ); 19 19 20 20 TString
Note:
See TracChangeset
for help on using the changeset viewer.