Changeset 13853 for fact/tools/rootmacros/PulseTemplates
- Timestamp:
- 05/24/12 02:07:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/rootfilehandler.C
r13787 r13853 132 132 gFile->mkdir(subdirectory.Data()); 133 133 gFile->cd(subdirectory.Data()); 134 gDirectory->pwd(); 135 cout << histList; 134 if (verbosityLevel > 1) 135 { 136 gDirectory->pwd(); 137 } 138 // cout << histList; 136 139 for ( int idx = 0; idx < histList->GetSize(); idx++) 137 140 { … … 147 150 // end of SaveHistograms 148 151 //---------------------------------------------------------------------------- 149 150 152 151 153 TString … … 197 199 } 198 200 201 TFile* 202 LoadRootFile( 203 TString path, 204 TString filename, 205 int verbosityLevel 206 ) 207 { 208 if (verbosityLevel > 1) 209 { 210 cout << "...loading root-file: "; 211 } 212 path += filename; 213 TFile* file = TFile::Open( path ); 214 215 if (file->IsZombie()) 216 { 217 cerr << "file does not exist" << endl; 218 delete file; 219 return NULL; 220 } 221 else 222 if (verbosityLevel > 1) 223 { 224 cout << path ; 225 cout << " ...successfull" << endl; 226 } 227 return file; 228 } 229 199 230 TString 200 231 SetHostsPaths( … … 219 250 220 251 dataDirectory = "/fhgfs/groups/app/fact-construction/"; 221 homeDirectory = "/ home/jbuss/";252 homeDirectory = "/fhgfs/users/jbuss/"; 222 253 } 223 254 else
Note:
See TracChangeset
for help on using the changeset viewer.