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)
 Default constructor. More...
 
virtual void generate (RandomEngineAndDistribution const *)
 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 TMatrixD * boost () const
 
 PrimaryVertexGenerator ()
 Default constructor. More...
 
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_
 

Detailed Description

Definition at line 15 of file FlatPrimaryVertexGenerator.h.

Constructor & Destructor Documentation

FlatPrimaryVertexGenerator::FlatPrimaryVertexGenerator ( const edm::ParameterSet vtx)

Default constructor.

Definition at line 9 of file FlatPrimaryVertexGenerator.cc.

References PrimaryVertexGenerator::beamSpot_, maxX, maxY, maxZ, minX, minY, and minZ.

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

Destructor.

Definition at line 22 of file FlatPrimaryVertexGenerator.h.

22 {;}

Member Function Documentation

void FlatPrimaryVertexGenerator::generate ( RandomEngineAndDistribution const *  random)
virtual

Generation process (to be implemented)

Implements PrimaryVertexGenerator.

Definition at line 22 of file FlatPrimaryVertexGenerator.cc.

References RandomEngineAndDistribution::flatShoot(), maxX, maxY, maxZ, minX, minY, and minZ.

Member Data Documentation

double FlatPrimaryVertexGenerator::maxX
private

Definition at line 33 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::maxY
private

Definition at line 34 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::maxZ
private

Definition at line 35 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minX
private

Definition at line 30 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minY
private

Definition at line 31 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().

double FlatPrimaryVertexGenerator::minZ
private

Definition at line 32 of file FlatPrimaryVertexGenerator.h.

Referenced by FlatPrimaryVertexGenerator(), and generate().