CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
T getParameter(std::string const &) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
void read(edm::ParameterSet &p)
void print(std::stringstream &ss) const
#define COND_SERIALIZABLE
Definition: Serializable.h:38