CMS 3D CMS Logo

CTPPSBeamParameters.h
Go to the documentation of this file.
1 #ifndef CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h
2 #define CondFormats_CTPPSReadoutObjects_CTPPSBeamParameters_h
3 // -*- C++ -*-
4 //
5 // Package: CTPPSReadoutObjects
6 // Class: CTPPSBeamParameters
7 //
15 // Original Author: Wagner Carvalho
16 // Created: 20 Nov 2018
17 //
18 
21 
23 public:
24  // Constructor
26  // Destructor
28 
29  // Getters
30 
31  double getBeamMom45() const;
32  double getBeamMom56() const;
33 
34  double getBetaStarX45() const;
35  double getBetaStarY45() const;
36  double getBetaStarX56() const;
37  double getBetaStarY56() const;
38 
39  double getBeamDivergenceX45() const;
40  double getBeamDivergenceY45() const;
41  double getBeamDivergenceX56() const;
42  double getBeamDivergenceY56() const;
43 
44  double getHalfXangleX45() const;
45  double getHalfXangleY45() const;
46  double getHalfXangleX56() const;
47  double getHalfXangleY56() const;
48 
49  double getVtxOffsetX45() const;
50  double getVtxOffsetY45() const;
51  double getVtxOffsetZ45() const;
52  double getVtxOffsetX56() const;
53  double getVtxOffsetY56() const;
54  double getVtxOffsetZ56() const;
55 
56  double getVtxStddevX() const;
57  double getVtxStddevY() const;
58  double getVtxStddevZ() const;
59 
60  // Setters
61 
62  void setBeamMom45(double mom);
63  void setBeamMom56(double mom);
64 
65  void setBetaStarX45(double beta);
66  void setBetaStarY45(double beta);
67  void setBetaStarX56(double beta);
68  void setBetaStarY56(double beta);
69 
70  void setBeamDivergenceX45(double div);
71  void setBeamDivergenceY45(double div);
72  void setBeamDivergenceX56(double div);
73  void setBeamDivergenceY56(double div);
74 
75  void setHalfXangleX45(double angle);
76  void setHalfXangleY45(double angle);
77  void setHalfXangleX56(double angle);
78  void setHalfXangleY56(double angle);
79 
80  void setVtxOffsetX45(double offset);
81  void setVtxOffsetY45(double offset);
82  void setVtxOffsetZ45(double offset);
83  void setVtxOffsetX56(double offset);
84  void setVtxOffsetY56(double offset);
85  void setVtxOffsetZ56(double offset);
86 
87  void setVtxStddevX(double stddev);
88  void setVtxStddevY(double stddev);
89  void setVtxStddevZ(double stddev);
90 
91  void printInfo(std::stringstream &s);
92 
93 private:
94  // LHC sector 45 corresponds to beam 2, sector 56 to beam 1
95  double beam_momentum_45_; // GeV
96  double beam_momentum_56_; // GeV
97 
100 
103 
106 
107  // splitting between 45 and 56 may effectively account for magnet misalignment
111 
112  // the following variables might possibly be in another CMS record already,
113  // but we might want to keep them for completeness/independence
114  double vtx_stddev_x_; // cm
115  double vtx_stddev_y_; // cm
116  double vtx_stddev_z_; // cm
117 
119 };
120 
121 std::ostream &operator<<(std::ostream &, CTPPSBeamParameters);
122 
123 #endif
double getBetaStarX45() const
void printInfo(std::stringstream &s)
void setBeamDivergenceY45(double div)
double getBeamDivergenceX56() const
double getVtxStddevZ() const
void setVtxStddevX(double stddev)
void setHalfXangleX45(double angle)
void setVtxStddevZ(double stddev)
void setHalfXangleY56(double angle)
double getVtxOffsetX45() const
void setVtxOffsetY56(double offset)
std::ostream & operator<<(std::ostream &, CTPPSBeamParameters)
double getHalfXangleY56() const
void setBetaStarY45(double beta)
double getHalfXangleY45() const
void setBeamMom45(double mom)
double getBeamDivergenceX45() const
double getBeamDivergenceY56() const
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
double getVtxOffsetZ56() const
double getBetaStarY45() const
void setVtxOffsetZ56(double offset)
double getBeamMom56() const
double getHalfXangleX56() const
void setVtxStddevY(double stddev)
void setVtxOffsetX45(double offset)
double getVtxOffsetY56() const
void setBeamMom56(double mom)
void setBetaStarX56(double beta)
void setBeamDivergenceY56(double div)
double getVtxStddevX() const
void setHalfXangleY45(double angle)
double getBeamDivergenceY45() const
void setBetaStarX45(double beta)
#define COND_SERIALIZABLE
Definition: Serializable.h:38
double getVtxOffsetZ45() const
double getBetaStarX56() const
void setHalfXangleX56(double angle)
void setVtxOffsetY45(double offset)
double getVtxOffsetY45() const
double getBeamMom45() const
double getVtxStddevY() const
void setBetaStarY56(double beta)
double getHalfXangleX45() const
double getVtxOffsetX56() const
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)
double getBetaStarY56() const
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11