CMS 3D CMS Logo

SimBeamSpotObjects.h
Go to the documentation of this file.
1 #ifndef SIMBEAMSPOTOBJECTS_H
2 #define SIMBEAMSPOTOBJECTS_H
3 
11 
12 #include <sstream>
13 #include "CLHEP/Units/GlobalSystemOfUnits.h"
14 #include "CLHEP/Units/GlobalPhysicalConstants.h"
15 
17 
19 public:
21  virtual ~SimBeamSpotObjects(){};
22 
23  double fX0, fY0, fZ0;
24  double fSigmaZ;
26  double fPhi, fAlpha;
27  double fTimeOffset;
28 
29  void print(std::stringstream& ss) const;
30 
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  }
42 
44 };
45 
46 std::ostream& operator<<(std::ostream&, SimBeamSpotObjects beam);
47 
48 #endif
SimBeamSpotObjects::~SimBeamSpotObjects
virtual ~SimBeamSpotObjects()
Definition: SimBeamSpotObjects.h:21
SimBeamSpotObjects::fTimeOffset
double fTimeOffset
Definition: SimBeamSpotObjects.h:27
SimBeamSpotObjects::print
void print(std::stringstream &ss) const
Definition: SimBeamSpotObjects.cc:5
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SimBeamSpotObjects::fX0
double fX0
Definition: SimBeamSpotObjects.h:21
SimBeamSpotObjects::fY0
double fY0
Definition: SimBeamSpotObjects.h:21
SimBeamSpotObjects
Definition: SimBeamSpotObjects.h:18
SimBeamSpotObjects::femittance
double femittance
Definition: SimBeamSpotObjects.h:25
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
operator<<
std::ostream & operator<<(std::ostream &, SimBeamSpotObjects beam)
Definition: SimBeamSpotObjects.cc:9
SimBeamSpotObjects::fbetastar
double fbetastar
Definition: SimBeamSpotObjects.h:25
EcalCondDBWriter_cfi.beam
beam
Definition: EcalCondDBWriter_cfi.py:45
SimBeamSpotObjects::read
void read(edm::ParameterSet &p)
Definition: SimBeamSpotObjects.h:31
SimBeamSpotObjects::fSigmaZ
double fSigmaZ
Definition: SimBeamSpotObjects.h:24
edm::ParameterSet
Definition: ParameterSet.h:36
Serializable.h
SimBeamSpotObjects::fAlpha
double fAlpha
Definition: SimBeamSpotObjects.h:26
SimBeamSpotObjects::fPhi
double fPhi
Definition: SimBeamSpotObjects.h:26
SimBeamSpotObjects::SimBeamSpotObjects
SimBeamSpotObjects()
Definition: SimBeamSpotObjects.h:20
ParameterSet.h
SimBeamSpotObjects::fZ0
double fZ0
Definition: SimBeamSpotObjects.h:21