CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
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
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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.

References fX0, fY0, and fZ0.

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 edm::ParameterSet::getParameter().

Referenced by BeamProfile2DB::endJob(), edmIntegrityCheck.PublishToFileSystem::get(), 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
template<class Archive >
void SimBeamSpotObjects::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 43 of file SimBeamSpotObjects.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 43 of file SimBeamSpotObjects.h.

Member Data Documentation

double SimBeamSpotObjects::fAlpha

Definition at line 26 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::fbetastar

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::femittance

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::fPhi

Definition at line 26 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::fSigmaZ

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::fTimeOffset

Definition at line 27 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update().

double SimBeamSpotObjects::fX0
double SimBeamSpotObjects::fY0

Definition at line 21 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update(), and ~SimBeamSpotObjects().

double SimBeamSpotObjects::fZ0

Definition at line 21 of file SimBeamSpotObjects.h.

Referenced by BetafuncEvtVtxGenerator::update(), and ~SimBeamSpotObjects().