CMS 3D CMS Logo

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

#include <SimBeamSpotObjects.h>

Public Member Functions

void print (std::stringstream &ss) const
 
void read (edm::ParameterSet &p)
 
 SimBeamSpotObjects ()
 
virtual ~SimBeamSpotObjects ()
 

Public Attributes

double fAlpha
 
double fbetastar
 
double femittance
 
double fPhi
 
double fSigmaZ
 
double fTimeOffset
 
double fX0
 
double fY0
 
double fZ0
 

Detailed Description

provide the vertex smearing parameters from DB

Definition at line 16 of file SimBeamSpotObjects.h.

Constructor & Destructor Documentation

SimBeamSpotObjects::SimBeamSpotObjects ( )
inline

Definition at line 18 of file SimBeamSpotObjects.h.

18 {};
virtual SimBeamSpotObjects::~SimBeamSpotObjects ( )
inlinevirtual

Definition at line 19 of file SimBeamSpotObjects.h.

19 {};

Member Function Documentation

void SimBeamSpotObjects::print ( std::stringstream &  ss) const

Definition at line 5 of file SimBeamSpotObjects.cc.

References fX0.

Referenced by operator<<().

5  {
6  ss << "-----------------------------------------------------\n"
7  <<fX0<<std::endl;
8 }
void SimBeamSpotObjects::read ( edm::ParameterSet p)
inline

Definition at line 29 of file SimBeamSpotObjects.h.

References fAlpha, fbetastar, femittance, fPhi, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, and edm::ParameterSet::getParameter().

Referenced by BeamProfile2DB::endJob(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().

29  {
30  fX0 = p.getParameter<double>("X0")*cm;
31  fY0 = p.getParameter<double>("Y0")*cm;
32  fZ0 = p.getParameter<double>("Z0")*cm;
33  fSigmaZ = p.getParameter<double>("SigmaZ")*cm;
34  fAlpha = p.getParameter<double>("Alpha")*radian;
35  fPhi = p.getParameter<double>("Phi")*radian;
36  fbetastar = p.getParameter<double>("BetaStar")*cm;
37  femittance = p.getParameter<double>("Emittance")*cm; // this is not the normalized emittance
38  fTimeOffset = p.getParameter<double>("TimeOffset")*ns*c_light; // HepMC time units are mm
39  }
T getParameter(std::string const &) const

Member Data Documentation

double SimBeamSpotObjects::fAlpha

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fbetastar

Definition at line 23 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::femittance

Definition at line 23 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fPhi

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fSigmaZ

Definition at line 22 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fTimeOffset

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fX0

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by print(), and read().

double SimBeamSpotObjects::fY0

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fZ0

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by read().