BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
HepMcParticleLink.cxx
Go to the documentation of this file.
1#include "GeneratorObject/HepMcParticleLink.h"
2// #include "GeneratorObject/McEventCollection.h"
3// #include "StoreGate/StoreGate.h"
4#include "HepMC/GenEvent.h"
5#include "HepMC/GenParticle.h"
6#include <cassert>
7
9 : m_particle( const_cast<HepMC::GenParticle*>( part ) )
10 , m_extBarcode( ( 0 != part ) ? part->barcode() : 0, eventIndex ) {
11 assert( part );
12}
13
14const HepMC::GenParticle* HepMcParticleLink::cptr() const {
15 if ( !m_particle )
16 {
17 /*const McEventCollection* pEvtColl;
18 if ((StoreGate::instance().retrieve(pEvtColl)).isSuccess()) { //FIXME SLOW
19 m_particle = pEvtColl->at(eventIndex())->barcode_to_particle(barcode());
20 }*/
21 }
22 return m_particle;
23}