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 
15 public:
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  };
28 
29  virtual ~SimBeamSpotObjects(){};
30 
32  void setX(double val) { fX0 = val; }
33  void setY(double val) { fY0 = val; }
34  void setZ(double val) { fZ0 = val; }
36  void setSigmaZ(double val) { fSigmaZ = val; }
38  void setBetaStar(double val) { fbetastar = val; }
39  void setEmittance(double val) { femittance = val; }
41  void setPhi(double val) { fPhi = val; }
42  void setAlpha(double val) { fAlpha = val; }
43  void setTimeOffset(double val) { fTimeOffset = val; }
44 
46  double x() const { return fX0; }
48  double y() const { return fY0; }
50  double z() const { return fZ0; }
52  double sigmaZ() const { return fSigmaZ; }
54  double betaStar() const { return fbetastar; }
56  double emittance() const { return femittance; }
58  double phi() const { return fPhi; }
60  double alpha() const { return fAlpha; }
62  double timeOffset() const { return fTimeOffset; }
63 
65  void print(std::stringstream& ss) const;
66 
67 private:
68  double fX0, fY0, fZ0;
69  double fSigmaZ;
71  double fPhi, fAlpha;
72  double fTimeOffset;
73 
75 };
76 
77 std::ostream& operator<<(std::ostream&, SimBeamSpotObjects beam);
78 
79 #endif
double sigmaZ() const
get sigmaZ
void print(std::stringstream &ss) const
print sim beam spot parameters
void setPhi(double val)
set Phi, Alpha and TimeOffset
void setZ(double val)
void setY(double val)
void setAlpha(double val)
double alpha() const
get Alpha
std::ostream & operator<<(std::ostream &, SimBeamSpotObjects beam)
void setBetaStar(double val)
set BetaStar and Emittance
void setSigmaZ(double val)
set sigmaZ
SimBeamSpotObjects()
default constructor
void setEmittance(double val)
double timeOffset() const
get TimeOffset
void setTimeOffset(double val)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
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
void setX(double val)
set X, Y, Z positions