FairRoot/PandaRoot
PndEmcPSAParabolic.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 EMCPSAPARABOLIC_HH
10 #define EMCPSAPARABOLIC_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 ---------
31  virtual ~PndEmcPSAParabolic(){;}
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  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos,Int_t peakBin) const;
39  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos, Int_t start, Int_t end) const;
40  void FitPeak(const std::vector<Double_t> & signal, Double_t& ampl, Double_t& pos) const;
41 private:
44 
45 };
46 
47 #endif
TVector3 pos
virtual void Process(const PndEmcWaveform *waveform, Double_t &amplitude, Double_t &time)
Deprecated. Do not use.
Pulseshape analysis for ADC waveforms.
Int_t i
Definition: run_full.C:25
void FitPeak(const std::vector< Double_t > &signal, Double_t &ampl, Double_t &pos, Int_t peakBin) const
Double_t
represents a simulated waveform in an emc crystal
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:21
Double_t energy
Definition: plot_dirc.C:15
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)
Get energy and time of hit.