CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
SimBeamSpotObjects Class Reference

#include <SimBeamSpotObjects.h>

Public Member Functions

double alpha () const
 get Alpha More...
 
double betaStar () const
 get BetaStar More...
 
double emittance () const
 get Emittance More...
 
double phi () const
 get Phi More...
 
void print (std::stringstream &ss) const
 print sim beam spot parameters More...
 
void setAlpha (double val)
 
void setBetaStar (double val)
 set BetaStar and Emittance More...
 
void setEmittance (double val)
 
void setPhi (double val)
 set Phi, Alpha and TimeOffset More...
 
void setSigmaZ (double val)
 set sigmaZ More...
 
void setTimeOffset (double val)
 
void setX (double val)
 set X, Y, Z positions More...
 
void setY (double val)
 
void setZ (double val)
 
double sigmaZ () const
 get sigmaZ More...
 
 SimBeamSpotObjects ()
 default constructor More...
 
double timeOffset () const
 get TimeOffset More...
 
double x () const
 get X position More...
 
double y () const
 get Y position More...
 
double z () const
 get Z position More...
 
virtual ~SimBeamSpotObjects ()
 

Private Member Functions

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

Private Attributes

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

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

Constructor & Destructor Documentation

◆ SimBeamSpotObjects()

SimBeamSpotObjects::SimBeamSpotObjects ( )
inline

default constructor

Definition at line 17 of file SimBeamSpotObjects.h.

References fAlpha, fbetastar, femittance, fPhi, fSigmaZ, fTimeOffset, fX0, fY0, and fZ0.

17  {
18  fX0 = 0.0;
19  fY0 = 0.0;
20  fZ0 = 0.0;
21  fSigmaZ = 0.0;
22  fbetastar = 0.0;
23  femittance = 0.0;
24  fPhi = 0.0;
25  fAlpha = 0.0;
26  fTimeOffset = 0.0;
27  };

◆ ~SimBeamSpotObjects()

virtual SimBeamSpotObjects::~SimBeamSpotObjects ( )
inlinevirtual

Definition at line 29 of file SimBeamSpotObjects.h.

29 {};

Member Function Documentation

◆ alpha()

double SimBeamSpotObjects::alpha ( ) const
inline

get Alpha

Definition at line 60 of file SimBeamSpotObjects.h.

References fAlpha.

Referenced by BeamProfile2DBReader::analyze(), print(), and BetafuncEvtVtxGenerator::update().

60 { return fAlpha; }

◆ betaStar()

double SimBeamSpotObjects::betaStar ( ) const
inline

get BetaStar

Definition at line 54 of file SimBeamSpotObjects.h.

References fbetastar.

Referenced by BeamProfile2DBReader::analyze(), print(), and BetafuncEvtVtxGenerator::update().

54 { return fbetastar; }

◆ emittance()

double SimBeamSpotObjects::emittance ( ) const
inline

get Emittance

Definition at line 56 of file SimBeamSpotObjects.h.

References femittance.

Referenced by BeamProfile2DBReader::analyze(), print(), and BetafuncEvtVtxGenerator::update().

56 { return femittance; }

◆ phi()

double SimBeamSpotObjects::phi ( ) const
inline

◆ print()

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

print sim beam spot parameters

Definition at line 5 of file SimBeamSpotObjects.cc.

References alpha(), betaStar(), emittance(), phi(), sigmaZ(), contentValuesCheck::ss, timeOffset(), x(), y(), and z().

5  {
6  ss << "-----------------------------------------------------\n"
7  << " Sim Beam Spot Data\n\n"
8  << " X0 = " << x() << " [cm]\n"
9  << " Y0 = " << y() << " [cm]\n"
10  << " Z0 = " << z() << " [cm]\n"
11  << " Sigma Z0 = " << sigmaZ() << " [cm]\n"
12  << " Beta star = " << betaStar() << " [cm]\n"
13  << " Emittance X = " << emittance() << " [cm]\n"
14  << " Phi = " << phi() << " [radians]\n"
15  << " Alpha = " << alpha() << " [radians]\n"
16  << " TimeOffset = " << timeOffset() << " [ns]\n"
17  << "-----------------------------------------------------\n\n";
18 }
double sigmaZ() const
get sigmaZ
double alpha() const
get Alpha
double timeOffset() const
get TimeOffset
double z() const
get Z position
double emittance() const
get Emittance
double phi() const
get Phi
double betaStar() const
get BetaStar
double x() const
get X position
double y() const
get Y position

◆ serialize()

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

◆ setAlpha()

void SimBeamSpotObjects::setAlpha ( double  val)
inline

Definition at line 42 of file SimBeamSpotObjects.h.

References fAlpha, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setBetaStar()

void SimBeamSpotObjects::setBetaStar ( double  val)
inline

set BetaStar and Emittance

Definition at line 38 of file SimBeamSpotObjects.h.

References fbetastar, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setEmittance()

void SimBeamSpotObjects::setEmittance ( double  val)
inline

◆ setPhi()

void SimBeamSpotObjects::setPhi ( double  val)
inline

set Phi, Alpha and TimeOffset

Definition at line 41 of file SimBeamSpotObjects.h.

References fPhi, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setSigmaZ()

void SimBeamSpotObjects::setSigmaZ ( double  val)
inline

set sigmaZ

Definition at line 36 of file SimBeamSpotObjects.h.

References fSigmaZ, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setTimeOffset()

void SimBeamSpotObjects::setTimeOffset ( double  val)
inline

◆ setX()

void SimBeamSpotObjects::setX ( double  val)
inline

set X, Y, Z positions

Definition at line 32 of file SimBeamSpotObjects.h.

References fX0, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setY()

void SimBeamSpotObjects::setY ( double  val)
inline

Definition at line 33 of file SimBeamSpotObjects.h.

References fY0, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ setZ()

void SimBeamSpotObjects::setZ ( double  val)
inline

Definition at line 34 of file SimBeamSpotObjects.h.

References fZ0, and heppy_batch::val.

Referenced by BeamProfile2DBWriter::BeamProfile2DBWriter().

◆ sigmaZ()

double SimBeamSpotObjects::sigmaZ ( ) const
inline

get sigmaZ

Definition at line 52 of file SimBeamSpotObjects.h.

References fSigmaZ.

Referenced by BeamProfile2DBReader::analyze(), print(), and BetafuncEvtVtxGenerator::update().

52 { return fSigmaZ; }

◆ timeOffset()

double SimBeamSpotObjects::timeOffset ( ) const
inline

get TimeOffset

Definition at line 62 of file SimBeamSpotObjects.h.

References fTimeOffset.

Referenced by BeamProfile2DBReader::analyze(), print(), and BetafuncEvtVtxGenerator::update().

62 { return fTimeOffset; }

◆ x()

double SimBeamSpotObjects::x ( ) const
inline

◆ y()

double SimBeamSpotObjects::y ( ) const
inline

◆ z()

double SimBeamSpotObjects::z ( ) const
inline

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 74 of file SimBeamSpotObjects.h.

◆ cond::serialization::access

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

Definition at line 74 of file SimBeamSpotObjects.h.

Member Data Documentation

◆ fAlpha

double SimBeamSpotObjects::fAlpha
private

Definition at line 71 of file SimBeamSpotObjects.h.

Referenced by alpha(), setAlpha(), and SimBeamSpotObjects().

◆ fbetastar

double SimBeamSpotObjects::fbetastar
private

Definition at line 70 of file SimBeamSpotObjects.h.

Referenced by betaStar(), setBetaStar(), and SimBeamSpotObjects().

◆ femittance

double SimBeamSpotObjects::femittance
private

Definition at line 70 of file SimBeamSpotObjects.h.

Referenced by emittance(), setEmittance(), and SimBeamSpotObjects().

◆ fPhi

double SimBeamSpotObjects::fPhi
private

Definition at line 71 of file SimBeamSpotObjects.h.

Referenced by phi(), setPhi(), and SimBeamSpotObjects().

◆ fSigmaZ

double SimBeamSpotObjects::fSigmaZ
private

Definition at line 69 of file SimBeamSpotObjects.h.

Referenced by setSigmaZ(), sigmaZ(), and SimBeamSpotObjects().

◆ fTimeOffset

double SimBeamSpotObjects::fTimeOffset
private

Definition at line 72 of file SimBeamSpotObjects.h.

Referenced by setTimeOffset(), SimBeamSpotObjects(), and timeOffset().

◆ fX0

double SimBeamSpotObjects::fX0
private

Definition at line 68 of file SimBeamSpotObjects.h.

Referenced by setX(), SimBeamSpotObjects(), and x().

◆ fY0

double SimBeamSpotObjects::fY0
private

Definition at line 68 of file SimBeamSpotObjects.h.

Referenced by setY(), SimBeamSpotObjects(), and y().

◆ fZ0

double SimBeamSpotObjects::fZ0
private

Definition at line 68 of file SimBeamSpotObjects.h.

Referenced by setZ(), SimBeamSpotObjects(), and z().