CMS 3D CMS Logo

SimBeamSpotObjects.h
Go to the documentation of this file.
1 #ifndef SIMBEAMSPOTOBJECTS_H
2 #define SIMBEAMSPOTOBJECTS_H
3 
25 
26 #include <sstream>
27 
29 public:
32  fX0 = 0.0;
33  fY0 = 0.0;
34  fZ0 = 0.0;
35  fMeanX = 0.0;
36  fMeanY = 0.0;
37  fMeanZ = 0.0;
38  fSigmaX = -1.0;
39  fSigmaY = -1.0;
40  fSigmaZ = 0.0;
41  fbetastar = 0.0;
42  femittance = 0.0;
43  fPhi = 0.0;
44  fAlpha = 0.0;
45  fTimeOffset = 0.0;
46  };
47 
48  virtual ~SimBeamSpotObjects(){};
49 
51  void setX(double val) { fX0 = val; }
52  void setY(double val) { fY0 = val; }
53  void setZ(double val) { fZ0 = val; }
55  void setMeanX(double val) { fMeanX = val; }
56  void setMeanY(double val) { fMeanY = val; }
57  void setMeanZ(double val) { fMeanZ = val; }
59  void setSigmaX(double val) { fSigmaX = val; }
60  void setSigmaY(double val) { fSigmaY = val; }
61  void setSigmaZ(double val) { fSigmaZ = val; }
63  void setBetaStar(double val) { fbetastar = val; }
64  void setEmittance(double val) { femittance = val; }
66  void setPhi(double val) { fPhi = val; }
67  void setAlpha(double val) { fAlpha = val; }
68  void setTimeOffset(double val) { fTimeOffset = val; }
69 
71  double x() const { return fX0; }
72  double y() const { return fY0; }
73  double z() const { return fZ0; }
75  double meanX() const { return fMeanX; }
76  double meanY() const { return fMeanY; }
77  double meanZ() const { return fMeanZ; }
79  double sigmaX() const;
80  double sigmaY() const;
81  double sigmaZ() const { return fSigmaZ; }
83  double betaStar() const { return fbetastar; }
84  double emittance() const { return femittance; }
86  double phi() const { return fPhi; }
87  double alpha() const { return fAlpha; }
88  double timeOffset() const { return fTimeOffset; }
89 
91  void print(std::stringstream& ss) const;
92 
93 private:
94  double fX0, fY0, fZ0;
95  double fMeanX, fMeanY, fMeanZ;
98  double fPhi, fAlpha;
99  double fTimeOffset;
100 
102 };
103 
104 std::ostream& operator<<(std::ostream&, SimBeamSpotObjects beam);
105 
106 #endif
double sigmaZ() const
void print(std::stringstream &ss) const
print sim beam spot parameters
double sigmaX() const
get sigmaX, sigmaY, sigmaZ
void setPhi(double val)
set Phi, Alpha and TimeOffset
double meanX() const
get meanX, meanY, meanZ position
void setZ(double val)
void setY(double val)
void setAlpha(double val)
double alpha() const
std::ostream & operator<<(std::ostream &, SimBeamSpotObjects beam)
void setBetaStar(double val)
set BetaStar and Emittance
void setSigmaZ(double val)
void setMeanZ(double val)
SimBeamSpotObjects()
default constructor
void setEmittance(double val)
void setSigmaY(double val)
void setMeanX(double val)
set meanX, meanY, meanZ
double timeOffset() const
double meanY() const
void setTimeOffset(double val)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
double meanZ() const
double emittance() const
double phi() const
get Phi, Alpha and TimeOffset
double betaStar() const
get BetaStar and Emittance
double x() const
get X, Y, Z position
void setSigmaX(double val)
set sigmaX, sigmaY, sigmaZ
void setX(double val)
set X, Y, Z positions
void setMeanY(double val)