116 typedef std::vector<SimVertex>::const_iterator
g4v_iterator;
118 typedef std::vector<SimTrack>::const_iterator
g4t_iterator;
124 s <<
" HepMC vertex position " << (*(*genV)).
position().x() <<
","<< (*(*genV)).
position().y() << (*(*genV)).
position().z() << endl;
129 s <<
" Geant vertex position " << (*g4V).position() << endl;
136 s <<
" Daughter starts: " << (*(*iTP)).vertex();
137 for (g4t_iterator g4T = (*(*iTP)).g4Track_begin(); g4T != (*(*iTP)).g4Track_end(); ++g4T)
139 s <<
" p " << g4T->momentum();
147 s <<
" Source starts: " << (*(*iTP)).vertex();
148 for (g4t_iterator g4T = (*iTP)->g4Track_begin(); g4T != (*iTP)->g4Track_end(); ++g4T)
150 s <<
", p " << g4T ->momentum();
tp_iterator daughterTracks_begin() const
const TrackingParticleRefVector & sourceTracks() const
int event() const
get the contents of the subdetector field (should be protected?)
GenVertexRefVector::iterator genv_iterator
std::vector< SimVertex >::const_iterator g4v_iterator
const std::vector< SimVertex > & g4Vertices() const
g4v_iterator g4Vertices_end() const
const GenVertexRefVector & genVertices() const
void addDaughterTrack(const TrackingParticleRef &)
void clearDaughterTracks()
const_iterator end() const
Termination of iteration.
void addParentTrack(const TrackingParticleRef &)
const bool inVolume() const
const_iterator begin() const
Initialize an iterator over the RefVector.
g4v_iterator g4Vertices_begin() const
void addG4Vertex(const SimVertex &)
math::XYZTLorentzVectorD LorentzVector
genv_iterator genVertices_end() const
TrackingParticleRefVector daughterTracks_
friend std::ostream & operator<<(std::ostream &s, const TrackingVertex &tv)
edm::RefVector< edm::HepMCProduct, HepMC::GenVertex > GenVertexRefVector
GenVertexRefVector genVertices_
int bunchCrossing() const
get the detector field from this detid
tp_iterator daughterTracks_end() const
tp_iterator sourceTracks_begin() const
edm::Ref< edm::HepMCProduct, HepMC::GenVertex > GenVertexRef
void clear()
Clear the vector.
tp_iterator sourceTracks_end() const
std::vector< SimVertex > g4Vertices_
void addGenVertex(const GenVertexRef &)
const EncodedEventId & eventId() const
const TrackingParticleRefVector & daughterTracks() const
TrackingParticleRefVector::iterator tp_iterator
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
TrackingParticleRefVector sourceTracks_
genv_iterator genVertices_begin() const
const LorentzVector & position() const
TrackingParticle::g4t_iterator g4t_iterator