1 #ifndef BSEMCENERGIES_T_HH 2 #define BSEMCENERGIES_T_HH 4 #include "TClonesArray.h" 23 Double_t energy = 0.0;
25 for (
const BSEmcDigi *digi : t_digiArray) {
26 energy = digi->GetEnergy();
27 detectorid = digi->GetDetectorId();
28 if (detectorid == t_centralcrystal) {
30 }
else if (t_neighbouring->
AreNeighbours(detectorid, t_centralcrystal)) {
Bool_t AreNeighbours(Int_t t_a, Int_t t_b) const
Double_t MaxNeighbourEnergy
represents the reconstructed hit of one emc crystal
Neigbouring Relations based on a list of detectorIds.
static BSEmcEnergies_t GetEnergies(Int_t t_centralcrystal, const std::vector< const BSEmcDigi *> &t_digiArray, BSEmcGeoNeighbouringRelationPar *t_neighbouring)