Ignore:
Timestamp:
04/03/04 17:27:50 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h

    r3631 r3636  
    1212private:
    1313
    14   static const Int_t   fgChargeNbins;        // Default for fChargeNBins  (now set to: 2000  )
    15   static const Axis_t  fgChargeFirst;        // Default for fChargeFirst  (now set to: -0.5  )
    16   static const Axis_t  fgChargeLast;         // Default for fChargeLast   (now set to: 1999.5)
    17   static const Int_t   fgAbsTimeNbins;       // Default for fAbsTimeNbins (now set to: 15    )
    18   static const Axis_t  fgAbsTimeFirst;       // Default for fAbsTimeFirst (now set to: -0.5  )
    19   static const Axis_t  fgAbsTimeLast;        // Default for fAbsTimeLast  (now set to: 14.5  )
    20   static const Float_t fgPickupLimit;        // Default for fPickupLimit  (now set to:  5.   )
     14  static const Int_t   fgChargeNbins;        // Default for MHGausEvents::fNBins (now set to: 2000  )
     15  static const Axis_t  fgChargeFirst;        // Default for MHGausEvents::fFirst (now set to: -0.5  )
     16  static const Axis_t  fgChargeLast;         // Default for MHGausEvents::fLast  (now set to: 1999.5)
     17  static const Int_t   fgAbsTimeNbins;       // Default for fAbsTimeNbins        (now set to: 15    )
     18  static const Axis_t  fgAbsTimeFirst;       // Default for fAbsTimeFirst        (now set to: -0.5  )
     19  static const Axis_t  fgAbsTimeLast;        // Default for fAbsTimeLast         (now set to: 14.5  )
    2120
    2221protected:
    2322
    24   Int_t    fPixId;         // The pixel ID
    25 
    2623  TH1F     fHAbsTime;      // Histogram containing the absolute arrival times
    2724                         
    28   Int_t    fChargeNbins;   // Number of  bins used for the fHGausHist
    29   Axis_t   fChargeFirst;   // Lower bound bin used for the fHGausHist
    30   Axis_t   fChargeLast;    // Upper bound bin used for the fHGausHist
    31 
    3225  Int_t    fAbsTimeNbins;  // Number of  bins used for the fHAbsTime
    3326  Axis_t   fAbsTimeFirst;  // Lower bound bin used for the fHAbsTime
    3427  Axis_t   fAbsTimeLast;   // Upper bound bin used for the fHAbsTime
    3528
    36   Float_t  fPickupLimit;   // Upper number of sigmas from the fitted mean above which events are considered as pickup
    37 
    3829  Float_t  fSaturated;     // Number of events classified as saturated
    39   Float_t  fPickup;        // Number of events classified as pick-up
    40 
    41   Byte_t   fFlags;         // Bit-field for the flags
    42   enum     { kExcluded };  // Possible bits to be set
    4330
    4431public:
     
    4936  virtual void Clear(Option_t *o="");
    5037  virtual void Reset(); 
    51   virtual void Init();
    52   virtual void ChangeHistId(Int_t i);
     38  virtual void InitBins();
    5339 
    5440  // Setters
    55   virtual void SetChargeNbins(const Int_t  bins =fgChargeNbins)    { fChargeNbins = bins;   }
    56   virtual void SetChargeFirst(const Axis_t first=fgChargeFirst)    { fChargeFirst = first;  }
    57   virtual void SetChargeLast( const Axis_t last =fgChargeLast)     { fChargeLast  = last;   }
    58  
    5941  virtual void SetAbsTimeNbins(const Int_t  bins =fgAbsTimeNbins)  { fAbsTimeNbins = bins;  }
    6042  virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst)  { fAbsTimeFirst = first; }
    6143  virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast)   { fAbsTimeLast  = last;  }
    6244
    63   virtual void SetPickupLimit( const Float_t  lim =fgPickupLimit)  { fPickupLimit  = lim;   }
    64 
    6545  void SetSaturated          ( const Float_t f    )                { fSaturated += f;      }
    66   void SetExcluded           ( const Bool_t b=kTRUE );
    6746
    6847  // Getters
     
    7049  const TH1F *GetHAbsTime()             const { return &fHAbsTime;  }
    7150
    72   const Float_t  GetIntegral()          const;
    73  
    7451  const Float_t  GetAbsTimeMean(  )     const;
    7552  const Float_t  GetAbsTimeRms()        const;
    76 
     53  const Float_t  GetIntegral()          const;
    7754  const Float_t  GetSaturated()         const { return fSaturated;   }
    78   const Float_t  GetPickup()            const { return fPickup;      }
    79 
    80   const Bool_t   IsExcluded()          const;
    8155
    8256  // Fill histos
    8357  Bool_t FillAbsTime(const Float_t t);
    8458
    85   // Fits
    86   Bool_t RepeatFit(const Option_t *option="RQ0");
    87  
    8859  // Draws
    8960  virtual void Draw(Option_t *opt="");
    9061
    9162  // Miscelleaneous
    92   void CountPickup();
    93 
     63  void ChangeHistId(Int_t id);
     64 
    9465  ClassDef(MHCalibrationChargePix, 1)     // Base Histogram class for a Charge Calibration Pixel
    9566};
Note: See TracChangeset for help on using the changeset viewer.