CMS 3D CMS Logo

Public Member Functions | Private Attributes

GaussianPrimaryVertexGenerator Class Reference

#include <GaussianPrimaryVertexGenerator.h>

Inheritance diagram for GaussianPrimaryVertexGenerator:
PrimaryVertexGenerator

List of all members.

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

Detailed Description

Definition at line 15 of file GaussianPrimaryVertexGenerator.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 23 of file GaussianPrimaryVertexGenerator.h.

{;}

Member Function Documentation

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));

}

Member Data Documentation

Definition at line 31 of file GaussianPrimaryVertexGenerator.h.

Referenced by GaussianPrimaryVertexGenerator(), and generate().

Definition at line 32 of file GaussianPrimaryVertexGenerator.h.

Referenced by GaussianPrimaryVertexGenerator(), and generate().

Definition at line 33 of file GaussianPrimaryVertexGenerator.h.

Referenced by GaussianPrimaryVertexGenerator(), and generate().

Definition at line 34 of file GaussianPrimaryVertexGenerator.h.

Referenced by generate().

Definition at line 35 of file GaussianPrimaryVertexGenerator.h.

Referenced by generate().

Definition at line 36 of file GaussianPrimaryVertexGenerator.h.

Referenced by generate().