81 edm::LogPrint(
"VertexHistoryAnalyzer") << std::endl <<
"History for vertex #" <<
index <<
" : ";
89 for (std::size_t hindex = 0; hindex < simParticles.size(); hindex++) {
98 if (!simVertexes.empty()) {
99 for (std::size_t hindex = 0; hindex < simVertexes.size(); hindex++) {
101 <<
" simVertex [" << hindex
102 <<
"] : " <<
vertexString(simVertexes[hindex]->sourceTracks(), simVertexes[hindex]->daughterTracks());
105 edm::LogPrint(
"VertexHistoryAnalyzer") <<
" simVertex no found";
111 for (std::size_t hindex = 0; hindex <
genParticles.size(); hindex++) {
120 if (!genVertexes.empty()) {
121 for (std::size_t hindex = 0; hindex < genVertexes.size(); hindex++) {
122 edm::LogPrint(
"VertexHistoryAnalyzer") <<
" genVertex [" << hindex <<
"] : " 123 <<
vertexString(genVertexes[hindex]->particles_in_const_begin(),
124 genVertexes[hindex]->particles_in_const_end(),
125 genVertexes[hindex]->particles_out_const_begin(),
126 genVertexes[hindex]->particles_out_const_end());
129 edm::LogPrint(
"VertexHistoryAnalyzer") <<
" genVertex no found";
This class traces the simulated and generated history of a given track.
GenVertexTrail const & genVertexTrail() const
Return all generated vertex in the history.
SimVertexTrail const & simVertexTrail() const
Return all the simulated vertices in the history.
SimParticleTrail const & simParticleTrail() const
Return all the simulated particle in the history.
std::vector< const HepMC::GenParticle * > GenParticleTrail
HepMC::GenParticle trail type.
VertexClassifier classifier_
std::string vertexString(const TrackingParticleRefVector &, const TrackingParticleRefVector &) const
VertexClassifier const & evaluate(reco::VertexBaseRef const &)
Classify the RecoVertex in categories.
bool is(Category category) const
Returns track flag for a given category.
std::vector< const HepMC::GenVertex * > GenVertexTrail
GenVertex trail type.
Log< level::Warning, true > LogPrint
VertexHistory const & history() const
Returns a reference to the vertex history used in the classification.
GenParticleTrail const & genParticleTrail() const
Return all generated particle (HepMC::GenParticle) in the history.
const edm::EDGetTokenT< edm::View< reco::Vertex > > vtxToken_
virtual void newEvent(edm::Event const &, edm::EventSetup const &)
Pre-process event information (for accessing reconstraction information)
std::string particleString(int) const
std::vector< TrackingVertexRef > SimVertexTrail
SimVertex trail type.
std::vector< TrackingParticleRef > SimParticleTrail
SimParticle trail type.