92 std::cout << std::endl <<
"History for vertex #" <<
index <<
" : " << std::endl;
101 for (std::size_t hindex=0; hindex<simParticles.size(); hindex++)
103 std::cout <<
" simParticles [" << hindex <<
"] : " 112 if ( !simVertexes.empty() )
114 for (std::size_t hindex=0; hindex<simVertexes.size(); hindex++)
116 std::cout <<
" simVertex [" << hindex <<
"] : " 118 simVertexes[hindex]->sourceTracks(),
119 simVertexes[hindex]->daughterTracks()
125 std::cout <<
" simVertex no found" << std::endl;
131 for (std::size_t hindex=0; hindex<
genParticles.size(); hindex++)
133 std::cout <<
" genParticles [" << hindex <<
"] : " 142 if ( !genVertexes.empty() )
144 for (std::size_t hindex=0; hindex<genVertexes.size(); hindex++)
146 std::cout <<
" genVertex [" << hindex <<
"] : " 148 genVertexes[hindex]->particles_in_const_begin(),
149 genVertexes[hindex]->particles_in_const_end(),
150 genVertexes[hindex]->particles_out_const_begin(),
151 genVertexes[hindex]->particles_out_const_end()
157 std::cout <<
" genVertex no found" << std::endl;
160 std::cout <<
" fake vertex" << std::endl;
This class traces the simulated and generated history of a given track.
edm::InputTag vertexProducer_
VertexHistory const & history() const
Returns a reference to the vertex history used in the classification.
std::string vertexString(const TrackingParticleRefVector &, const TrackingParticleRefVector &) const
SimVertexTrail const & simVertexTrail() const
Return all the simulated vertices in the history.
std::vector< const HepMC::GenParticle * > GenParticleTrail
HepMC::GenParticle trail type.
VertexClassifier classifier_
std::string particleString(int) const
bool is(Category category) const
Returns track flag for a given category.
std::vector< const HepMC::GenVertex * > GenVertexTrail
GenVertex trail type.
SimParticleTrail const & simParticleTrail() const
Return all the simulated particle in the history.
VertexClassifier const & evaluate(reco::VertexBaseRef const &)
Classify the RecoVertex in categories.
virtual void newEvent(edm::Event const &, edm::EventSetup const &)
Pre-process event information (for accessing reconstraction information)
GenVertexTrail const & genVertexTrail() const
Return all generated vertex in the history.
std::vector< TrackingVertexRef > SimVertexTrail
SimVertex trail type.
GenParticleTrail const & genParticleTrail() const
Return all generated particle (HepMC::GenParticle) in the history.
std::vector< TrackingParticleRef > SimParticleTrail
SimParticle trail type.