PandaRoot
BSEmcDigiDCSetterProcess.h
Go to the documentation of this file.
1 #ifndef BSEMCDIGIDCSETTERPROCESS_HH
2 #define BSEMCDIGIDCSETTERPROCESS_HH
3 
4 #include <string>
5 
6 #include "Rtypes.h"
7 #include "TString.h"
8 
9 #include "PndMutableContainerI.h"
10 #include "PndProcess.h"
11 
13 #include "BSEmcDigi.h"
14 
15 class BSEmcDigi;
17 class TBuffer;
18 class TClass;
19 class TMemberInspector;
20 template <class T>
22 
32  public:
34  virtual ~BSEmcDigiDCSetterProcess();
35 
36  virtual void RequestDataContainer(PndContainerRegister *t_register) /*override*/;
37  virtual void GetDataContainer(PndContainerRegister *t_register) /*override*/;
38  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
39  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
40  virtual void Process() /*override*/;
41  void SetDigiBranchName(const TString &t_branchname) { fDigiBranchname = t_branchname; }
42 
43  private:
44  TString fDigiBranchname{""};
45 
46  PndMutableContainerI<BSEmcDigi> *fDigiArray{nullptr};
47  BSEmcDataConcentratorLookUp fDCLookUp{};
48  ClassDef(BSEmcDigiDCSetterProcess, 1);
49 };
50 
51 #endif /*BSEMCDIGIDCSETTERPROCESS_HH*/
Base Process class.
Definition: PndProcess.h:24
rudimentary if-statement heavy lookup for data concentrator number for each crystal (detectorId) deve...
virtual void GetDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and set the processes container requirements.
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...
Sets the DataConcentrator number for a BSEmcDigi.
void SetDigiBranchName(const TString &t_branchname)
virtual void RequestDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and get the processes container requirements.
represents the reconstructed hit of one emc crystal
Definition: BSEmcDigi.h:47
virtual ~BSEmcDigiDCSetterProcess()
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
virtual void SetupParameters(const PndParameterRegister *t_parameterRegister)
Fetch all parameters from the PndParameterRegister.
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.