PandaRoot
BSEmcEnergyCalculationAlgo.h
Go to the documentation of this file.
1 #ifndef BSEMCENERGYCALCULATIONALGO_HH
2 #define BSEMCENERGYCALCULATIONALGO_HH
3 
4 #include <vector>
5 
6 #include "Rtypes.h"
7 #include "RtypesCore.h"
8 
10 
11 class BSEmcDigi;
12 class BSEmcCluster;
14 class TBuffer;
15 class TClass;
16 class TMemberInspector;
17 
35  public:
38 
39  void SetNeighbouringRelation(const BSEmcGeoNeighbouringRelationPar *t_neighbouringRelation) { fNeighbouringRelationPar = t_neighbouringRelation; }
40 
41  Double_t CalculateEnergy(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
42  Double_t CalculateE1(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
43  Double_t CalculateE9(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
44  Double_t CalculateE25(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
45 
46  private:
47  const BSEmcGeoNeighbouringRelationPar *fNeighbouringRelationPar{nullptr};
48  ClassDef(BSEmcEnergyCalculationAlgo, 1);
49 };
50 
51 #endif /*BSEMCENERGYCALCULATIONALGO_HH*/
void SetNeighbouringRelation(const BSEmcGeoNeighbouringRelationPar *t_neighbouringRelation)
Double_t CalculateE25(const BSEmcCluster *t_cluster, const std::vector< const BSEmcDigi *> &t_digis) const
virtual ~BSEmcEnergyCalculationAlgo()
Double_t CalculateE1(const BSEmcCluster *t_cluster, const std::vector< const BSEmcDigi *> &t_digis) const
a cluster (group of neighboring crystals) of hit emc crystals
Definition: BSEmcCluster.h:54
Double_t CalculateEnergy(const BSEmcCluster *t_cluster, const std::vector< const BSEmcDigi *> &t_digis) const
represents the reconstructed hit of one emc crystal
Definition: BSEmcDigi.h:47
Helper class to calculate the Energies of a cluster.
Neigbouring Relations based on a list of detectorIds.
Double_t CalculateE9(const BSEmcCluster *t_cluster, const std::vector< const BSEmcDigi *> &t_digis) const