CMS 3D CMS Logo

SimBeamSpotHLLHCObjects.h
Go to the documentation of this file.
1 #ifndef CondFormats_BeamSpotObjects_SimBeamSpotHLLHCObjects_h
2 #define CondFormats_BeamSpotObjects_SimBeamSpotHLLHCObjects_h
3 
22 
23 #include <sstream>
24 
26 public:
29  fMeanX = 0.0;
30  fMeanY = 0.0;
31  fMeanZ = 0.0;
32  fEProton = 0.0;
33  fCrabFrequency = 0.0;
34  fRF800 = 0.0;
35  fCrossingAngle = 0.0;
38  fBetaCrossingPlane = 0.0;
41  fVerticalEmittance = 0.0;
42  fBunchLength = 0.0;
43  fTimeOffset = 0.0;
44  };
45 
47 
49  void setMeanX(double val) { fMeanX = val; }
50  void setMeanY(double val) { fMeanY = val; }
51  void setMeanZ(double val) { fMeanZ = val; }
53  void setEProton(double val) { fEProton = val; }
54  void setCrabFrequency(double val) { fCrabFrequency = val; }
55  void setRF800(double val) { fRF800 = val; }
57  void setCrossingAngle(double val) { fCrossingAngle = val; }
66  void setBunchLength(double val) { fBunchLength = val; }
67  void setTimeOffset(double val) { fTimeOffset = val; }
68 
70  double meanX() const { return fMeanX; }
71  double meanY() const { return fMeanY; }
72  double meanZ() const { return fMeanZ; }
74  double eProton() const { return fEProton; }
75  double crabFrequency() const { return fCrabFrequency; }
76  double rf800() const { return fRF800; }
78  double crossingAngle() const { return fCrossingAngle; }
79  double crabbingAngleCrossing() const { return fCrabbingAngleCrossing; }
82  double betaCrossingPlane() const { return fBetaCrossingPlane; }
83  double betaSeparationPlane() const { return fBetaSeparationPlane; }
84  double horizontalEmittance() const { return fHorizontalEmittance; }
85  double verticalEmittance() const { return fVerticalEmittance; }
87  double bunchLenght() const { return fBunchLength; }
88  double timeOffset() const { return fTimeOffset; }
89 
91  void print(std::stringstream& ss) const;
92 
93 private:
94  double fMeanX, fMeanY, fMeanZ;
100 
102 };
103 
104 std::ostream& operator<<(std::ostream&, SimBeamSpotHLLHCObjects beam);
105 
106 #endif
void setMeanX(double val)
set meanX, meanY, meanZ
std::ostream & operator<<(std::ostream &, SimBeamSpotHLLHCObjects beam)
void setEProton(double val)
set EProton, fCrabFrequency, RF800
void setHorizontalEmittance(double val)
SimBeamSpotHLLHCObjects()
default constructor
double eProton() const
get EProton, fCrabFrequency, RF800
void setBetaSeparationPlane(double val)
void setCrabbingAngleCrossing(double val)
void setVerticalEmittance(double val)
double meanX() const
get meanX, meanY, meanZ position
void print(std::stringstream &ss) const
print sim beam spot parameters
double crossingAngle() const
set Crossing and Crabbing angles
void setBunchLength(double val)
set BunchLength and TimeOffset
void setCrossingAngle(double val)
set Crossing and Crabbing angles
#define COND_SERIALIZABLE
Definition: Serializable.h:39
double betaCrossingPlane() const
get BetaStar and Emittance
double bunchLenght() const
get BunchLength and TimeOffset
void setCrabbingAngleSeparation(double val)
void setBetaCrossingPlane(double val)
set BetaStar and Emittance