Changeset 3641
- Timestamp:
- 04/04/04 17:41:10 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimePix.h
r3639 r3641 11 11 private: 12 12 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 17 20 public: 18 21 … … 20 23 ~MHCalibrationRelTimePix() {} 21 24 25 // Setters 26 void SetFADCSliceWidth( const Float_t f=fgFADCSliceWidth ) { fFADCSliceWidth = f; } 27 22 28 void Reset(); 29 void Renorm(); 23 30 24 31 ClassDef(MHCalibrationRelTimePix, 1) // Histogram class for Relative Time Pixel Calibration -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r3636 r3641 722 722 // - fHGausHist 723 723 // 724 void MHGausEvents::ChangeHistId( Int_t id)724 void MHGausEvents::ChangeHistId(const Int_t id) 725 725 { 726 726 … … 733 733 fTitle = Form("%s%d", fTitle.Data(), id); 734 734 735 } 736 737 // -------------------------------------------------------------------------- 738 // 739 // Re-normalize the results, has to be overloaded 740 // 741 void MHGausEvents::Renorm() 742 { 735 743 } 736 744 -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.h
r3640 r3641 67 67 Float_t fPickupLimit; // Upper number of sigmas from the mean until events are considered as pickup 68 68 69 Float_t *CreateEventXaxis(Int_t n); // 70 Float_t *CreatePSDXaxis(Int_t n); // 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 71 71 72 void DrawEvents(); // Draw graph of fEvents72 void DrawEvents(); // Draw graph of fEvents 73 73 void DrawPowerSpectrum(TVirtualPad &pad, Int_t i); // Draw graph of fPowerSpectrum and fHPowerProbability 74 74 … … 94 94 void SetSigmaErr( const Double_t d ) { fSigmaErr = d; } 95 95 void SetProb ( const Double_t d ) { fProb = d; } 96 void SetPixId 96 void SetPixId ( const Int_t i ) { fPixId = i; } 97 97 98 void SetNbins 98 void SetNbins ( const Int_t i ) { fNbins = i; } 99 99 void SetFirst ( const Double_t d ) { fFirst = d; } 100 100 void SetLast ( const Double_t d ) { fLast = d; } 101 101 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; } 105 105 106 106 // Setters ONLY for MC: … … 164 164 // Fits 165 165 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 169 170 170 171 // Draws 171 virtual void Draw(Option_t *option=""); // Default Draw172 virtual void Draw(Option_t *option=""); // Default Draw 172 173 173 174 // Prints … … 175 176 176 177 // Miscelleaneous 177 virtual void ChangeHistId(const Int_t id); 178 virtual void Renorm(); // Re-normalize the results178 virtual void ChangeHistId(const Int_t id); // Changes names and titles of the histogram 179 virtual void Renorm(); // Re-normalize the results 179 180 180 void CreateFourierSpectrum(); // Create the fourier spectrum out of fEvents181 void CreateGraphEvents(); // Create the TGraph fGraphEvents of fEvents182 void CreateGraphPowerSpectrum(); // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum181 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 183 184 184 ClassDef(MHGausEvents, 1) 185 ClassDef(MHGausEvents, 1) // Base class for events with Gaussian distributed values 185 186 }; 186 187
Note:
See TracChangeset
for help on using the changeset viewer.