Changeset 3817
- Timestamp:
- 04/23/04 09:29:51 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3810 r3817 18 18 19 19 -*-*- END OF LINE -*-*- 20 2004/04/23: Thomas Bretz 21 22 * */Makefile: 23 - added some more mpedestal 24 25 * mreport/MReportRun.cc: 26 - changed to work with the latest version of report-files 27 --> This will make it incompatible with older report files 28 (for this use older Mars versions for merpping) 29 30 31 20 32 2004/04/22: Nadia Tonello 21 33 -
trunk/MagicSoft/Mars/mfileio/Makefile
r3579 r3817 21 21 22 22 INCLUDES = -I. -I../mbase -I../mraw -I../mmc -I../mreflector -I../mgui \ 23 -I../mdata -I../manalysis -I../mgeom -I../mhbase -I../mpointing 23 -I../mdata -I../manalysis -I../mgeom -I../mhbase \ 24 -I../mpointing -I../mpedestal 24 25 #mraw: MRawRunHeader (MReadMaraFile) 25 26 #mmc: MMcRunHeader (MReadMarsFile) … … 31 32 #mhbase: MBinning (MCT1ReadPreProc) 32 33 #mpointing: MPointingPos (MCT1ReadPreProc) 34 #mpedestal: MPedestalCam (MCT1ReadAscii) 33 35 34 36 # @code … … 42 44 43 45 SRCFILES = MRead.cc \ 46 MReadFiles.cc \ 44 47 MChain.cc \ 45 48 MReadTree.cc \ … … 51 54 MWriteRootFile.cc \ 52 55 MCT1ReadAscii.cc \ 53 MCT1ReadPreProc.cc 56 MCT1ReadPreProc.cc \ 57 MCheckMagicFile.cc 54 58 55 59 SRCS = $(SRCFILES) -
trunk/MagicSoft/Mars/mreport/MReportRun.cc
r2892 r3817 59 59 Int_t MReportRun::InterpreteBody(TString &str) 60 60 { 61 Int_t len; 62 const Int_t n=sscanf(str.Data(), "%d %n", &fRunNumber, &len); 61 const Int_t pos = str.First(' '); 62 if (pos<0) 63 { 64 *fLog << warn << "WARNING - Token not found." << endl; 65 return kCONTINUE; 66 } 67 const TString tok=str(0, pos); 68 69 str.Remove(0, pos); 70 str = str.Strip(TString::kBoth); 71 72 Int_t len, run; 73 const Int_t n=sscanf(str.Data(), "%d %n", &run, &len); 63 74 if (n!=1) 64 75 { … … 68 79 str.Remove(0, len); 69 80 70 if (str.BeginsWith("END")) 81 if (tok=="START") 82 { 83 if (fRunNumber!=-1) 84 *fLog << warn << "WARNING - RUN-REPORT STOP missing." << endl; 85 fRunNumber = run; 86 } 87 if (tok=="STOP") 88 { 89 if (fRunNumber==-1) 90 *fLog << warn << "WARNING - RUN-REPORT START missing." << endl; 71 91 fRunNumber = -1; 92 } 72 93 73 str.Remove(0, 6);74 str = str.Strip(TString::kBoth);75 94 Ssiz_t pos = str.First(' '); 76 95 if (pos<0)
Note:
See TracChangeset
for help on using the changeset viewer.