CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FlatPrimaryVertexGenerator Class Reference

#include <FlatPrimaryVertexGenerator.h>

Inheritance diagram for FlatPrimaryVertexGenerator:
PrimaryVertexGenerator

Public Member Functions

 FlatPrimaryVertexGenerator (const edm::ParameterSet &vtx, const RandomEngine *engine)
 Default constructor. More...
 
virtual void generate ()
 Generation process (to be implemented) More...
 
 ~FlatPrimaryVertexGenerator ()
 Destructor. More...
 
- Public Member Functions inherited from PrimaryVertexGenerator
const math::XYZPointbeamSpot () const
 Return x0, y0, z0. More...
 
TMatrixD * boost () const
 
 PrimaryVertexGenerator ()
 Default constructor. More...
 
 PrimaryVertexGenerator (const RandomEngine *engine)
 
virtual ~PrimaryVertexGenerator ()
 Destructor. More...
 

Private Attributes

double maxX
 
double maxY
 
double maxZ
 
double minX
 
double minY
 
double minZ
 

Additional Inherited Members

- Protected Member Functions inherited from PrimaryVertexGenerator
void setBoost (TMatrixD *)
 
- Protected Attributes inherited from PrimaryVertexGenerator
math::XYZPoint beamSpot_
 
TMatrixD * boost_
 
const RandomEnginerandom
 

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.

10  :
11  PrimaryVertexGenerator(engine),
12  minX(vtx.getParameter<double>("MinX")),
13  minY(vtx.getParameter<double>("MinY")),
14  minZ(vtx.getParameter<double>("MinZ")),
15  maxX(vtx.getParameter<double>("MaxX")),
16  maxY(vtx.getParameter<double>("MaxY")),
17  maxZ(vtx.getParameter<double>("MaxZ"))
18 {
19  beamSpot_ = math::XYZPoint((minX+maxX)/2.,(minY+maxY)/2.,(minZ+maxZ)/2.);
20 }
T getParameter(std::string const &) const
PrimaryVertexGenerator()
Default constructor.
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
FlatPrimaryVertexGenerator::~FlatPrimaryVertexGenerator ( )
inline

Destructor.

Definition at line 23 of file FlatPrimaryVertexGenerator.h.

23 {;}

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.

Member Data Documentation

double FlatPrimaryVertexGenerator::maxX
private

Definition at line 34 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::maxY
private

Definition at line 35 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::maxZ
private

Definition at line 36 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minX
private

Definition at line 31 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minY
private

Definition at line 32 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minZ
private

Definition at line 33 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().