7#ifndef JETMOMENTTOOLS_JETCALOENERGIES_H
8#define JETMOMENTTOOLS_JETCALOENERGIES_H
33 bool isInVector(
const std::string& key,
const std::vector<std::string>& calculations);
37 Gaudi::Property<std::vector<std::string> >
m_calculationNames{
this,
"Calculations", {},
"Name of calo quantities to compute and add as decorations"};
38 Gaudi::Property<std::string>
m_jetContainerName{
this,
"JetContainer",
"",
"SG key for the input jet container"};
39 Gaudi::Property<bool>
m_calcClusterBasedVars{
this,
"calcClusterBasedVars",
false,
"SG key to decide if cluster-based variables will be calculated for FE-based jets"};
72#undef ASG_DERIVED_TOOL_CLASS
Interface for adding a decoration to a jet container.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_effNClustsFracKey
Gaudi::Property< bool > m_calcClusterBasedVars
SG::WriteDecorHandleKey< xAOD::JetContainer > m_ePerSamplingKey
void fillEperSamplingCluster(const xAOD::Jet &jet, std::vector< float > &ePerSampling) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_meanRadialDistanceSquaredKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_hecFracKey
JetCaloEnergies(const std::string &t)
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_em3FracKey
Gaudi::Property< std::vector< std::string > > m_calculationNames
SG::WriteDecorHandleKey< xAOD::JetContainer > m_tile0FracKey
void fillEperSamplingPFO(const xAOD::Jet &jet, std::vector< float > &ePerSampling) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_psFracClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracSamplingMaxKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_ePerSamplingClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracSamplingMaxIndexKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_effNClustsFracClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_meanLongitudinalDistanceSquaredKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_hecFracClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracSamplingMaxClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_tile0FracClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_psFracKey
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
void fillEperSamplingFEClusterBased(const xAOD::Jet &jet, std::vector< float > &ePerSampling) const
float getMoment(const xAOD::CaloCluster *cluster, const xAOD::CaloCluster::MomentType &momentType) const
SG::WriteDecorHandleKey< xAOD::JetContainer > m_em3FracClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emFracClusterKey
bool isInVector(const std::string &key, const std::vector< std::string > &calculations)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emFracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracSamplingMaxIndexClusterKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_lambdaLeadingClusterKey
void fillEperSamplingFE(const xAOD::Jet &jet, std::vector< float > &ePerSampling) const
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
MomentType
Enums to identify different moments.
Jet_v1 Jet
Definition of the current "jet version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
JetContainer_v1 JetContainer
Definition of the current "jet container version".