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

 COND_SERIALIZABLE
 
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 18 of file SimBeamSpotObjects.h.

Constructor & Destructor Documentation

SimBeamSpotObjects::SimBeamSpotObjects ( )
inline

Definition at line 20 of file SimBeamSpotObjects.h.

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

Definition at line 21 of file SimBeamSpotObjects.h.

21 {};

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

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

Member Data Documentation

SimBeamSpotObjects::COND_SERIALIZABLE

Definition at line 43 of file SimBeamSpotObjects.h.

double SimBeamSpotObjects::fAlpha

Definition at line 26 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fbetastar

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::femittance

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fPhi

Definition at line 26 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fSigmaZ

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fTimeOffset

Definition at line 27 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fX0

Definition at line 21 of file SimBeamSpotObjects.h.

Referenced by print(), and read().

double SimBeamSpotObjects::fY0

Definition at line 21 of file SimBeamSpotObjects.h.

Referenced by read().

double SimBeamSpotObjects::fZ0

Definition at line 21 of file SimBeamSpotObjects.h.

Referenced by read().