85 std::cout << std::endl <<
"History for track #" <<
index <<
" : " << std::endl;
93 for (std::size_t hindex = 0; hindex < simParticles.size(); hindex++) {
102 if (!simVertexes.empty()) {
103 for (std::size_t hindex = 0; hindex < simVertexes.size(); hindex++) {
104 std::cout <<
" simVertex [" << hindex <<
"] : " 105 <<
vertexString(simVertexes[hindex]->sourceTracks(), simVertexes[hindex]->daughterTracks())
109 std::cout <<
" simVertex no found" << std::endl;
115 for (std::size_t hindex = 0; hindex <
genParticles.size(); hindex++) {
124 if (!genVertexes.empty()) {
125 for (std::size_t hindex = 0; hindex < genVertexes.size(); hindex++) {
126 std::cout <<
" genVertex [" << hindex <<
"] : " 127 <<
vertexString(genVertexes[hindex]->particles_in_const_begin(),
128 genVertexes[hindex]->particles_in_const_end(),
129 genVertexes[hindex]->particles_out_const_begin(),
130 genVertexes[hindex]->particles_out_const_end())
134 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.