CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GaussianPrimaryVertexGenerator.cc
Go to the documentation of this file.
1 //Framework Headers
3 
4 //Famos Headers
7 
10  const edm::ParameterSet& vtx) :
11  meanX(vtx.getParameter<double>("MeanX")),
12  meanY(vtx.getParameter<double>("MeanY")),
13  meanZ(vtx.getParameter<double>("MeanZ")),
14  sigmaX(vtx.getParameter<double>("SigmaX")),
15  sigmaY(vtx.getParameter<double>("SigmaY")),
16  sigmaZ(vtx.getParameter<double>("SigmaZ"))
17 {
19 }
20 
21 void
23 
24  this->SetX(random->gaussShoot(meanX,sigmaX));
25  this->SetY(random->gaussShoot(meanY,sigmaY));
26  this->SetZ(random->gaussShoot(meanZ,sigmaZ));
27 
28 }
virtual void generate(RandomEngineAndDistribution const *)
Generation process (to be implemented)
TRandom random
Definition: MVATrainer.cc:138
GaussianPrimaryVertexGenerator(const edm::ParameterSet &vtx)
Default constructor.
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double gaussShoot(double mean=0.0, double sigma=1.0) const