Changeset 7579 for trunk/MagicSoft/Mars
- Timestamp:
- 03/08/06 10:17:07 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7578 r7579 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/03/08 Thomas Bretz 21 22 * readdaq.cc, mraw/MRawFileRead.[h,cc], mraw/MRawRunHeader.cc: 23 - added new force-option to foirce output of run-header 24 25 26 20 27 2006/03/08 Daniela Dorner 21 28 … … 44 51 45 52 46 2006/03/0 8Thomas Bretz47 53 2006/03/07 Thomas Bretz 54 48 55 * mcalib/MCalibrateData.cc: 49 56 - take the bad pixel information into account when calculating the 50 57 number of saturating pixels! 58 51 59 52 60 -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r7438 r7579 102 102 // 103 103 MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title) 104 : fFileNames(NULL), fNumFile(0), fIn(NULL), fParList(NULL), fInterleave(1) 104 : fFileNames(NULL), fNumFile(0), fIn(NULL), fParList(NULL), fInterleave(1), fForce(kFALSE) 105 105 { 106 106 fName = name ? name : "MRead"; … … 220 220 // 221 221 if (!fRawRunHeader->ReadEvt(*fIn)) 222 return kERROR; 222 if (!fForce) 223 return kERROR; 223 224 224 225 if (!(*fIn)) -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r7438 r7579 24 24 UInt_t fInterleave; 25 25 26 Bool_t fForce; 27 26 28 Int_t OpenNextFile(Bool_t print=kTRUE); 27 29 Bool_t CalcNumTotalEvents(); … … 38 40 39 41 void SetInterleave(UInt_t i) { fInterleave = i; } 42 void SetForce(Bool_t b=kTRUE) { fForce=b; } 40 43 41 44 TString GetFullFileName() const; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r7489 r7579 362 362 return; 363 363 364 *fLog << inf << hex;364 *fLog << inf << "Assignment:" << hex << endl; 365 365 for (int i=0; i<GetNumPixel(); i++) 366 366 *fLog << setfill('0') << setw(3) << (*fPixAssignment)[i] << " "; -
trunk/MagicSoft/Mars/readdaq.cc
r7438 r7579 53 53 gLog << " -d1: print data in decimal values" << endl; 54 54 gLog << " -c1: print MRawCrateArray data" << endl; 55 gLog << " -f: force reading of runheader" << endl; 55 56 gLog << " -?, -h, --help: This help" << endl << endl; 56 57 } … … 77 78 const bool kDecimal = arg.HasOption("-d") && arg.GetIntAndRemove("-d")==1; 78 79 const bool kPrintArray = arg.HasOption("-c") && arg.GetIntAndRemove("-c")==1; 80 const bool kForce = arg.HasOnlyAndRemove("-f"); 79 81 80 82 // … … 152 154 // 153 155 MRawFileRead read(kNamein); 156 read.SetForce(kForce); 154 157 tasks.AddToList(&read); 155 158 156 159 MPrint print0; 157 MPrint print1("MRawEvtHeader", "nogains", "PrintEvtHeader");158 MPrint print2("MTime", "", "PrintTime");159 MPrint print3("MRawCrateArray", "", "PrintCrateArray");160 MPrint print4("MRawEvtData", kDecimal?"dec":"hex", "PrintEvtData");161 MPrint print5("MRawEvtData2", kDecimal?"dec":"hex", "PrintEvtData2");160 MPrint print1("MRawEvtHeader", "nogains", "PrintEvtHeader"); 161 MPrint print2("MTime", "", "PrintTime"); 162 MPrint print3("MRawCrateArray", "", "PrintCrateArray"); 163 MPrint print4("MRawEvtData", kDecimal?"dec":"hex", "PrintEvtData"); 164 MPrint print5("MRawEvtData2", kDecimal?"dec":"hex", "PrintEvtData2"); 162 165 163 166 tasks.AddToList(&print0);
Note:
See TracChangeset
for help on using the changeset viewer.