PandaRoot
BSEmcDigitizerTask.h
Go to the documentation of this file.
1 #ifndef BSEMCDIGITIZERTASK_HH
2 #define BSEMCDIGITIZERTASK_HH
3 
4 #include <string>
5 
6 #include "FairLogger.h"
7 #include "FairRootManager.h"
8 
9 #include "PndConstContainer.h"
10 #include "PndContainerI.h"
11 #include "PndMutableContainer.h"
12 #include "PndProcess.h"
13 #include "PndProcessTask.h"
14 
15 #include "BSEmcDigi.h"
16 
17 #include "BSEmcMCDeposit.h"
18 #include "BSEmcMultiWaveform.h"
19 
30  public:
31  BSEmcDigitizerTask(const std::string &t_detectorname = "Barrel", Bool_t t_storedigis = kTRUE);
32  virtual ~BSEmcDigitizerTask();
33 
34  void SetMCDepositBranchName(const std::string &t_depositbranchname) { fMCDepositBranchname = t_depositbranchname; }
35  void SetDigiBranchName(const std::string &t_digibranchname) { fDigiBranchname = t_digibranchname; }
36  void SetWaveformBranchName(const std::string &t_waveformbranchname) { fWaveformBranchname = t_waveformbranchname; }
37 
38  protected:
39  virtual void PreProcessing(Option_t * /*unused*/) /*override*/;
40  virtual void PostProcessing(Option_t * /*unused*/) /*override*/;
41  virtual void SetupDataArrays() /*override*/;
42 
43  private:
44  std::string fMCDepositBranchname{""};
45  std::string fDigiBranchname{""};
46  std::string fWaveformBranchname{""};
47  ClassDef(BSEmcDigitizerTask, 1);
48 };
49 
50 #endif /*BSEMCDIGITIZERTASK_HH*/
Task based version of a PndProcessHandler.
virtual void SetupDataArrays()
Define which data containers need to be fetched from the FairRootManager, pass the data container add...
void SetDigiBranchName(const std::string &t_digibranchname)
Task managing all processes required to create BSEmcDigis from BSEmcMCDeposits.
Container to wrap PndTCA/STDMutableContainer (not needed anymore)
virtual ~BSEmcDigitizerTask()
virtual void PreProcessing(Option_t *)
Do some task preparation before PndProcesses are run once per event.
void SetMCDepositBranchName(const std::string &t_depositbranchname)
BSEmcDigitizerTask(const std::string &t_detectorname="Barrel", Bool_t t_storedigis=kTRUE)
virtual void PostProcessing(Option_t *)
Do some task post clean up after PndProcesses are run once per event.
Interface to a datacontainer to be used in PandaROOT.
void SetWaveformBranchName(const std::string &t_waveformbranchname)
Container to wrap PndTCA/STDConstContainer (not needed anymore)