PandaRoot
BSEmcEnergyCalculationAlgo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef BSEMCENERGYCALCULATIONALGO_HH
14 #define BSEMCENERGYCALCULATIONALGO_HH
15 
16 #include <vector>
17 
18 #include "Rtypes.h"
19 #include "RtypesCore.h"
20 
22 
23 class BSEmcDigi;
24 class BSEmcCluster;
26 class TBuffer;
27 class TClass;
28 class TMemberInspector;
29 
47  public:
50 
51  void SetNeighbouringRelation(const BSEmcGeoNeighbouringRelationPar *t_neighbouringRelation) { fNeighbouringRelationPar = t_neighbouringRelation; }
52 
53  Double_t CalculateEnergy(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
54  Double_t CalculateE1(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
55  Double_t CalculateE9(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
56  Double_t CalculateE25(const BSEmcCluster *t_cluster, const std::vector<const BSEmcDigi *> &t_digis) const;
57 
58  private:
59  const BSEmcGeoNeighbouringRelationPar *fNeighbouringRelationPar{nullptr};
60  ClassDef(BSEmcEnergyCalculationAlgo, 1);
61 };
62 
63 #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:66
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:59
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