PandaRoot
BSEmcPreclusterTimeBuncherProcess.h
Go to the documentation of this file.
1 #ifndef BSEMCPRECLUSTERTIMEBUNCHERPROCESS_HH
2 #define BSEMCPRECLUSTERTIMEBUNCHERPROCESS_HH
3 
4 #include <memory>
5 #include <string>
6 
7 #include "Rtypes.h"
8 #include "RtypesCore.h"
9 #include "TString.h"
10 
11 #include "FairTSBufferFunctional.h"
12 
13 #include "PndContainerI.h"
14 #include "PndProcess.h"
15 
16 #include "BSEmcClusteringData.h"
17 #include "BSEmcPrecluster.h"
18 
19 class BSEmcPrecluster;
21 class TBuffer;
22 class TClass;
23 class TMemberInspector;
24 struct BSEmcClusteringData;
25 template <class T>
27 
36 class BSEmcPreclusterTimeBuncherProcess : public PndProcess<BSEmcClusteringData> {
37  public:
38  BSEmcPreclusterTimeBuncherProcess(const TString &t_sourceBranchName);
40 
41  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
42  virtual void SetData(BSEmcClusteringData *t_data) /*override*/;
43  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
44  virtual void Process() /*override*/;
45 
46  private:
47  PndOutputContainerI<BSEmcPrecluster> *fPreclusters{nullptr};
48  TString fSourceBranchName{""};
49  std::string fClusteringParName{""};
50  Double_t fTimebunchCutTime{0};
51  std::unique_ptr<TimeGap> fFunctor{new TimeGap()};
52 
54 };
55 
56 #endif /*BSEMCPRECLUSTERTIMEBUNCHERPROCESS_HH*/
Base Process class.
Definition: PndProcess.h:24
represents an emc precluster, formed in the (virtual) data concentrators
Process to create precluster time bunches using TimeGap on timesorted precluster container.
virtual void SetupParameters(const PndParameterRegister *t_parameterRegister)
Fetch all parameters from the PndParameterRegister.
BSEmcPreclusterTimeBuncherProcess(const TString &t_sourceBranchName)
virtual void SetData(BSEmcClusteringData *t_data)
Pass the data container ptrs to the process, and store pointers in class members. ...
Container of addresses for data Container used by BSEmcClusteringTask and passed to Clustering Proces...
Interface to a datacontainer to be used in PandaROOT.
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
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...
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.