Diana Software
MBaselineModule.hh
Go to the documentation of this file.
1 
32 #ifndef _M_BASELINEMODULE_H_
33 #define _M_BASELINEMODULE_H_
34 
35 #include <string>
36 #include "QModule.hh"
37 #include "QDiana.hh"
38 
39 
40 class MBaselineModule : public Diana::QModule {
41 
42  public:
43  // Init method is called before event loop
44  void Init( Diana::QEvent& ev);
45 
46  // Doit method is called for each event, getting the event as argument
47  void Do( Diana::QEvent& ev);
48 
49  // Done method is called after event loop
50  void Done();
51 
52  private:
54  Double_t fBaseline;
55  Double_t fRightBaseline;
62  Double_t fBaselineSlope;
65  Double_t fBaselineRMS;
68 
69  std::string fPulseLabel;
70  bool fTomV;
71 };
72 
73 #endif
Module to calculate baseline parameters.
Double_t fRightLeftBaselineInRMS
Int_t fNumberOfBaselinePoints
Number of points to include in calculation.
Double_t fBaselineRMS
RMS deviation from best fit line.
void Do(Diana::QEvent &ev)
Double_t fBaselineSlope
Slope (c1) of linear fit.
void Init(Diana::QEvent &ev)
Double_t fBaseline
Average value of baseline.
Double_t fRightBaselineInRMS
Double_t fBaselineSlopeRMSWindow
std::string fPulseLabel
Double_t fBaselineIntercept
Intecept (c0) of linear fit.
Double_t fRightLeftBaseline
Double_t fRightBaseline