CMS 3D CMS Logo

GaussianPrimaryVertexGenerator Class Reference

#include <FastSimulation/Event/interface/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.

00010                                                           : 
00011   PrimaryVertexGenerator(engine),
00012   meanX(vtx.getParameter<double>("MeanX")),
00013   meanY(vtx.getParameter<double>("MeanY")),
00014   meanZ(vtx.getParameter<double>("MeanZ")),
00015   sigmaX(vtx.getParameter<double>("SigmaX")),
00016   sigmaY(vtx.getParameter<double>("SigmaY")),
00017   sigmaZ(vtx.getParameter<double>("SigmaZ"))
00018 {
00019   beamSpot_ = math::XYZPoint(meanX,meanY,meanZ);
00020 }

GaussianPrimaryVertexGenerator::~GaussianPrimaryVertexGenerator (  )  [inline]

Destructor.

Definition at line 23 of file GaussianPrimaryVertexGenerator.h.

00023 {;}


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.

00023                                          {
00024 
00025   this->SetX(random->gaussShoot(meanX,sigmaX));
00026   this->SetY(random->gaussShoot(meanY,sigmaY));
00027   this->SetZ(random->gaussShoot(meanZ,sigmaZ));
00028 
00029 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:09 2009 for CMSSW by  doxygen 1.5.4