99 std::cout << std::endl <<
"History for track #" <<
index <<
" : " << std::endl;
108 for (std::size_t hindex=0; hindex<simParticles.size(); hindex++)
110 std::cout <<
" simParticles [" << hindex <<
"] : " 119 if ( !simVertexes.empty() )
121 for (std::size_t hindex=0; hindex<simVertexes.size(); hindex++)
123 std::cout <<
" simVertex [" << hindex <<
"] : " 125 simVertexes[hindex]->sourceTracks(),
126 simVertexes[hindex]->daughterTracks()
132 std::cout <<
" simVertex no found" << std::endl;
138 for (std::size_t hindex=0; hindex<
genParticles.size(); hindex++)
140 std::cout <<
" genParticles [" << hindex <<
"] : " 149 if ( !genVertexes.empty() )
151 for (std::size_t hindex=0; hindex<genVertexes.size(); hindex++)
153 std::cout <<
" genVertex [" << hindex <<
"] : " 155 genVertexes[hindex]->particles_in_const_begin(),
156 genVertexes[hindex]->particles_in_const_end(),
157 genVertexes[hindex]->particles_out_const_begin(),
158 genVertexes[hindex]->particles_out_const_end()
164 std::cout <<
" genVertex no found" << std::endl;
std::string vertexString(const TrackingParticleRefVector &, const TrackingParticleRefVector &) const
SimVertexTrail const & simVertexTrail() const
Return all the simulated vertices in the history.
std::string particleString(int) const
TrackHistory const & history() const
Returns a reference to the track history used in the classification.
std::vector< const HepMC::GenParticle * > GenParticleTrail
HepMC::GenParticle trail type.
TrackClassifier const & evaluate(reco::TrackBaseRef const &)
Classify the RecoTrack in categories.
This class traces the simulated and generated history of a given track.
std::vector< const HepMC::GenVertex * > GenVertexTrail
GenVertex trail type.
void newEvent(edm::Event const &, edm::EventSetup const &)
Pre-process event information (for accessing reconstraction information)
bool is(Category category) const
Returns track flag for a given category.
TrackClassifier classifier_
SimParticleTrail const & simParticleTrail() const
Return all the simulated particle in the history.
edm::InputTag trackProducer_
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.