PandaRoot
PndEmcPSATmaxAnalyser.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // Description:
3 // Class of TMAX filter for feature extraction
4 // Guang Zhao
5 //-----------------------------------------------------------
6 
7 #ifndef PNDEMCPSATMAXANALYSER_HH
8 #define PNDEMCPSATMAXANALYSER_HH
9 
10 #include "PndEmcAbsPSA.h"
11 
12 #include "TString.h"
13 
14 class PndEmcWaveform;
15 
17 {
18 
19 public:
20  PndEmcPSATmaxAnalyser(const Double_t* coeff, Int_t taps, Int_t gap, Int_t samplingrate,
21  Double_t hit_threshold, Double_t tut_peak, Double_t hit_val, Int_t verbose);
22  virtual ~PndEmcPSATmaxAnalyser();
23 
24  virtual Int_t Process(const PndEmcWaveform *waveform);
25 
26  virtual void GetHit(Int_t i, Double_t &Energy, Double_t &Time);
27 
28  virtual void Reset();
29 
30 
31 private:
32  Double_t* fir(Double_t*, Int_t);
33  Double_t hit_det(Int_t tut_int);
34 
35  Int_t fTaps;
36  Int_t fGap;
37  Double_t fHitThr;
38  Double_t fTutPeak;
39  Double_t fHitVal;
40  const Double_t *fFIRCoeff;
41  Double_t fTimeStep;
42 
43  std::vector<Double_t> fEnergyList;
44  std::vector<Double_t> fTimeList;
45 
46  Int_t fVerbose;
47 
49 };
50 
51 #endif
52 
PndEmcPSATmaxAnalyser(const Double_t *coeff, Int_t taps, Int_t gap, Int_t samplingrate, Double_t hit_threshold, Double_t tut_peak, Double_t hit_val, Int_t verbose)
virtual Int_t Process(const PndEmcWaveform *waveform)
Find Hits in Waveform.
virtual void Reset()
reset found hits
ClassDef(PndEmcAbsPSA, 1)
unsigned int i
Definition: P4_F32vec4.h:21
represents a simulated waveform in an emc crystal
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:21
virtual ~PndEmcPSATmaxAnalyser()
virtual void GetHit(Int_t i, Double_t &Energy, Double_t &Time)
Get energy and time of hit.