PandaRoot
BSEmcBwEndcapDigi.h
Go to the documentation of this file.
1 //#pragma once
2 
3 #ifndef BSEMCBWENDCAPDIGI_HH
4 #define BSEMCBWENDCAPDIGI_HH
5 
6 #include <PndPersistencyTask.h>
7 #include <set>
8 #include <string>
9 
10 #include "Rtypes.h"
11 #include "RtypesCore.h"
12 #include "TString.h"
13 
14 #include "BSEmcBwEndcapDigiPar.h"
15 #include "BSEmcDigi.h"
17 #include "BSEmcPSATmaxAnalyser.h"
18 
19 class BSEmcAbsPSA;
20 class BSEmcAbsPulseshape;
21 class BSEmcMultiPSA;
24 class BSEmcWaveform;
25 class TBuffer;
26 class TClass;
27 class TMemberInspector;
28 
37 class BSEmcBwEndcapDigi : public BSEmcExtractDigisFromWaveforms<BSEmcBwEndcapDigiPar> {
38  public:
39  // Constructors
40  BSEmcBwEndcapDigi(const std::string &t_detectorname = "BwEndcap", Bool_t t_storedigis = kTRUE);
41  // Destructor
42  virtual ~BSEmcBwEndcapDigi();
43 
44  void SingleAPDMode(Bool_t t_mode = kTRUE) { fSingleAPDMode = t_mode; }
45 
46  protected:
47  virtual void DefinePSA() /*override*/;
48  virtual Double_t GetTimeStamp(BSEmcWaveform * /*t_waveform*/, Double_t t_digi_time) const /*override*/ { return t_digi_time; }
49  virtual BSEmcDigi::eGAIN GetGainType(BSEmcWaveform *t_waveform, Int_t t_hit) const /*override*/;
50 
51  private:
52  BSEmcPSAOverflowCombinator *fCombinator{nullptr};
53  BSEmcPSATmaxAnalyser *fHighgainPSA{nullptr};
54  BSEmcPSATmaxAnalyser *fLowgainPSA{nullptr};
55  Bool_t fSingleAPDMode{kFALSE};
56 
58 };
59 
60 #endif /*BSEMCBWENDCAPDIGI_HH*/
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: BSEmcAbsPSA.h:26
BSEmcBwEndcapDigi(const std::string &t_detectorname="BwEndcap", Bool_t t_storedigis=kTRUE)
represents a simulated waveform in an emc crystal
Definition: BSEmcWaveform.h:63
void SingleAPDMode(Bool_t t_mode=kTRUE)
Task to create digis from waveforms.
virtual void DefinePSA()
virtual Double_t GetTimeStamp(BSEmcWaveform *, Double_t t_digi_time) const
Task to create digis from waveforms.
pulseshape interface
virtual ~BSEmcBwEndcapDigi()
virtual BSEmcDigi::eGAIN GetGainType(BSEmcWaveform *t_waveform, Int_t t_hit) const
ClassDef(BSEmcExtractDigisFromWaveforms, 1)
Wrapping class to manage multiple independent PSAs.
Definition: BSEmcMultiPSA.h:29