Changeset 6149
- Timestamp:
- 01/31/05 15:56:59 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJob.h
r6078 r6149 18 18 Bool_t fEnvDebug; // Debug setup of resources 19 19 20 enum DataType_t { 21 kIsRawData, 22 kIsRootData, 23 kIsMC 24 }; 25 20 26 protected: 21 27 28 Byte_t fDataFlag; // Bit-field to store the data type 22 29 TString fPathOut; // Directory to write output file to (eg. calib*.root) 23 30 TString fPathIn; // Directory to read output from (eg. calib*.root) … … 28 35 29 36 MSequence fSequence; // Sequence 37 38 Bool_t IsRawData() const { return TESTBIT(fDataFlag,kIsRawData); } 39 Bool_t IsRootData() const { return TESTBIT(fDataFlag,kIsRootData); } 40 Bool_t IsMC() const { return TESTBIT(fDataFlag,kIsMC); } 41 42 void SetRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsRawData) : CLRBIT(fDataFlag,kIsRawData); } 43 void SetRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsRootData) : CLRBIT(fDataFlag,kIsRootData); } 44 void SetMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsMC) : CLRBIT(fDataFlag,kIsMC); } 30 45 31 46 const TEnv *GetEnv() const { return fEnv; } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6140 r6149 394 394 return kTRUE; 395 395 396 const Int_t higainfailure = (fHiGainOutOfRangeLeft+fHiGainOutOfRangeRight)/GetNumExecutions()*100; 397 const Int_t logainfailure = (fLoGainOutOfRangeLeft+fLoGainOutOfRangeRight)/GetNumExecutions()*100; 396 *fLog << endl; 397 398 const Int_t higainfailure = ((fHiGainOutOfRangeLeft+fHiGainOutOfRangeRight)*100)/GetNumExecutions(); 399 const Int_t logainfailure = ((fLoGainOutOfRangeLeft+fLoGainOutOfRangeRight)*100)/GetNumExecutions(); 398 400 399 401 if (fHiGainOutOfRangeLeft > 0) 400 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeLeft /GetNumExecutions()*100<< "% ranging out of high-gain window to the left!" << endl;402 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of high-gain window to the left!" << endl; 401 403 if (fHiGainOutOfRangeRight > 0) 402 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight /GetNumExecutions()*100<< "% ranging out of high-gain window to the right!" << endl;404 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl; 403 405 if (fLoGainOutOfRangeLeft > 0) 404 *fLog << warn << GetDescriptor() << ": " << fLoGainOutOfRangeLeft /GetNumExecutions()*100<< "% ranging out of low-gain window to the left!" << endl;406 *fLog << warn << GetDescriptor() << ": " << fLoGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of low-gain window to the left!" << endl; 405 407 if (fHiGainOutOfRangeRight > 0) 406 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight /GetNumExecutions()*100<< "% ranging out of high-gain window to the right!" << endl;408 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl; 407 409 408 410
Note:
See TracChangeset
for help on using the changeset viewer.