CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PrimaryVertexGenerator Class Referenceabstract

#include <PrimaryVertexGenerator.h>

Inheritance diagram for PrimaryVertexGenerator:
BetaFuncPrimaryVertexGenerator FlatPrimaryVertexGenerator GaussianPrimaryVertexGenerator NoPrimaryVertexGenerator

Public Member Functions

const math::XYZPointbeamSpot () const
 Return x0, y0, z0. More...
 
TMatrixD * boost ()
 
const TMatrixD * boost () const
 
virtual void generate (RandomEngineAndDistribution const *)=0
 Generation process (to be implemented) More...
 
 PrimaryVertexGenerator ()
 Default constructor. More...
 
virtual ~PrimaryVertexGenerator ()
 Destructor. More...
 

Protected Member Functions

void setBoost (TMatrixD *)
 

Protected Attributes

math::XYZPoint beamSpot_
 
TMatrixD * boost_
 

Detailed Description

A class that generates a primary vertex for the event, in cm

Definition at line 13 of file PrimaryVertexGenerator.h.

Constructor & Destructor Documentation

PrimaryVertexGenerator::PrimaryVertexGenerator ( )

Default constructor.

Definition at line 4 of file PrimaryVertexGenerator.cc.

4  :
6  boost_(0)
7 {
8 }
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
PrimaryVertexGenerator::~PrimaryVertexGenerator ( )
virtual

Destructor.

Definition at line 10 of file PrimaryVertexGenerator.cc.

References boost_.

10  {
11  if ( boost_ ) delete boost_;
12 }

Member Function Documentation

const math::XYZPoint& PrimaryVertexGenerator::beamSpot ( void  ) const
inline

Return x0, y0, z0.

Definition at line 29 of file PrimaryVertexGenerator.h.

References beamSpot_.

Referenced by FBaseSimEvent::addParticles().

29 { return beamSpot_; }
TMatrixD * PrimaryVertexGenerator::boost ( )

Definition at line 20 of file PrimaryVertexGenerator.cc.

References boost_.

Referenced by PileUpProducer::produce().

20  {
21  return boost_;
22 }
const TMatrixD * PrimaryVertexGenerator::boost ( ) const

Definition at line 15 of file PrimaryVertexGenerator.cc.

References boost_.

15  {
16  return boost_;
17 }
virtual void PrimaryVertexGenerator::generate ( RandomEngineAndDistribution const *  )
pure virtual
void PrimaryVertexGenerator::setBoost ( TMatrixD *  aBoost)
protected

Definition at line 25 of file PrimaryVertexGenerator.cc.

References boost_.

Referenced by BetaFuncPrimaryVertexGenerator::BetaFuncPrimaryVertexGenerator().

25  {
26  boost_ = aBoost;
27 }

Member Data Documentation

math::XYZPoint PrimaryVertexGenerator::beamSpot_
protected
TMatrixD* PrimaryVertexGenerator::boost_
protected

Definition at line 35 of file PrimaryVertexGenerator.h.

Referenced by boost(), setBoost(), and ~PrimaryVertexGenerator().