|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "CLHEP/Units/SystemOfUnits.h"
51 m_genEvtLink ( rhs.m_genEvtLink ),
52 m_etIsolations ( rhs.m_etIsolations )
57 m_genEvtLink ( genEvtLink ),
62 const std::size_t genEvtIdx ) :
63 m_genEvtLink ( genEvtName, genEvtIdx ),
129 const double etIsol )
136 const std::vector<double>& etIsols )
159 const std::size_t nEtIsols = etIsols.
size();
160 out <<
"nbr of EtIsols: " << nEtIsols;
161 std::ostringstream buf;
162 buf << std::right << std::scientific << std::setprecision(8);
165 buf <<
"\nbc: " <<
i->first <<
" [ ";
166 std::copy(
i->second.begin(),
i->second.end(), std::ostream_iterator<double>( buf,
" " ) );
167 out << buf.str() <<
"]";
Extra patterns decribing particle interation process.
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.
const ID_type & dataID() const
Get the key that we reference, as a string.
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...
TruthEtIsolations::GenEventLink_t GenEventLink_t
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...
index_type index() const
Get the index of the element inside of its container.
const_iterator end() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
std::ostream & operator<<(std::ostream &out, const TruthEtIsolations &etIsols)
TruthEtIsolations::EtIsol_t EtIsol_t