|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef MCPARTICLEEVENT_TRUTHETISOLATIONS_H
12 #define MCPARTICLEEVENT_TRUTHETISOLATIONS_H
24 #include <unordered_map>
28 #include "AthLinks/ElementLink.h"
86 const std::size_t genEvtIdx );
117 std::size_t
size()
const;
129 bool hasEtIsol(
const int genParticleBarcode )
const;
156 double etIsol(
const int genParticleBarcode,
185 const std::vector<double>& etIsols );
256 #endif //> MCPARTICLEEVENT_TRUTHETISOLATIONS_H
std::unordered_map< int, EtIsol_t > EtIsolMap_t
The map of barcode-to-Et isolations.
GenEventLink_t m_genEvtLink
ElementLink to the HepMC::GenEvent from which the Et isolations have been (or will be) computed
~TruthEtIsolations()
Default destructor:
McAod::EtIsolations EtIsol_t
An array of doubles of fixed size to modelize the Et isolations for different values of isolation rad...
std::size_t genEventIdx() const
Return the index in the McEventCollection container holding the HepMC::GenEvent from which the Et iso...
void setEtIsol(const HepMC::ConstGenParticlePtr &genParticle, const TruthParticleParameters::ConeSize coneIdx, const double etIsol)
Set the transverse energy isolation of a HepMC::GenParticle for a given Cone size.
EtIsolMap_t m_etIsolations
Holds transverse energy isolations for different isolation cones The key of this map is the barcode o...
ConeSize
Enum for Cone size indexes (for isolation)
const std::string & genEventName() const
Return the name (ie: the StoreGate key) of the McEventCollection holding the HepMC::GenEvent from whi...
bool hasEtIsol(const HepMC::ConstGenParticlePtr &genParticle) const
Return true if this TruthEtIsolations container holds Et isolations for that HepMC::GenParticle.
std::array< double, TruthParticleParameters::NbrOfCones > EtIsolations
An array of doubles of fixed size to modelize the Et isolations for different values of isolation rad...
double etIsol(const HepMC::ConstGenParticlePtr &genParticle, const TruthParticleParameters::ConeSize coneIdx) const
Return the transverse energy in a given cone size of isolation, for a given HepMC::GenParticle.
TruthEtIsolations & operator=(const TruthEtIsolations &rhs)
Assignment operator.
static const EtIsol_t m_dfltEtIsols
The default Et isolation energy which is being returned when I don't know what to return.
std::size_t size() const
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIso...
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
EtIsolMap_t::const_iterator const_iterator
The iterator over the map of barcode-to-Et-isolations.
TruthEtIsolations()
Default constructor.
const GenParticle * ConstGenParticlePtr
const_iterator begin() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
const EtIsol_t * etIsolations(const HepMC::ConstGenParticlePtr &genParticle) const
Return the transverse energies for all cone sizes of isolation, for a given HepMC::GenParticle's barc...
const_iterator end() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
ElementLink< McEventCollection > GenEventLink_t
A (persistent) link to a HepMC::GenEvent.
std::ostream & operator<<(std::ostream &out, const TruthEtIsolations &etIsols)