ATLAS Offline Software
|
#include <TruthEtIsolations.h>
Public Types | |
typedef ElementLink< McEventCollection > | GenEventLink_t |
A (persistent) link to a HepMC::GenEvent . More... | |
typedef McAod::EtIsolations | EtIsol_t |
An array of doubles of fixed size to modelize the Et isolations for different values of isolation radii' cones. More... | |
typedef std::unordered_map< int, EtIsol_t > | EtIsolMap_t |
The map of barcode-to-Et isolations. More... | |
typedef EtIsolMap_t::const_iterator | const_iterator |
The iterator over the map of barcode-to-Et-isolations. More... | |
Public Member Functions | |
TruthEtIsolations () | |
Default constructor. More... | |
TruthEtIsolations (const TruthEtIsolations &rhs) | |
Copy constructor. More... | |
TruthEtIsolations (const GenEventLink_t &genEvtLink) | |
Constructor with parameters: construct a TruthEtIsolations container from an ElementLink to a HepMC::GenEvent (hold by a McEventCollection ) Note that no Et isolations are computed at that time. More... | |
TruthEtIsolations (const std::string &genEvtName, const std::size_t genEvtIdx) | |
Constructor with parameters: construct a TruthEtIsolations container from a StoreGate key to a McEventCollection and an index std::size_t to a HepMC::GenEvent . More... | |
TruthEtIsolations & | operator= (const TruthEtIsolations &rhs) |
Assignment operator. More... | |
~TruthEtIsolations () | |
Default destructor: More... | |
const std::string & | genEventName () const |
Return the name (ie: the StoreGate key) of the McEventCollection holding the HepMC::GenEvent from which the Et isolations have been computed. More... | |
std::size_t | genEventIdx () const |
Return the index in the McEventCollection container holding the HepMC::GenEvent from which the Et isolations have been computed. More... | |
std::size_t | size () const |
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIsolations container. More... | |
bool | hasEtIsol (const HepMC::ConstGenParticlePtr &genParticle) const |
Return true if this TruthEtIsolations container holds Et isolations for that HepMC::GenParticle . More... | |
bool | hasEtIsol (const int genParticleBarcode) const |
Return true if this TruthEtIsolations container holds Et isolations for that HepMC::GenParticle . More... | |
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 barcode. More... | |
const EtIsol_t * | etIsolations (const int genParticleBarcode) const |
Return the transverse energies for all cone sizes of isolation, for a given HepMC::GenParticle's barcode. More... | |
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 . More... | |
double | etIsol (const int genParticleBarcode, const TruthParticleParameters::ConeSize coneIdx) const |
Return the transverse energy in a given cone size of isolation, for a given HepMC::GenParticle's barcode Note that the size of the code must be one of the encoded sizes (see TruthEtIsolationsParamDefs.h file) and that the index is checked for out of bounds. More... | |
const_iterator | begin () const |
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed. More... | |
const_iterator | end () const |
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed. More... | |
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. More... | |
void | setEtIsol (const HepMC::ConstGenParticlePtr &genParticle, const std::vector< double > &etIsols) |
Set the transverse energy isolations for all the Cone sizes. More... | |
void | setEtIsol (const HepMC::ConstGenParticlePtr &genParticle, const EtIsol_t &etIsols) |
Set the transverse energy isolations for all the Cone sizes. More... | |
Protected Attributes | |
GenEventLink_t | m_genEvtLink |
ElementLink to the HepMC::GenEvent from which the Et isolations have been (or will be) computed More... | |
EtIsolMap_t | m_etIsolations |
Holds transverse energy isolations for different isolation cones The key of this map is the barcode of the HepMC::GenParticle for which the Et isolations have been computed. More... | |
Static Protected Attributes | |
static const EtIsol_t | m_dfltEtIsols |
The default Et isolation energy which is being returned when I don't know what to return. More... | |
Friends | |
class | TruthEtIsolationsCnv_p1 |
container which holds isolation informations for a given HepMC::GenParticle
(labelled by barcode) for a given HepMC::GenEvent
of a given McEventCollection
Definition at line 39 of file TruthEtIsolations.h.
typedef EtIsolMap_t::const_iterator TruthEtIsolations::const_iterator |
The iterator over the map of barcode-to-Et-isolations.
Definition at line 58 of file TruthEtIsolations.h.
An array of doubles of fixed size to modelize the Et isolations for different values of isolation radii' cones.
Definition at line 52 of file TruthEtIsolations.h.
typedef std::unordered_map<int,EtIsol_t> TruthEtIsolations::EtIsolMap_t |
The map of barcode-to-Et isolations.
Definition at line 55 of file TruthEtIsolations.h.
A (persistent) link to a HepMC::GenEvent
.
Definition at line 48 of file TruthEtIsolations.h.
TruthEtIsolations::TruthEtIsolations | ( | ) |
Default constructor.
Definition at line 45 of file TruthEtIsolations.cxx.
TruthEtIsolations::TruthEtIsolations | ( | const TruthEtIsolations & | rhs | ) |
Copy constructor.
Definition at line 50 of file TruthEtIsolations.cxx.
TruthEtIsolations::TruthEtIsolations | ( | const GenEventLink_t & | genEvtLink | ) |
Constructor with parameters: construct a TruthEtIsolations
container from an ElementLink
to a HepMC::GenEvent
(hold by a McEventCollection
) Note that no Et isolations are computed at that time.
Definition at line 56 of file TruthEtIsolations.cxx.
TruthEtIsolations::TruthEtIsolations | ( | const std::string & | genEvtName, |
const std::size_t | genEvtIdx | ||
) |
Constructor with parameters: construct a TruthEtIsolations
container from a StoreGate
key to a McEventCollection
and an index std::size_t
to a HepMC::GenEvent
.
Note that no Et isolations are computed at that time.
Definition at line 61 of file TruthEtIsolations.cxx.
TruthEtIsolations::~TruthEtIsolations | ( | ) |
|
inline |
Const iterator over the barcodes of the HepMC::GenParticle
for which we have Et isolations computed.
Definition at line 249 of file TruthEtIsolations.h.
|
inline |
Const iterator over the barcodes of the HepMC::GenParticle
for which we have Et isolations computed.
Definition at line 252 of file TruthEtIsolations.h.
double TruthEtIsolations::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
.
Note that the size of the code must be one of the encoded sizes (see TruthEtIsolationsParamDefs.h file) and that the index is checked for out of bounds.
Definition at line 114 of file TruthEtIsolations.cxx.
|
inline |
Return the transverse energy in a given cone size of isolation, for a given HepMC::GenParticle's
barcode Note that the size of the code must be one of the encoded sizes (see TruthEtIsolationsParamDefs.h file) and that the index is checked for out of bounds.
Definition at line 243 of file TruthEtIsolations.h.
const TruthEtIsolations::EtIsol_t * TruthEtIsolations::etIsolations | ( | const HepMC::ConstGenParticlePtr & | genParticle | ) | const |
Return the transverse energies for all cone sizes of isolation, for a given HepMC::GenParticle's
barcode.
Definition at line 106 of file TruthEtIsolations.cxx.
|
inline |
Return the transverse energies for all cone sizes of isolation, for a given HepMC::GenParticle's
barcode.
Definition at line 233 of file TruthEtIsolations.h.
std::size_t TruthEtIsolations::genEventIdx | ( | ) | const |
Return the index in the McEventCollection
container holding the HepMC::GenEvent
from which the Et isolations have been computed.
Definition at line 92 of file TruthEtIsolations.cxx.
const std::string & TruthEtIsolations::genEventName | ( | ) | const |
Return the name (ie: the StoreGate
key) of the McEventCollection
holding the HepMC::GenEvent
from which the Et isolations have been computed.
Definition at line 87 of file TruthEtIsolations.cxx.
bool TruthEtIsolations::hasEtIsol | ( | const HepMC::ConstGenParticlePtr & | genParticle | ) | const |
Return true if this TruthEtIsolations
container holds Et isolations for that HepMC::GenParticle
.
Definition at line 98 of file TruthEtIsolations.cxx.
|
inline |
Return true if this TruthEtIsolations
container holds Et isolations for that HepMC::GenParticle
.
Definition at line 227 of file TruthEtIsolations.h.
TruthEtIsolations & TruthEtIsolations::operator= | ( | const TruthEtIsolations & | rhs | ) |
void TruthEtIsolations::setEtIsol | ( | const HepMC::ConstGenParticlePtr & | genParticle, |
const EtIsol_t & | etIsols | ||
) |
Set the transverse energy isolations for all the Cone sizes.
Definition at line 147 of file TruthEtIsolations.cxx.
void TruthEtIsolations::setEtIsol | ( | const HepMC::ConstGenParticlePtr & | genParticle, |
const std::vector< double > & | etIsols | ||
) |
Set the transverse energy isolations for all the Cone sizes.
Definition at line 135 of file TruthEtIsolations.cxx.
void TruthEtIsolations::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.
Definition at line 127 of file TruthEtIsolations.cxx.
|
inline |
Return the number of HepMC::GenParticle
for which Et isolations have been stored into this TruthEtIsolations
container.
Definition at line 223 of file TruthEtIsolations.h.
|
friend |
Definition at line 196 of file TruthEtIsolations.h.
The default Et isolation energy which is being returned when I don't know what to return.
That's ugly but for backward compatibility's sake... Next EDM :P
Definition at line 210 of file TruthEtIsolations.h.
|
protected |
Holds transverse energy isolations for different isolation cones The key of this map is the barcode of the HepMC::GenParticle
for which the Et isolations have been computed.
Definition at line 205 of file TruthEtIsolations.h.
|
protected |
ElementLink
to the HepMC::GenEvent
from which the Et isolations have been (or will be) computed
Definition at line 200 of file TruthEtIsolations.h.