Ignore:
Timestamp:
12/11/03 14:01:52 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.cc

    r2627 r2641  
    4141
    4242MExtractedSignalPix::MExtractedSignalPix(const char* name, const char* title)
    43   : fExtractedSignal(-1.),
    44     fExtractedSignalError(-1.),
     43  : fExtractedSignalHiGain(-1.),
     44    fExtractedSignalHiGainError(-1.),
     45    fExtractedSignalLoGain(-1.),
     46    fExtractedSignalLoGainError(-1.),
    4547    fIsLoGainUsed(kFALSE),
    4648    fNumHiGainSaturated(0),
     
    6264{
    6365
    64   fExtractedSignal = -1.;
    65   fExtractedSignalError = -1.;
     66  fExtractedSignalHiGain = -1.;
     67  fExtractedSignalHiGainError = -1.;
    6668  fIsLoGainUsed = kFALSE;
    6769  fNumHiGainSaturated = 0;
     
    7577  *fLog << all << GetDescriptor() << ":" << endl;
    7678
    77   *fLog << " Signal: " << fExtractedSignal 
    78         << " +- " << fExtractedSignalError
     79  *fLog << " Signal: " << fExtractedSignalHiGain
     80        << " +- " << fExtractedSignalHiGainError
    7981        << " LoGain? " << fIsLoGainUsed
    8082        << " Nr. Sat. Hi Gain: " <<  fNumHiGainSaturated
  • trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h

    r2634 r2641  
    1010private:
    1111
    12     Float_t fExtractedSignal;      // mean value of the extracted signal
    13     Float_t fExtractedSignalError; // error of the mean value of the extracted signal
     12    Float_t fExtractedSignalHiGain;      // mean value of the extracted signal
     13    Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal
     14    Float_t fExtractedSignalLoGain;      // mean value of the extracted signal
     15    Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal
    1416    Bool_t fIsLoGainUsed;
    1517    Byte_t fNumHiGainSaturated;
     
    2527    void Clear(Option_t *o="");
    2628
    27     Float_t GetExtractedSignal()      const   { return fExtractedSignal; }
    28     Float_t GetExtractedSignalError() const   { return fExtractedSignalError; }
     29    Float_t GetExtractedSignalHiGain()      const   { return fExtractedSignalHiGain; }
     30    Float_t GetExtractedSignalHiGainError() const   { return fExtractedSignalHiGainError; }
     31
     32    Float_t GetExtractedSignalLoGain()      const   { return fExtractedSignalLoGain; }
     33    Float_t GetExtractedSignalLoGainError() const   { return fExtractedSignalLoGainError; }
    2934
    3035    Float_t GetMeanArrivalTime()      const   { return fMeanArrivalTime; }
     
    3338    void SetExtractedSignal(Float_t sig, Float_t sigerr)   
    3439                                        {
    35                                           fExtractedSignal = sig;
    36                                           fExtractedSignalError = sigerr;
     40                                          fExtractedSignalHiGain = sig;
     41                                          fExtractedSignalHiGainError = sigerr;
     42                                        }
     43
     44    void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr)   
     45                                        {
     46                                          fExtractedSignalHiGain = sighi;
     47                                          fExtractedSignalHiGainError = sighierr;
     48                                          fExtractedSignalLoGain = siglo;
     49                                          fExtractedSignalLoGainError = sigloerr;
    3750                                        }
    3851
     
    4962    Bool_t IsLoGainUsed()               { return fIsLoGainUsed; }
    5063
    51     Bool_t IsValid() const              { return fExtractedSignal >= 0 || fExtractedSignalError >= 0; }
     64    Bool_t IsValid() const              { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; }
    5265
    5366    void PrintOut();
Note: See TracChangeset for help on using the changeset viewer.