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
69 std::copy( i->second.begin(), i->second.end(),
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
107 std::copy( i->second.begin(),
TruthEtIsolations::EtIsolMap_t EtIsolMap_t
TruthEtIsolations_p1::EtIsolBc_t EtIsolBc_p
TruthEtIsolations_p1::EtIsolations_t EtIsolations_p
TruthEtIsolations_p1::EtIsolMap_t EtIsolMap_p
BaseConstPointer getStorableObjectPointer() const
Return a pointer to the currently-referenced container object.
bool isValid() const
Test to see if the link can be dereferenced.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
virtual void transToPers(const TruthEtIsolations *transObj, TruthEtIsolations_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation TruthEtIsolations_p1 from its transient representation ...
virtual void persToTrans(const TruthEtIsolations_p1 *persObj, TruthEtIsolations *transObj, MsgStream &msg) const override
Method creating the transient representation of TruthEtIsolations from its persistent representation ...
ElementLinkCnv_p1< ElementLink< McEventCollection > > m_genEvtCnv
Converter for the ElementLink<McEventCollection> data member.
EtIsolMap_t m_etIsolations
The persistent representation of Et-isolations: a vector pairs (barcode, array-of-Et-isols)
std::pair< int, EtIsolations_t > EtIsolBc_t
ElementLinkInt_p1 m_genEvent
The persistent pointer toward the McEventCollection the (transient) TruthEtIsolations has been comput...
std::array< float, TruthParticleParameters::NbrOfCones > EtIsolations_t
std::vector< EtIsolBc_t > EtIsolMap_t
container which holds isolation informations for a given HepMC::GenParticle (labelled by barcode) for...
std::unordered_map< int, EtIsol_t > EtIsolMap_t
The map of barcode-to-Et isolations.
std::size_t size() const
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIso...
GenEventLink_t m_genEvtLink
ElementLink to the HepMC::GenEvent from which the Et isolations have been (or will be) computed
EtIsolMap_t m_etIsolations
Holds transverse energy isolations for different isolation cones The key of this map is the barcode o...
std::array< double, TruthParticleParameters::NbrOfCones > EtIsolations
An array of doubles of fixed size to modelize the Et isolations for different values of isolation rad...