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 
10 #include <sstream>
11 #include "CLHEP/Units/GlobalSystemOfUnits.h"
12 #include "CLHEP/Units/GlobalPhysicalConstants.h"
13 
15 
17  public:
19  virtual ~ SimBeamSpotObjects(){};
20 
21  double fX0, fY0, fZ0;
22  double fSigmaZ;
24  double fPhi,fAlpha;
25  double fTimeOffset;
26 
27  void print(std::stringstream& ss) const;
28 
30  fX0 = p.getParameter<double>("X0")*cm;
31  fY0 = p.getParameter<double>("Y0")*cm;
32  fZ0 = p.getParameter<double>("Z0")*cm;
33  fSigmaZ = p.getParameter<double>("SigmaZ")*cm;
34  fAlpha = p.getParameter<double>("Alpha")*radian;
35  fPhi = p.getParameter<double>("Phi")*radian;
36  fbetastar = p.getParameter<double>("BetaStar")*cm;
37  femittance = p.getParameter<double>("Emittance")*cm; // this is not the normalized emittance
38  fTimeOffset = p.getParameter<double>("TimeOffset")*ns*c_light; // HepMC time units are mm
39  }
40 };
41 
42 std::ostream& operator<< ( std::ostream&, SimBeamSpotObjects beam );
43 
44 #endif
T getParameter(std::string const &) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void read(edm::ParameterSet &p)
void print(std::stringstream &ss) const