PandaRoot
BSEmcPSATmaxAnalyser.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 BSEMCPSATMAXANALYSER_HH
8 #define BSEMCPSATMAXANALYSER_HH
9 
10 #include <vector>
11 
12 #include "Rtypes.h"
13 #include "RtypesCore.h"
14 #include "TString.h"
15 
16 #include "BSEmcAbsPSA.h"
17 
18 class BSEmcWaveform;
19 class TBuffer;
20 class TClass;
21 class TMemberInspector;
22 
24 
25  public:
26  BSEmcPSATmaxAnalyser(const Double_t *t_coeff, Int_t t_taps, Int_t t_gap, Int_t t_samplingrate, Double_t t_hit_threshold, Double_t t_tut_peak, Double_t t_hit_val,
27  Int_t t_verbose);
28  virtual ~BSEmcPSATmaxAnalyser();
29 
30  virtual Int_t Process(const BSEmcWaveform *t_waveform) /*override*/;
31 
32  virtual void GetHit(Int_t t_idx, Double_t &t_energy, Double_t &t_time) /*override*/;
33 
34  virtual void Reset() /*override*/;
35 
36  private:
37  Double_t *fir(Double_t *, Int_t);
38  Double_t hit_det(Int_t t_tut_int);
39 
40  Int_t fTaps;
41  Int_t fGap;
42  Double_t fHitThr;
43  Double_t fTutPeak;
44  Double_t fHitVal;
45  const Double_t *fFIRCoeff;
46  Double_t fTimeStep;
47 
48  std::vector<Double_t> fEnergyList;
49  std::vector<Double_t> fTimeList;
50 
51  Int_t fVerbose;
52 
54 };
55 
56 #endif /*BSEMCPSATMAXANALYSER_HH*/
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: BSEmcAbsPSA.h:26
represents a simulated waveform in an emc crystal
Definition: BSEmcWaveform.h:63
virtual ~BSEmcPSATmaxAnalyser()
virtual Int_t Process(const BSEmcWaveform *t_waveform)
Find Hits in Waveform.
virtual void Reset()
reset found hits
ClassDef(BSEmcAbsPSA, 1)
virtual void GetHit(Int_t t_idx, Double_t &t_energy, Double_t &t_time)
Get energy and time of hit.
BSEmcPSATmaxAnalyser(const Double_t *t_coeff, Int_t t_taps, Int_t t_gap, Int_t t_samplingrate, Double_t t_hit_threshold, Double_t t_tut_peak, Double_t t_hit_val, Int_t t_verbose)