Changeset 17032 for trunk/Mars/fact/analysis/merpp.C
- Timestamp:
- 08/20/13 13:47:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/merpp.C
r15232 r17032 1 #include "MLogManip.h" 2 1 3 void merpp(TString &froot, const char *id, const char *faux) 2 4 { … … 6 8 if (file.IsZombie()) 7 9 { 8 gLog << "merpp: Invalid file '" << froot << "'" << endl;10 gLog << err << "merpp: Invalid file '" << froot << "'" << endl; 9 11 return; 10 12 } … … 14 16 if (!tree) 15 17 { 16 gLog << "merpp: Tree 'RunHeaders' not found... skipped." << endl;18 gLog << err << "merpp: Tree 'RunHeaders' not found... skipped." << endl; 17 19 return; 18 20 } … … 20 22 if (tree->GetEntries()!=1) 21 23 { 22 gLog << "merpp: Number of RunHeaders do not match 1... skipped." << endl;24 gLog << err << "merpp: Number of RunHeaders do not match 1... skipped." << endl; 23 25 return; 24 26 } … … 29 31 if (file.Get(id)) 30 32 { 31 gLog << "WARNING - Tree '" << id << "' already existing... skipped." << endl;33 gLog << warn << "WARNING - Tree '" << id << "' already existing... skipped." << endl; 32 34 return; 33 35 } … … 43 45 TString time = Form("MTime%s", id); 44 46 47 gLog << all; 45 48 gLog << " --- Fits file: " << ffits << endl; 46 49 gLog << " --- Root file: " << froot << endl; … … 78 81 if (!seq.IsValid()) 79 82 { 80 gLog << "ERROR - Sequence invalid!" << endl;83 gLog << err << "ERROR - Sequence invalid!" << endl; 81 84 return 1; 82 85 } … … 85 88 86 89 gLog.Separator("Merpp"); 90 gLog << all; 87 91 gLog << "Merge slow control data of sequence "; 88 92 gLog << seq.GetFileName() << endl; … … 93 97 if (seq.GetRuns(iter, MSequence::kFactImg, path)<=0) 94 98 { 95 gLog << "ERROR - Sequence valid but without files." << endl;99 gLog << err << "ERROR - Sequence valid but without files." << endl; 96 100 return 2; 97 101 }
Note:
See TracChangeset
for help on using the changeset viewer.