5#ifndef CALOCALIBHITREC_CALOCALIBCLUSTERDECORATORTOOL_H
6#define CALOCALIBHITREC_CALOCALIBCLUSTERDECORATORTOOL_H
8#include "GaudiKernel/ToolHandle.h"
48 const IInterface* parent);
53 virtual StatusCode
execute(
const EventContext& ctx,
60 virtual StatusCode
finalize()
override;
73 unsigned int numTruthParticles,
74 const std::map<
Identifier,std::vector<const CaloCalibrationHit*> >& identifierToCaloHitMap,
75 std::vector<std::pair<unsigned int,double>>& truthIDTrueCalHitEnergy)
const;
82 "ReadHandleKey for the map between Identifiers and sets of calibration hits"};
90 "CaloClusterWriteDecorHandleKey_NLeadingTruthParticles",
91 "CaloTopoClustersNew.calclus_NLeadingTruthParticleBarcodeEnergyPairs"};
98 this,
"NumTruthParticles",100,
99 "Set number of truth particles per CaloCluster/PFO for which we store calibration hit energy"};
105 this,
"useCellWeights",
true,
106 "Toggle whether to use cell weights or not to calculate calibration hit contribution"};
112 this,
"StoreFullTruthEnergy",
false,
113 "If true, include escaped + invisible energy in truth energy calculation"};
118 ToolHandle<ICaloCalibClusterTruthAttributerTool>
120 this,
"TruthAttributerTool",
"",
121 "ToolHandle to a tool to create the calibration hit truth information that we need for the decoration"};
Base class for cluster processing tools called from CaloClusterMaker.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.