PandaRoot
BSEmcFetchDigisFromPreclusterLinks.h
Go to the documentation of this file.
1 #ifndef BSEMCFETCHDIGISFROMPRECLUSTERLINKS_HH
2 #define BSEMCFETCHDIGISFROMPRECLUSTERLINKS_HH
3 
4 #include <memory>
5 #include <string>
6 
7 #include "Rtypes.h"
8 #include "TString.h"
9 
10 #include "PndContainerI.h"
11 #include "PndParameterRegister.h"
12 #include "PndProcess.h"
13 
14 #include "BSEmcDataBranchNames.h"
15 #include "BSEmcDigi.h"
16 #include "BSEmcPrecluster.h"
17 
18 class BSEmcDigi;
19 class BSEmcPrecluster;
21 class TBuffer;
22 class TClass;
23 class TMemberInspector;
24 struct BSEmcClusteringData;
25 template <class T>
27 
38  public:
39  BSEmcFetchDigisFromPreclusterLinks(const TString &t_sourcedigibranchname = "Preclustering" + BSEmcDataBranchNames::fgDigiBranchName + "FwEndcap");
41 
42  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
43  virtual void RequestDataContainer(PndContainerRegister *t_register) /*override*/;
44  virtual void GetDataContainer(PndContainerRegister *t_register) /*override*/;
45  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
46  virtual void Process() /*override*/;
47 
48  void SetDigiSourceBranchName(const TString &t_branchname) { fDigiSourceBranchname = t_branchname; }
49  void SetDigiTargetBranchName(const TString &t_branchname) { fDigiTargetBranchName = t_branchname; }
50  void SetPreclusterBranchName(const TString &t_branchname) { fPreclusterBranchname = t_branchname; }
51 
52  private:
53  PndMutableContainerI<BSEmcDigi> *fDigis{nullptr};
54  PndMutableContainerI<BSEmcPrecluster> *fPrecluster{nullptr};
55  TString fDigiSourceBranchname{""};
56  TString fDigiTargetBranchName{""};
57  TString fPreclusterBranchname{""};
58 
60 };
61 
62 #endif /*BSEMCFETCHDIGISFROMPRECLUSTERLINKS_HH*/
Base Process class.
Definition: PndProcess.h:24
represents an emc precluster, formed in the (virtual) data concentrators
represents the reconstructed hit of one emc crystal
Definition: BSEmcDigi.h:47
Interface to a datacontainer to be used in PandaROOT.
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
const std::string fgDigiBranchName