#include <HepMcParticleLink.h>
Public Types | ||||
typedef unsigned int | index_type | |||
typedef unsigned int | index_type | |||
Public Member Functions | ||||
const HepMC::GenParticle * | cptr () const | |||
const HepMC::GenParticle * | cptr () const | |||
bool | isValid () const | |||
bool | isValid () const | |||
indexing accessors (e.g. for writing) | ||||
int | barcode () const | |||
index_type | eventIndex () const | |||
indexing accessors (e.g. for writing) | ||||
int | barcode () const | |||
index_type | eventIndex () const | |||
structors | ||||
HepMcParticleLink (const HepMC::GenParticle *part, const HepMC::GenEvent *pevt) | ||||
HepMcParticleLink (const HepMcParticleLink &rhs) | ||||
HepMcParticleLink (const HepMC::GenParticle *p, index_type eventIndex=0) | ||||
HepMcParticleLink (index_type barCode, index_type eventIndex=0) | ||||
HepMcParticleLink () | ||||
structors | ||||
HepMcParticleLink (const HepMC::GenParticle *part, const HepMC::GenEvent *pevt) | ||||
HepMcParticleLink (const HepMcParticleLink &rhs) | ||||
HepMcParticleLink (const HepMC::GenParticle *p, index_type eventIndex=0) | ||||
HepMcParticleLink (index_type barCode, index_type eventIndex=0) | ||||
HepMcParticleLink () | ||||
pointer interface | ||||
const HepMC::GenParticle & | operator * () const | |||
| ||||
operator const HepMC::GenParticle * () const | ||||
bool | operator! () const | |||
const HepMC::GenParticle * | operator-> () const | |||
pointer interface | ||||
const HepMC::GenParticle & | operator * () const | |||
| ||||
operator const HepMC::GenParticle * () const | ||||
bool | operator! () const | |||
const HepMC::GenParticle * | operator-> () const | |||
Private Attributes | ||||
ExtendedBarCode | m_extBarcode | |||
HepMC::GenParticle * | m_particle | |||
HepMC::GenParticle * | m_particle |
|
|
|
|
|
00023 : m_particle(0), m_extBarcode() {}
|
|
00024 : 00025 m_particle(0), m_extBarcode(barCode, eventIndex) {} HepMcParticleLink(const HepMC::GenParticle* p, index_type eventIndex = 0);
|
|
00009 : 00010 m_particle(const_cast<HepMC::GenParticle*>(part)), 00011 m_extBarcode((0 != part) ? part->barcode() : 0, eventIndex) { 00012 assert(part); 00013 }
|
|
00027 : 00028 m_particle(rhs.m_particle), 00029 m_extBarcode(rhs.m_extBarcode) {}
|
|
|
|
00023 : m_particle(0), m_extBarcode() {}
|
|
00024 : 00025 m_particle(0), m_extBarcode(barCode, eventIndex) {} HepMcParticleLink(const HepMC::GenParticle* p, index_type eventIndex = 0);
|
|
|
|
00027 : 00028 m_particle(rhs.m_particle), 00029 m_extBarcode(rhs.m_extBarcode) {}
|
|
|
|
00045 { return m_extBarcode.barcode(); }
|
|
00045 { return m_extBarcode.barcode(); }
|
|
|
|
00015 { 00016 if (!m_particle) { 00017 const McEventCollection* pEvtColl; 00018 if ((StoreGate::instance().retrieve(pEvtColl)).isSuccess()) { //FIXME SLOW 00019 m_particle = pEvtColl->at(eventIndex())->barcode_to_particle(barcode()); 00020 } 00021 } 00022 return m_particle; 00023 }
|
|
00046 { return m_extBarcode.eventIndex(); }
|
|
00046 { return m_extBarcode.eventIndex(); }
|
|
00049 { return (0 != cptr()); }
|
|
00049 { return (0 != cptr()); }
|
|
00037 { return *cptr(); }//FIXME
|
|
00037 { return *cptr(); }//FIXME
|
|
00039 { return cptr(); }
|
|
00039 { return cptr(); }
|
|
00040 {return !isValid();}
|
|
00040 {return !isValid();}
|
|
00038 { return cptr(); }
|
|
00038 { return cptr(); }
|
|
|
|
|
|
|