CMS 3D CMS Logo

Public Member Functions | Private Attributes

FlatPrimaryVertexGenerator Class Reference

#include <FlatPrimaryVertexGenerator.h>

Inheritance diagram for FlatPrimaryVertexGenerator:
PrimaryVertexGenerator

List of all members.

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

Detailed Description

Definition at line 15 of file FlatPrimaryVertexGenerator.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 23 of file FlatPrimaryVertexGenerator.h.

{;}

Member Function Documentation

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.

                                     {

  this->SetX(random->flatShoot(minX,maxX));
  this->SetY(random->flatShoot(minY,maxY));
  this->SetZ(random->flatShoot(minZ,maxZ));

}

Member Data Documentation

Definition at line 34 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

Definition at line 35 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

Definition at line 36 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

Definition at line 31 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

Definition at line 32 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

Definition at line 33 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().