PandaRoot
BSEmcWaveformGenerationProcess.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------
2 // Author List:
3 // Phil Strother Original author
4 // Dima Melnichuk - adaption for PANDA
5 // Philipp Mahlberg - integration in timebased simulation concept
6 //----------------------------------------------------------------------
7 #ifndef BSEMCWAVEFORMGENERATIONPROCESS_HH
8 #define BSEMCWAVEFORMGENERATIONPROCESS_HH
9 
10 #include <string>
11 
12 #include "Rtypes.h"
13 #include "RtypesCore.h"
14 #include "TString.h"
15 
16 #include "PndProcess.h"
17 
18 #include "BSEmcDigiPar.h"
19 
23 class BSEmcDigiPar;
24 class BSEmcMCDeposit;
25 class TBuffer;
26 class TClass;
27 class TMemberInspector;
28 template <class T>
29 class PndContainerI;
30 
46  public:
47  // Constructors
48  BSEmcWaveformGenerationProcess(BSEmcAbsWaveformSimulator *t_simulator = nullptr, Bool_t t_storewaves = kTRUE, Bool_t t_storeData = kTRUE, Bool_t t_timebased = kFALSE);
49  // Destructor
51  virtual void RequestDataContainer(PndContainerRegister *t_register) /*override*/;
52  virtual void GetDataContainer(PndContainerRegister *t_register) /*override*/;
53  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
54  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
55  virtual void Process() /*override*/;
56  void AddDepositData(const BSEmcMCDeposit *t_deposit, const Int_t t_depositIndex);
57 
58  void RunTimebased(Bool_t t_timebased = kTRUE) { fActivateBuffering = t_timebased; };
59  void SetStorageOfData(Bool_t t_storeWaves = kTRUE) { fStoreWaves = (t_storeWaves); };
60  void StoreDataClass(Bool_t t_storeData = kTRUE) { fStoreDataClass = t_storeData; };
61 
62  void SetMCDepositBranchName(const TString &t_branchName) { fMCDepositBranchname = t_branchName; }
63  void SetWaveformBranchName(const TString &t_branchName) { fWaveformBranchName = t_branchName; }
64  void SetWaveformDataBranchName(const TString &t_branchName) { fWaveformDataBranchName = t_branchName; }
65  void SetPhotonStatisticParName(const std::string &t_photonStatParName) { fPhotonStatisticParName = t_photonStatParName; }
66 
67  protected:
68  void SetSimulator(BSEmcAbsWaveformSimulator *t_simulator) { fSimulator = t_simulator; }
69  TString fMCDepositBranchname{""};
70  TString fWaveformBranchName{""};
76 
77  Bool_t fStoreWaves{kFALSE};
78  Bool_t fStoreDataClass{kFALSE};
79  Bool_t fActivateBuffering{kFALSE};
80  std::string fPhotonStatisticParName{""};
82  Bool_t fUse_photon_statistic{kFALSE};
84  Double_t fExcessNoiseFactor{0};
85  Double_t fOverlapTime{0};
86 
88 };
89 
90 #endif /*BSEMCWAVEFORMGENERATIONPROCESS_HH*/
void AddDepositData(const BSEmcMCDeposit *t_deposit, const Int_t t_depositIndex)
Base Process class.
Definition: PndProcess.h:24
Base class Process to create waveforms out of BSEmcMCDeposits.
represents the deposited energy of one emc crystal from simulation
void RunTimebased(Bool_t t_timebased=kTRUE)
virtual void GetDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and set the processes container requirements.
virtual void RequestDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and get the processes container requirements.
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.
PndContainerI< BSEmcMCDeposit > * fMCDepositArray
void SetPhotonStatisticParName(const std::string &t_photonStatParName)
void SetStorageOfData(Bool_t t_storeWaves=kTRUE)
Abstract base class for waveform simulator.
virtual void SetDetectorName(const std::string &t_detectorName)
Set the Detector name. Important, as most EmcParameter need to know for which detector they need to b...
buffer for waveforms, used by BSEmcFwEndcapTimebasedWaveforms
virtual void SetupParameters(const PndParameterRegister *t_parameterRegister)
Fetch all parameters from the PndParameterRegister.
void SetMCDepositBranchName(const TString &t_branchName)
void SetWaveformBranchName(const TString &t_branchName)
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
BSEmcWaveformGenerationProcess(BSEmcAbsWaveformSimulator *t_simulator=nullptr, Bool_t t_storewaves=kTRUE, Bool_t t_storeData=kTRUE, Bool_t t_timebased=kFALSE)
void SetWaveformDataBranchName(const TString &t_branchName)
void SetSimulator(BSEmcAbsWaveformSimulator *t_simulator)
Container for runtime parameters that are required for the transformation from BSEmcMCDeposits to BSE...
Definition: BSEmcDigiPar.h:24
ClassDef(BSEmcWaveformGenerationProcess, 2)
void StoreDataClass(Bool_t t_storeData=kTRUE)