ATLAS Offline Software
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 
13 class CaloCalibClusterTruthAttributerTool : public extends<AthAlgTool, ICaloCalibClusterTruthAttributerTool> {
14 
15 public:
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 
26 private:
28  Gaudi::Property<bool> m_fullTruthEnergy{this,"storeFullTruthEnergy",false,"Toggle storage of invisible and escaped energy"};
29 
30 };
31 #endif
ICaloCalibClusterTruthAttributerTool.h
CaloCalibClusterTruthAttributerTool
Concrete tool that calculates calibration hit truth energies in xAOD::CaloCluster.
Definition: CaloCalibClusterTruthAttributerTool.h:13
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloCalibClusterTruthAttributerTool::calculateTruthEnergies
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.
Definition: CaloCalibClusterTruthAttributerTool.cxx:12
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCalibClusterTruthAttributerTool::CaloCalibClusterTruthAttributerTool
CaloCalibClusterTruthAttributerTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloCalibClusterTruthAttributerTool.cxx:7
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCalibClusterTruthAttributerTool::~CaloCalibClusterTruthAttributerTool
virtual ~CaloCalibClusterTruthAttributerTool()
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCalibClusterTruthAttributerTool::m_fullTruthEnergy
Gaudi::Property< bool > m_fullTruthEnergy
Toggle storage of invisible and escaped energy - by default this is false, and hence we do not store ...
Definition: CaloCalibClusterTruthAttributerTool.h:28
Identifier
Definition: IdentifierFieldParser.cxx:14