57 typedef std::vector<SimVertex>::const_iterator
g4v_iterator;
59 typedef std::vector<SimTrack>::const_iterator
g4t_iterator;
65 s <<
" HepMC vertex position " << (*(*genV)).
position().x() <<
"," << (*(*genV)).
position().y()
66 << (*(*genV)).
position().z() << endl;
70 s <<
" Geant vertex position " << (*g4V).position() << endl;
76 s <<
" Daughter starts: " << (*(*iTP)).
vertex();
77 for (g4t_iterator g4T = (*(*iTP)).g4Track_begin(); g4T != (*(*iTP)).g4Track_end(); ++g4T) {
78 s <<
" p " << g4T->momentum();
85 s <<
" Source starts: " << (*(*iTP)).
vertex();
86 for (g4t_iterator g4T = (*iTP)->g4Track_begin(); g4T != (*iTP)->g4Track_end(); ++g4T) {
87 s <<
", p " << g4T->momentum();
edm::Ref< edm::HepMCProduct, HepMC::GenVertex > GenVertexRef
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)
GenVertexRefVector genVertices_
int bunchCrossing() const
get the detector field from this detid
tp_iterator daughterTracks_end() const
tp_iterator sourceTracks_begin() const
void clear()
Clear the vector.
tp_iterator sourceTracks_end() const
std::vector< SimVertex > g4Vertices_
void addGenVertex(const GenVertexRef &)
edm::RefVector< edm::HepMCProduct, HepMC::GenVertex > GenVertexRefVector
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