PandaRoot
PndEmcMultiPSA.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // Description:
3 // Wrapping class to manage multiple independent PSAs
4 // Guang Zhao
5 //-----------------------------------------------------------
6 
7 
8 #ifndef PNDEMCMULTIPSA_H_
9 #define PNDEMCMULTIPSA_H_
10 
11 #include <vector>
12 
13 #include "PndEmcAbsPSA.h"
14 
16 class PndEmcWaveform;
17 
25 {
26  public:
28  void AddPSA(PndEmcAbsPSA*);
29 
30  virtual ~PndEmcMultiPSA();
31 
32  virtual Int_t Process(const PndEmcWaveform* waveform);
33  virtual void Reset();
34  virtual void GetHit(Int_t i, Double_t &energy, Double_t &time);
35  Int_t GetAPDGainIndex() { return fAPDGainIndex; }
36 
37  private:
38  std::vector<PndEmcAbsPSA*> fPSA;
39  std::vector<Int_t> fNhit;
40  PndEmcPSACombinator* fCombinator; // combinator to combine multi-PSA outputs to a signle output
41  Int_t fAPDGainIndex; // 0 for hg, 1 for lg
42  std::vector<Double_t> fEnergyList;
43  std::vector<Double_t> fTimeList;
44 
46 };
47 
48 #endif
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)
Get energy and time of hit.
virtual void Reset()
reset found hits
void AddPSA(PndEmcAbsPSA *)
ClassDef(PndEmcAbsPSA, 1)
Wrapping class to manage multiple independent PSAs.
unsigned int i
Definition: P4_F32vec4.h:21
virtual ~PndEmcMultiPSA()
PndEmcMultiPSA(PndEmcPSACombinator *)
represents a simulated waveform in an emc crystal
virtual Int_t Process(const PndEmcWaveform *waveform)
Find Hits in Waveform.
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:21
Int_t GetAPDGainIndex()