PandaRoot
BSEmcCreateRecoHitProcess.h
Go to the documentation of this file.
1 #ifndef BSEMCCREATERECOHITPROCESS_HH
2 #define BSEMCCREATERECOHITPROCESS_HH
3 #include <memory>
4 #include <string>
5 #include <vector>
6 
7 #include "Rtypes.h"
8 #include "RtypesCore.h"
9 
10 #include "PndContainerI.h"
11 #include "PndParameterRegister.h"
12 #include "PndProcess.h"
13 
14 #include "BSEmcClusteringData.h"
16 #include "BSEmcPositionAlgo.h"
17 #include "BSEmcXClMoments.h"
18 
19 class FairParGenericSet;
20 class BSEmcClusteringPar;
21 class BSEmcDigi;
22 class BSEmcCluster;
23 class BSEmcSubCluster;
24 class BSEmcRecoHit;
26 class TBuffer;
27 class TClass;
28 class TMemberInspector;
29 struct BSEmcClusteringData;
30 template <class T>
31 class PndContainerI;
32 template <class T>
34 
43 class BSEmcCreateRecoHitProcess : public PndProcess<BSEmcClusteringData> {
44  public:
47  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
48  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
49  virtual void SetData(BSEmcClusteringData *t_pdata) /*override*/;
50  virtual void Process() /*override*/;
51  std::vector<BSEmcRecoHit *> CreateRecoHits(const std::vector<const BSEmcDigi *> &t_digiCont, const std::vector<const BSEmcCluster *> &t_clusterCont,
52  const std::vector<const BSEmcSubCluster *> &t_subclusterCont) const;
53 
54  void SetClusteringParName(const std::string &t_parName) { fClusteringParName = t_parName; }
55  void SetClusterPropertiesParName(const std::string &t_parName) { fClusterPropertiesParName = t_parName; }
56 
57  void SetPositionParName(const std::string &t_parName) { fPositionParName = t_parName; }
58  void SetNeighbouringRelationParName(const std::string &t_parName) { fNeighbouringRelationParName = t_parName; }
59 
60  private:
61  std::string fClusteringParName{""};
62  std::string fClusterPropertiesParName{""};
63  std::string fPositionParName{""};
64  std::string fNeighbouringRelationParName{""};
65  std::string fSubClusterBranchName{""};
66  PndContainerI<BSEmcDigi> *fDigiArray{nullptr};
67  PndOutputContainerI<BSEmcCluster> *fClusterArray{nullptr};
68  PndOutputContainerI<BSEmcSubCluster> *fSubClusterArray{nullptr};
69  PndOutputContainerI<BSEmcRecoHit> *fRecoHitArray{nullptr};
70  std::unique_ptr<BSEmcEnergyCalculationAlgo> fEnergyProcess{new BSEmcEnergyCalculationAlgo};
71  std::unique_ptr<BSEmcXClMoments> fMomentsProcess{new BSEmcXClMoments};
72  std::unique_ptr<BSEmcPositionAlgo> fPositionAlgo{new BSEmcPositionAlgo};
73  ClassDef(BSEmcCreateRecoHitProcess, 1);
74 };
75 
76 #endif /*BSEMCCREATERECOHITPROCESS_HH*/
Base Process class.
Definition: PndProcess.h:24
Resembles/Contains all information a particle hitting the EMC can provide for later use in the PID st...
Definition: BSEmcRecoHit.h:31
Container for clustering parameter.
virtual void SetData(BSEmcClusteringData *t_pdata)
Pass the data container ptrs to the process, and store pointers in class members. ...
Helper class to calculate the cluster position.
void SetPositionParName(const std::string &t_parName)
virtual void SetupParameters(const PndParameterRegister *t_parameterRegister)
Fetch all parameters from the PndParameterRegister.
std::vector< BSEmcRecoHit * > CreateRecoHits(const std::vector< const BSEmcDigi *> &t_digiCont, const std::vector< const BSEmcCluster *> &t_clusterCont, const std::vector< const BSEmcSubCluster *> &t_subclusterCont) const
Creates for each BSEmcSubCluster a BSEmcRecoHit and fills it with additional information such as Zern...
a cluster (group of neighboring crystals) of hit emc crystals
Definition: BSEmcCluster.h:54
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.
Container of addresses for data Container used by BSEmcClusteringTask and passed to Clustering Proces...
Helper class to calculate Zernike and Lateral Moments.
represents the reconstructed hit of one emc crystal
Definition: BSEmcDigi.h:47
void SetClusterPropertiesParName(const std::string &t_parName)
Interface to a datacontainer to be used in PandaROOT.
Helper class to calculate the Energies of a cluster.
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
represents a reconstructed (splitted) emc cluster
void SetNeighbouringRelationParName(const std::string &t_parName)
virtual ~BSEmcCreateRecoHitProcess()
void SetClusteringParName(const std::string &t_parName)
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...