Changeset 6149


Ignore:
Timestamp:
01/31/05 15:56:59 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJob.h

    r6078 r6149  
    1818    Bool_t      fEnvDebug;    // Debug setup of resources
    1919
     20    enum DataType_t {
     21      kIsRawData,
     22      kIsRootData,
     23      kIsMC
     24    };
     25
    2026protected:
    2127
     28    Byte_t    fDataFlag;      // Bit-field to store the data type
    2229    TString   fPathOut;       // Directory to write output file to (eg. calib*.root)
    2330    TString   fPathIn;        // Directory to read output from (eg. calib*.root)
     
    2835
    2936    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);       }
    3045
    3146    const TEnv *GetEnv() const { return fEnv; }
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc

    r6140 r6149  
    394394    return kTRUE;
    395395
    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();
    398400
    399401  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;
    401403  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;
    403405  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;
    405407  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;
    407409
    408410 
Note: See TracChangeset for help on using the changeset viewer.