CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

PrimaryVertexGenerator Class Reference

#include <PrimaryVertexGenerator.h>

Inheritance diagram for PrimaryVertexGenerator:
BetaFuncPrimaryVertexGenerator FlatPrimaryVertexGenerator GaussianPrimaryVertexGenerator NoPrimaryVertexGenerator

List of all members.

Public Member Functions

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

Protected Member Functions

void setBoost (TMatrixD *)

Protected Attributes

math::XYZPoint beamSpot_
TMatrixD * boost_
const RandomEnginerandom

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.

                                               : 
  math::XYZVector(), 
  random(0),
  boost_(0)
{
}
PrimaryVertexGenerator::PrimaryVertexGenerator ( const RandomEngine engine)

Definition at line 11 of file PrimaryVertexGenerator.cc.

                                                                         : 
  math::XYZVector(), 
  random(engine),
  boost_(0)
{
}
PrimaryVertexGenerator::~PrimaryVertexGenerator ( ) [virtual]

Destructor.

Definition at line 18 of file PrimaryVertexGenerator.cc.

References boost_.

                                                { 
  if ( boost_ ) delete boost_; 
}

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

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

Definition at line 23 of file PrimaryVertexGenerator.cc.

References boost_.

Referenced by PileUpProducer::produce().

                                    { 
  return boost_;
}
virtual void PrimaryVertexGenerator::generate ( ) [pure virtual]
void PrimaryVertexGenerator::setBoost ( TMatrixD *  aBoost) [protected]

Definition at line 28 of file PrimaryVertexGenerator.cc.

References boost_.

Referenced by BetaFuncPrimaryVertexGenerator::BetaFuncPrimaryVertexGenerator().

                                                 {
  boost_ = aBoost;
}

Member Data Documentation

TMatrixD* PrimaryVertexGenerator::boost_ [protected]

Definition at line 36 of file PrimaryVertexGenerator.h.

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