ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCalibClusterTruthAttributerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CALOCALIBHITREC_CALOCALIBCLUSTERTRUTHATTRIBUTERTOOL_H
6#define CALOCALIBHITREC_CALOCALIBCLUSTERTRUTHATTRIBUTERTOOL_H
7
10
12
13class CaloCalibClusterTruthAttributerTool : public extends<AthAlgTool, ICaloCalibClusterTruthAttributerTool> {
14
15public:
16
17 CaloCalibClusterTruthAttributerTool(const std::string& type,const std::string& name,const IInterface* parent);
19
21 virtual StatusCode calculateTruthEnergies(const xAOD::CaloCluster& theCaloCluster
22 , unsigned int numTruthParticles
23 , const std::map<Identifier,std::vector<const CaloCalibrationHit*> >& identifierToCaloHitMap
24 , std::vector<std::pair<unsigned int, double > >& barcodeTrueCalHitEnergy) const override;
25
26private:
28 Gaudi::Property<bool> m_fullTruthEnergy{this,"storeFullTruthEnergy",false,"Toggle storage of invisible and escaped energy"};
29
31 Gaudi::Property<bool> m_useCellWeights{this,"useCellWeights",false,"Toggle whether to use cell weights or not to calculate calibration hit contribution"};
32
33};
34#endif
CaloCalibClusterTruthAttributerTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< bool > m_useCellWeights
Toggle whether to use cell weights or not to calculate calibration hit contribution.
virtual StatusCode calculateTruthEnergies(const xAOD::CaloCluster &theCaloCluster, unsigned int numTruthParticles, const std::map< Identifier, std::vector< const CaloCalibrationHit * > > &identifierToCaloHitMap, std::vector< std::pair< unsigned int, double > > &barcodeTrueCalHitEnergy) const override
This calculates the truth energies of N leading truth particles in a topocluster.
Gaudi::Property< bool > m_fullTruthEnergy
Toggle storage of invisible and escaped energy - by default this is false, and hence we do not store ...
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.