#include <FlatPrimaryVertexGenerator.h>
Public Member Functions | |
FlatPrimaryVertexGenerator (const edm::ParameterSet &vtx, const RandomEngine *engine) | |
Default constructor. | |
virtual void | generate () |
Generation process (to be implemented) | |
~FlatPrimaryVertexGenerator () | |
Destructor. | |
Private Attributes | |
double | maxX |
double | maxY |
double | maxZ |
double | minX |
double | minY |
double | minZ |
Definition at line 15 of file FlatPrimaryVertexGenerator.h.
FlatPrimaryVertexGenerator::FlatPrimaryVertexGenerator | ( | const edm::ParameterSet & | vtx, |
const RandomEngine * | engine | ||
) |
Default constructor.
Definition at line 9 of file FlatPrimaryVertexGenerator.cc.
References PrimaryVertexGenerator::beamSpot_, maxX, maxY, maxZ, minX, minY, and minZ.
: PrimaryVertexGenerator(engine), minX(vtx.getParameter<double>("MinX")), minY(vtx.getParameter<double>("MinY")), minZ(vtx.getParameter<double>("MinZ")), maxX(vtx.getParameter<double>("MaxX")), maxY(vtx.getParameter<double>("MaxY")), maxZ(vtx.getParameter<double>("MaxZ")) { beamSpot_ = math::XYZPoint((minX+maxX)/2.,(minY+maxY)/2.,(minZ+maxZ)/2.); }
FlatPrimaryVertexGenerator::~FlatPrimaryVertexGenerator | ( | ) | [inline] |
void FlatPrimaryVertexGenerator::generate | ( | ) | [virtual] |
Generation process (to be implemented)
Implements PrimaryVertexGenerator.
Definition at line 23 of file FlatPrimaryVertexGenerator.cc.
References RandomEngine::flatShoot(), maxX, maxY, maxZ, minX, minY, minZ, and PrimaryVertexGenerator::random.
double FlatPrimaryVertexGenerator::maxX [private] |
Definition at line 34 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().
double FlatPrimaryVertexGenerator::maxY [private] |
Definition at line 35 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().
double FlatPrimaryVertexGenerator::maxZ [private] |
Definition at line 36 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().
double FlatPrimaryVertexGenerator::minX [private] |
Definition at line 31 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().
double FlatPrimaryVertexGenerator::minY [private] |
Definition at line 32 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().
double FlatPrimaryVertexGenerator::minZ [private] |
Definition at line 33 of file FlatPrimaryVertexGenerator.h.
Referenced by FlatPrimaryVertexGenerator(), and generate().