CMS 3D CMS Logo

Public Member Functions | Public Attributes

SimBeamSpotObjects Class Reference

#include <SimBeamSpotObjects.h>

List of all members.

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.

{};
virtual SimBeamSpotObjects::~SimBeamSpotObjects ( ) [inline, virtual]

Definition at line 19 of file SimBeamSpotObjects.h.

{};

Member Function Documentation

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

Definition at line 5 of file SimBeamSpotObjects.cc.

References fX0.

Referenced by operator<<().

                                                        {
          ss << "-----------------------------------------------------\n"
             <<fX0<<std::endl;
}
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().

                                {
    fX0 =        p.getParameter<double>("X0")*cm;
    fY0 =        p.getParameter<double>("Y0")*cm;
    fZ0 =        p.getParameter<double>("Z0")*cm;
    fSigmaZ =    p.getParameter<double>("SigmaZ")*cm;
    fAlpha =     p.getParameter<double>("Alpha")*radian;
    fPhi =       p.getParameter<double>("Phi")*radian;
    fbetastar =  p.getParameter<double>("BetaStar")*cm;
    femittance = p.getParameter<double>("Emittance")*cm; // this is not the normalized emittance
    fTimeOffset = p.getParameter<double>("TimeOffset")*ns*c_light; // HepMC time units are mm
  }

Member Data Documentation

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 23 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 23 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 24 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 22 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 25 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by print(), and read().

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by read().

Definition at line 19 of file SimBeamSpotObjects.h.

Referenced by read().