|
|
Go to the documentation of this file.
15 : position_(
p), inVolume_(inVolume), eId_(eId) {
57 typedef std::vector<SimVertex>::const_iterator
g4v_iterator;
59 typedef std::vector<SimTrack>::const_iterator
g4t_iterator;
61 s <<
"Vertex Position & Event #" <<
v.position() <<
" " <<
v.eventId().bunchCrossing() <<
"." <<
v.eventId().event()
63 s <<
" Associated with " <<
v.daughterTracks().size() <<
" tracks" << endl;
64 for (
genv_iterator genV =
v.genVertices_begin(); genV !=
v.genVertices_end(); ++genV) {
65 s <<
" HepMC vertex position " << (*(*genV)).
position().x() <<
"," << (*(*genV)).
position().y()
66 << (*(*genV)).
position().z() << endl;
69 for (
g4v_iterator g4V =
v.g4Vertices_begin(); g4V !=
v.g4Vertices_end(); ++g4V) {
70 s <<
" Geant vertex position " << (*g4V).position() << endl;
75 for (
tp_iterator iTP =
v.daughterTracks_begin(); iTP !=
v.daughterTracks_end(); ++iTP) {
76 s <<
" Daughter starts: " << (*(*iTP)).
vertex();
77 for (
g4t_iterator g4T = (*(*iTP)).g4Track_begin(); g4T != (*(*iTP)).g4Track_end(); ++g4T) {
78 s <<
" p " << g4T->momentum();
84 for (
tp_iterator iTP =
v.sourceTracks_begin(); iTP !=
v.sourceTracks_end(); ++iTP) {
85 s <<
" Source starts: " << (*(*iTP)).
vertex();
86 for (
g4t_iterator g4T = (*iTP)->g4Track_begin(); g4T != (*iTP)->g4Track_end(); ++g4T) {
87 s <<
", p " << g4T->momentum();
void clearDaughterTracks()
void clear()
Clear the vector.
g4v_iterator g4Vertices_end() const
TrackingParticle::g4t_iterator g4t_iterator
tp_iterator daughterTracks_begin() const
std::vector< SimVertex >::const_iterator g4v_iterator
const_iterator begin() const
Initialize an iterator over the RefVector.
TrackingVertex::g4v_iterator g4v_iterator
tp_iterator daughterTracks_end() const
void addGenVertex(const GenVertexRef &)
TrackingVertex::genv_iterator genv_iterator
edm::RefVector< edm::HepMCProduct, HepMC::GenVertex > GenVertexRefVector
const std::vector< SimVertex > & g4Vertices() const
const_iterator end() const
Termination of iteration.
TrackingParticleRefVector daughterTracks_
const TrackingParticleRefVector & daughterTracks() const
void addG4Vertex(const SimVertex &)
const TrackingParticleRefVector & sourceTracks() const
TrackingParticleRefVector sourceTracks_
tp_iterator sourceTracks_end() const
std::ostream & operator<<(std::ostream &s, const TrackingVertex &v)
GenVertexRefVector genVertices_
g4v_iterator g4Vertices_begin() const
static int position[264][3]
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
genv_iterator genVertices_begin() const
const GenVertexRefVector & genVertices() const
void addDaughterTrack(const TrackingParticleRef &)
TrackingParticleRefVector::iterator tp_iterator
genv_iterator genVertices_end() const
edm::Ref< edm::HepMCProduct, HepMC::GenVertex > GenVertexRef
std::vector< SimVertex > g4Vertices_
tp_iterator sourceTracks_begin() const
math::XYZTLorentzVectorD LorentzVector
void addParentTrack(const TrackingParticleRef &)