2 #ifndef RIVET_PVertex_HH 3 #define RIVET_PVertex_HH 5 #include "Rivet/Projection.hh" 6 #include "Rivet/Event.hh" 7 #include "Rivet/Particle.hh" 45 if (_thePVertex != 0)
return Vector3(_thePVertex->position());
65 GenVertex* _thePVertex;
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
const Vector3 position() const
Get the primary vertex position.
Definition: PVertex.hh:44
virtual const Projection * clone() const
Clone on the heap.
Definition: PVertex.hh:37
int compare(const Projection &UNUSED(p)) const
Compare projections.
Definition: PVertex.hh:57
Get the position of the primary vertex of an event.
Definition: PVertex.hh:23
PVertex()
The default constructor.
Definition: PVertex.hh:30
void project(const Event &e)
Do the projection.
Definition: PVertex.cc:10
Base class for all Rivet projections.
Definition: Projection.hh:28
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26