Changeset 3290 for trunk


Ignore:
Timestamp:
02/25/04 05:04:22 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3287 r3290  
    2828     - CalcFFactor asks for IsChargeValid before calculating anything
    2929
     30   * mcalib/MHCalibrationChargePix.cc
     31     - make fPickup an Int_t
    3032
    3133   * mcalib/MCalibrate.cc
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc

    r3264 r3290  
    5757const Axis_t  MHCalibrationChargePix::fgAbsTimeLast     = 14.5;
    5858
    59 const Float_t MHCalibrationChargePix::fgPickupLimit     = 5.;
     59const Int_t   MHCalibrationChargePix::fgPickupLimit     = 5;
    6060const Int_t   MHCalibrationChargePix::fgPulserFrequency = 200;
    6161// --------------------------------------------------------------------------
     
    112112  fPixId     = -1;
    113113  fSaturated = 0;
    114   fPickup    = 0.;
     114  fPickup    = 0;
    115115 
    116116  MHGausEvents::Clear();
     
    253253void MHCalibrationChargePix::CountPickup()
    254254{
    255     fPickup  = GetHGausHist()->Integral(GetHGausHist()->GetXaxis()->FindBin(GetMean()+fPickupLimit*GetSigma()),
    256                                         GetHGausHist()->GetXaxis()->GetLast(),
    257                                         "width");
    258 }
    259 
    260 
    261 
    262 
    263 
    264 
     255    fPickup  = (Int_t)GetHGausHist()->Integral(GetHGausHist()->GetXaxis()->FindBin(GetMean()+fPickupLimit*GetSigma()),
     256                                               GetHGausHist()->GetXaxis()->GetLast(),
     257                                               "width");
     258}
     259
     260
     261
     262
     263
     264
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h

    r3264 r3290  
    2020  static const Axis_t  fgAbsTimeLast;
    2121
    22   static const Float_t fgPickupLimit;
     22  static const Int_t fgPickupLimit;
    2323
    2424protected:
     
    3838  Axis_t   fAbsTimeLast;
    3939
    40   Float_t  fPickupLimit;      // The limit in number of sigmas from the fitted mean above which events are considered as pickup
     40  Int_t    fPickupLimit;      // The limit in number of sigmas from the fitted mean above which events are considered as pickup
    4141
    4242  Int_t    fSaturated;
    43   Float_t  fPickup;
     43  Int_t    fPickup;
    4444
    4545public:
     
    6262  virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast)     { fAbsTimeLast  = last; }
    6363
    64   virtual void SetPickupLimit( const Float_t lim =fgPickupLimit)     { fPickupLimit  = lim; }
     64  virtual void SetPickupLimit( const Int_t  lim =fgPickupLimit)      { fPickupLimit  = lim; }
    6565
    6666  void SetPulserFrequency(Float_t f=fgPulserFrequency);
     
    7878
    7979  const Int_t    GetSaturated()       const { return fSaturated;   }
    80   const Float_t  GetPickup()          const { return fPickup;      }
     80  const Int_t    GetPickup()          const { return fPickup;      }
    8181
    8282  // Fill histos
Note: See TracChangeset for help on using the changeset viewer.