FairRoot/PandaRoot
PndEmcPSAParabolicBaseline.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // Description:
3 // Pulseshape analysis for ADC waveforms
4 // Amplitude and time are determined from the simple parabolic fit
5 // by three points (maximum bin and its left and right neigbours)
6 //
7 //-----------------------------------------------------------
8 
9 #ifndef EMCPSAPARABOLICBASELINE_HH
10 #define EMCPSAPARABOLICBASELINE_HH
11 
12 // Base Class Headers ----------------
13 #include <vector>
14 #include "PndEmcAbsPSA.h"
15 #include "TObject.h"
16 
17 class PndEmcWaveform;
18 
27 public:
28 
29  // Constructors/Destructors ---------
30  PndEmcPSAParabolicBaseline(Int_t baselength =0):lBaselength(baselength){}
32 
33  virtual void Process(const PndEmcWaveform * waveform, Double_t &amplitude, Double_t &time);
34 
35  virtual Int_t Process(const PndEmcWaveform *waveform);
36  virtual void GetHit(Int_t i, Double_t &energy, Double_t &time);
37 
38 
39  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos,Int_t peakBin) const;
40  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos, Int_t start, Int_t end) const;
41  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos) const;
42  void GetBaseline(const std::vector<Double_t> &signal,Double_t &baseline)const;
43  private:
44  Int_t lBaselength;
47 
49 };
50 
51 
52 #endif
TVector3 pos
Int_t i
Definition: run_full.C:25
virtual void Process(const PndEmcWaveform *waveform, Double_t &amplitude, Double_t &time)
Deprecated. Do not use.
Double_t
void GetBaseline(const std::vector< Double_t > &signal, Double_t &baseline) const
represents a simulated waveform in an emc crystal
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:21
Pulseshape analysis for ADC waveforms.
ClassDef(PndEmcPSAParabolicBaseline, 1)
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)
Get energy and time of hit.
PndEmcPSAParabolicBaseline(Int_t baselength=0)
void FitPeak(const std::vector< Double_t > &signal, Double_t &ampl, Double_t &pos, Int_t peakBin) const
Double_t energy
Definition: plot_dirc.C:15