Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
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
ICaloCalibClusterTruthAttributerTool.h
CaloCalibClusterTruthAttributerTool
Concrete tool that calculates calibration hit truth energies in xAOD::CaloCluster.
Definition: CaloCalibClusterTruthAttributerTool.h:13
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
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:240
CaloCalibClusterTruthAttributerTool::~CaloCalibClusterTruthAttributerTool
virtual ~CaloCalibClusterTruthAttributerTool()
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
CaloCalibClusterTruthAttributerTool::m_useCellWeights
Gaudi::Property< bool > m_useCellWeights
Toggle whether to use cell weights or not to calculate calibration hit contribution.
Definition: CaloCalibClusterTruthAttributerTool.h:31
Identifier
Definition: IdentifierFieldParser.cxx:14