CMS 3D CMS Logo

CTPPSBeamParameters.h
Go to the documentation of this file.
1 #ifndef CondFormats_PPSObjects_CTPPSBeamParameters_h
2 #define CondFormats_PPSObjects_CTPPSBeamParameters_h
3 // -*- C++ -*-
4 //
5 // Package: PPSObjects
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 getVtxOffsetT45() const;
53  double getVtxOffsetX56() const;
54  double getVtxOffsetY56() const;
55  double getVtxOffsetZ56() const;
56  double getVtxOffsetT56() const;
57 
58  double getVtxStddevX() const;
59  double getVtxStddevY() const;
60  double getVtxStddevZ() const;
61  double getVtxStddevT() const;
62 
63  // Setters
64 
65  void setBeamMom45(double mom);
66  void setBeamMom56(double mom);
67 
68  void setBetaStarX45(double beta);
69  void setBetaStarY45(double beta);
70  void setBetaStarX56(double beta);
71  void setBetaStarY56(double beta);
72 
73  void setBeamDivergenceX45(double div);
74  void setBeamDivergenceY45(double div);
75  void setBeamDivergenceX56(double div);
76  void setBeamDivergenceY56(double div);
77 
78  void setHalfXangleX45(double angle);
79  void setHalfXangleY45(double angle);
80  void setHalfXangleX56(double angle);
81  void setHalfXangleY56(double angle);
82 
83  void setVtxOffsetX45(double offset);
84  void setVtxOffsetY45(double offset);
85  void setVtxOffsetZ45(double offset);
86  void setVtxOffsetT45(double offset);
87  void setVtxOffsetX56(double offset);
88  void setVtxOffsetY56(double offset);
89  void setVtxOffsetZ56(double offset);
90  void setVtxOffsetT56(double offset);
91 
92  void setVtxStddevX(double stddev);
93  void setVtxStddevY(double stddev);
94  void setVtxStddevZ(double stddev);
95  void setVtxStddevT(double stddev);
96 
97  void printInfo(std::stringstream &s);
98 
99 private:
100  // LHC sector 45 corresponds to beam 2, sector 56 to beam 1
101  double beam_momentum_45_; // GeV
102  double beam_momentum_56_; // GeV
103 
106 
109 
112 
113  // splitting between 45 and 56 may effectively account for magnet misalignment
118 
119  // the following variables might possibly be in another CMS record already,
120  // but we might want to keep them for completeness/independence
121  double vtx_stddev_x_; // cm
122  double vtx_stddev_y_; // cm
123  double vtx_stddev_z_; // cm
124  double vtx_stddev_t_; // cm
125 
127 };
128 
129 std::ostream &operator<<(std::ostream &, CTPPSBeamParameters);
130 
131 #endif
void printInfo(std::stringstream &s)
void setBeamDivergenceY45(double div)
double getVtxStddevX() const
double getVtxStddevZ() const
double getBetaStarY45() const
void setVtxStddevX(double stddev)
void setHalfXangleX45(double angle)
double getHalfXangleX56() const
void setVtxStddevZ(double stddev)
void setHalfXangleY56(double angle)
double getBetaStarX45() const
double getBetaStarX56() const
double getBetaStarY56() const
void setVtxStddevT(double stddev)
void setVtxOffsetY56(double offset)
std::ostream & operator<<(std::ostream &, CTPPSBeamParameters)
double getVtxOffsetT56() const
double getVtxOffsetX45() const
void setBetaStarY45(double beta)
double getHalfXangleY56() const
double getVtxOffsetT45() const
void setBeamMom45(double mom)
double getVtxStddevY() const
double getBeamDivergenceX56() const
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
double getVtxOffsetZ45() const
double getVtxStddevT() const
void setVtxOffsetZ56(double offset)
double getVtxOffsetY45() const
void setVtxStddevY(double stddev)
void setVtxOffsetX45(double offset)
void setBeamMom56(double mom)
void setBetaStarX56(double beta)
double getBeamMom45() const
void setBeamDivergenceY56(double div)
void setHalfXangleY45(double angle)
double getBeamDivergenceY56() const
void setBetaStarX45(double beta)
double getHalfXangleY45() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
double getVtxOffsetZ56() const
void setVtxOffsetT56(double offset)
void setHalfXangleX56(double angle)
void setVtxOffsetY45(double offset)
double getBeamDivergenceX45() const
double getBeamMom56() const
void setBetaStarY56(double beta)
double getBeamDivergenceY45() const
double getVtxOffsetX56() const
double getHalfXangleX45() const
void setVtxOffsetT45(double offset)
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)
double getVtxOffsetY56() const
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11