00001
00002
00003 #include "Rivet/Rivet.hh"
00004 #include "Rivet/Projections/PVertex.hh"
00005 #include "HepMC/GenVertex.h"
00006 #include "HepMC/GenEvent.h"
00007
00008
00009 namespace Rivet {
00010
00011 void PVertex::project(const Event& e) {
00012 _thePVertex = e.genEvent().signal_process_vertex();
00013 const size_t pVertexParticleSize = _thePVertex->particles_in_size();
00014 if ( !_thePVertex || pVertexParticleSize != 2 )
00015 throw runtime_error("Wrong number of Primary Vertex particles: " + pVertexParticleSize);
00016 }
00017
00018 }