Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef JETUTILS_JETCALOHELPER_H
8 #define JETUTILS_JETCALOHELPER_H
123 #define JETCALCFUNCDECL( cname, id, others) \
125 virtual bool setupJet(const xAOD::Jet* jet); \
126 virtual bool processConstituent(xAOD::JetConstituentVector::iterator& iter); \
127 double jetCalculation() const ; \
128 cname(xAOD::JetAttribute::AttributeID i=id) : JetCaloCalculator( i ) { others } \
129 virtual JetCaloCalculator* clone() const {return new cname(*this); }
virtual bool processConstituent(xAOD::JetConstituentVector::iterator &)
Perform 1 calculation step using 1 constituent.
JetCaloCalculations(bool ownCalc=true)
virtual ~JetCaloCalculator()
virtual ~JetCaloCalculations()
virtual std::vector< double > process(const xAOD::Jet *jet) const
Perform all tasks correspondings to the associated JetCaloCalculators on Jet jet.
size_t numCalculators() const
This file defines helper classes to deal with jet constituents.
virtual bool setupJet(const xAOD::Jet *)=0
MomentType
Enums to identify different moments.
const JetCaloCalculator * at(size_t i) const
xAOD::JetAttribute::AttributeID m_id
virtual double operator()(const xAOD::Jet *jet, xAOD::JetConstitScale s=xAOD::UncalibratedJetConstituent)
convenience function to perform the full calculation on a given jet
void setExtractor(const CaloConstitHelpers::CaloConstitExtractor *ex)
virtual bool setupEvent()
Holds a list of JetCalculators.
const CaloConstitHelpers::CaloConstitExtractor * m_constitExtractor
void addCalculator(JetCaloCalculator *c)
@ UncalibratedJetConstituent
virtual JetCaloCalculator * clone() const =0
Clone. Base class should not be cloned.
virtual double jetCalculation() const
return the result of the calculation
virtual std::string name() const
std::vector< JetCaloCalculator * > m_calculators
void setName(const std::string &n)