|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/MsgStream.h"
36 MsgStream&
msg )
const
39 <<
"Loading TruthEtIsolations from persistent state..."
42 if (0==pers || 0==trans) {
44 <<
"null pointer(s) received ! trans=[" << trans <<
"] pers=["
57 const std::string
error(
"NULL pointer to McEventCollection !!");
60 throw std::runtime_error(
error);
63 for ( EtIsolMap_p::const_iterator
74 <<
"Loaded TruthEtIsolations from persistent state [OK]"
82 MsgStream&
msg )
const
85 <<
"Creating persistent state of TruthEtIsolations..."
95 <<
"Transient ElementLink to McEventCollection is NOT valid !!"
100 for ( EtIsolMap_t::const_iterator
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_p1::EtIsolations_t EtIsolations_p
BaseConstPointer getStorableObjectPointer() const
Return a pointer to the currently-referenced container object.
EtIsolMap_t m_etIsolations
Holds transverse energy isolations for different isolation cones The key of this map is the barcode o...
TruthEtIsolations_p1::EtIsolMap_t EtIsolMap_p
std::pair< int, EtIsolations_t > EtIsolBc_t
bool isValid() const
Test to see if the link can be dereferenced.
std::array< double, TruthParticleParameters::NbrOfCones > EtIsolations
An array of doubles of fixed size to modelize the Et isolations for different values of isolation rad...
ElementLinkCnv_p1< ElementLink< McEventCollection > > m_genEvtCnv
Converter for the ElementLink<McEventCollection> data member.
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
std::size_t size() const
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIso...
virtual void persToTrans(const TruthEtIsolations_p1 *persObj, TruthEtIsolations *transObj, MsgStream &msg) const override
Method creating the transient representation of TruthEtIsolations from its persistent representation ...
std::vector< EtIsolBc_t > EtIsolMap_t
ElementLinkInt_p1 m_genEvent
The persistent pointer toward the McEventCollection the (transient) TruthEtIsolations has been comput...
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
std::array< float, TruthParticleParameters::NbrOfCones > EtIsolations_t
TruthEtIsolations_p1::EtIsolBc_t EtIsolBc_p
TruthEtIsolations::EtIsolMap_t EtIsolMap_t
virtual void transToPers(const TruthEtIsolations *transObj, TruthEtIsolations_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation TruthEtIsolations_p1 from its transient representation ...
EtIsolMap_t m_etIsolations
The persistent representation of Et-isolations: a vector pairs (barcode, array-of-Et-isols)