Changeset 3641 for trunk


Ignore:
Timestamp:
04/04/04 17:41:10 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

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

    r3639 r3641  
    1111private:
    1212
    13   static const Int_t   fgRelTimeNbins;      //! Default for fNbins  (now set to: 900   )
    14   static const Axis_t  fgRelTimeFirst;      //! Default for fFirst  (now set to: -13.5 )
    15   static const Axis_t  fgRelTimeLast;       //! Default for fLast   (now set to:  13.5 )
    16 
     13  static const Int_t   fgRelTimeNbins;      //! Default for fNbins          (now set to: 900   )
     14  static const Axis_t  fgRelTimeFirst;      //! Default for fFirst          (now set to: -13.5 )
     15  static const Axis_t  fgRelTimeLast;       //! Default for fLast           (now set to:  13.5 )
     16  static const Float_t fgFADCSliceWidth;    //! Default for fFADCSliceWidth (now set to: 3.333)
     17 
     18  Float_t fFADCSliceWidth;                  //  Time FADC Slice Width in ns.
     19 
    1720public:
    1821
     
    2023  ~MHCalibrationRelTimePix() {}
    2124
     25  // Setters
     26  void SetFADCSliceWidth( const Float_t f=fgFADCSliceWidth )  {  fFADCSliceWidth = f; }
     27 
    2228  void Reset();
     29  void Renorm();
    2330 
    2431  ClassDef(MHCalibrationRelTimePix, 1)     // Histogram class for Relative Time Pixel Calibration
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc

    r3636 r3641  
    722722// - fHGausHist
    723723//
    724 void MHGausEvents::ChangeHistId(Int_t id)
     724void MHGausEvents::ChangeHistId(const Int_t id)
    725725{
    726726
     
    733733  fTitle = Form("%s%d", fTitle.Data(), id);
    734734
     735}
     736
     737// --------------------------------------------------------------------------
     738//
     739// Re-normalize the results, has to be overloaded
     740//
     741void  MHGausEvents::Renorm()
     742{
    735743}
    736744
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.h

    r3640 r3641  
    6767  Float_t  fPickupLimit;               // Upper number of sigmas from the mean until events are considered as pickup
    6868
    69   Float_t *CreateEventXaxis(Int_t n);  //   Create an x-axis for the Event TGraphs
    70   Float_t *CreatePSDXaxis(Int_t n);    //   Create an x-axis for the PSD TGraphs
     69  Float_t *CreateEventXaxis(Int_t n);  // Create an x-axis for the Event TGraphs
     70  Float_t *CreatePSDXaxis(Int_t n);    // Create an x-axis for the PSD TGraphs
    7171
    72   void DrawEvents();                               // Draw graph of fEvents
     72  void DrawEvents();                                  // Draw graph of fEvents
    7373  void DrawPowerSpectrum(TVirtualPad &pad, Int_t i);  // Draw graph of fPowerSpectrum and fHPowerProbability
    7474
     
    9494  void  SetSigmaErr( const Double_t d )   { fSigmaErr = d;   }
    9595  void  SetProb    ( const Double_t d )   { fProb     = d;   }
    96   void  SetPixId    ( const Int_t i    )   { fPixId    = i;   }
     96  void  SetPixId   ( const Int_t i    )   { fPixId    = i;   }
    9797
    98   void  SetNbins    ( const Int_t i    )   { fNbins    = i;   } 
     98  void  SetNbins   ( const Int_t i    )   { fNbins    = i;   } 
    9999  void  SetFirst   ( const Double_t d )   { fFirst    = d;   }
    100100  void  SetLast    ( const Double_t d )   { fLast     = d;   }
    101101 
    102   void  SetNDFLimit(  const Int_t   lim=fgNDFLimit  ) {  fNDFLimit = lim;
    103   void  SetPickupLimit( const Float_t  lim =fgPickupLimit)  { fPickupLimit  = lim;  }
    104   void  SetProbLimit( const Float_t lim=fgProbLimit ) {  fProbLimit = lim; }
     102  void  SetNDFLimit    ( const Int_t   lim=fgNDFLimit    ) { fNDFLimit    = lim;
     103  void  SetPickupLimit ( const Float_t lim=fgPickupLimit ) { fPickupLimit = lim; }
     104  void  SetProbLimit   ( const Float_t lim=fgProbLimit   ) { fProbLimit  = lim; }
    105105
    106106  // Setters ONLY for MC:
     
    164164  // Fits
    165165  Bool_t FitGaus(Option_t *option="RQ0",
    166                  const Double_t xmin=0., const Double_t xmax=0.); // Fit the histogram HGausHist with a Gaussian
    167   Bool_t RepeatFit(const Option_t *option="RQ0");      // Repeat fit within limits defined by fPickupLimit
    168   void BypassFit();                                    // Take mean and RMS from the histogram
     166                 const Double_t xmin=0.,
     167                 const Double_t xmax=0.);         // Fit the histogram HGausHist with a Gaussian
     168  Bool_t RepeatFit(const Option_t *option="RQ0"); // Repeat fit within limits defined by fPickupLimit
     169  void BypassFit();                               // Take mean and RMS from the histogram
    169170 
    170171  // Draws
    171   virtual void Draw(Option_t *option="");        // Default Draw
     172  virtual void Draw(Option_t *option="");         // Default Draw
    172173 
    173174  // Prints
     
    175176 
    176177  // Miscelleaneous
    177   virtual void ChangeHistId(const Int_t id);   // Changes names and titles of the histogram
    178   virtual void Renorm();                    // Re-normalize the results
     178  virtual void ChangeHistId(const Int_t id); // Changes names and titles of the histogram
     179  virtual void Renorm();                     // Re-normalize the results
    179180 
    180   void CreateFourierSpectrum();             // Create the fourier spectrum out of fEvents
    181   void CreateGraphEvents();                 // Create the TGraph fGraphEvents of fEvents
    182   void CreateGraphPowerSpectrum();          // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum
     181  void CreateFourierSpectrum();              // Create the fourier spectrum out of fEvents
     182  void CreateGraphEvents();                  // Create the TGraph fGraphEvents of fEvents
     183  void CreateGraphPowerSpectrum();           // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum
    183184 
    184   ClassDef(MHGausEvents, 1)                 // Base class for events with Gaussian distributed values
     185  ClassDef(MHGausEvents, 1) // Base class for events with Gaussian distributed values
    185186};
    186187
Note: See TracChangeset for help on using the changeset viewer.