#include <GaussianPrimaryVertexGenerator.h>
Public Member Functions | |
GaussianPrimaryVertexGenerator (const edm::ParameterSet &vtx, const RandomEngine *engine) | |
Default constructor. | |
virtual void | generate () |
Generation process (to be implemented) | |
~GaussianPrimaryVertexGenerator () | |
Destructor. | |
Private Attributes | |
double | meanX |
double | meanY |
double | meanZ |
double | sigmaX |
double | sigmaY |
double | sigmaZ |
Definition at line 15 of file GaussianPrimaryVertexGenerator.h.
GaussianPrimaryVertexGenerator::GaussianPrimaryVertexGenerator | ( | const edm::ParameterSet & | vtx, |
const RandomEngine * | engine | ||
) |
Default constructor.
Definition at line 9 of file GaussianPrimaryVertexGenerator.cc.
References PrimaryVertexGenerator::beamSpot_, meanX, meanY, and meanZ.
: PrimaryVertexGenerator(engine), meanX(vtx.getParameter<double>("MeanX")), meanY(vtx.getParameter<double>("MeanY")), meanZ(vtx.getParameter<double>("MeanZ")), sigmaX(vtx.getParameter<double>("SigmaX")), sigmaY(vtx.getParameter<double>("SigmaY")), sigmaZ(vtx.getParameter<double>("SigmaZ")) { beamSpot_ = math::XYZPoint(meanX,meanY,meanZ); }
GaussianPrimaryVertexGenerator::~GaussianPrimaryVertexGenerator | ( | ) | [inline] |
void GaussianPrimaryVertexGenerator::generate | ( | ) | [virtual] |
Generation process (to be implemented)
Implements PrimaryVertexGenerator.
Definition at line 23 of file GaussianPrimaryVertexGenerator.cc.
References RandomEngine::gaussShoot(), meanX, meanY, meanZ, PrimaryVertexGenerator::random, sigmaX, sigmaY, and sigmaZ.
{ this->SetX(random->gaussShoot(meanX,sigmaX)); this->SetY(random->gaussShoot(meanY,sigmaY)); this->SetZ(random->gaussShoot(meanZ,sigmaZ)); }
double GaussianPrimaryVertexGenerator::meanX [private] |
Definition at line 31 of file GaussianPrimaryVertexGenerator.h.
Referenced by GaussianPrimaryVertexGenerator(), and generate().
double GaussianPrimaryVertexGenerator::meanY [private] |
Definition at line 32 of file GaussianPrimaryVertexGenerator.h.
Referenced by GaussianPrimaryVertexGenerator(), and generate().
double GaussianPrimaryVertexGenerator::meanZ [private] |
Definition at line 33 of file GaussianPrimaryVertexGenerator.h.
Referenced by GaussianPrimaryVertexGenerator(), and generate().
double GaussianPrimaryVertexGenerator::sigmaX [private] |
Definition at line 34 of file GaussianPrimaryVertexGenerator.h.
Referenced by generate().
double GaussianPrimaryVertexGenerator::sigmaY [private] |
Definition at line 35 of file GaussianPrimaryVertexGenerator.h.
Referenced by generate().
double GaussianPrimaryVertexGenerator::sigmaZ [private] |
Definition at line 36 of file GaussianPrimaryVertexGenerator.h.
Referenced by generate().