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
CTPPSBeamParameters
Definition: CTPPSBeamParameters.h:22
CTPPSBeamParameters::setHalfXangleX56
void setHalfXangleX56(double angle)
Definition: CTPPSBeamParameters.cc:104
CTPPSBeamParameters::beam_divergence_x_45_
double beam_divergence_x_45_
Definition: CTPPSBeamParameters.h:107
CTPPSBeamParameters::getVtxStddevY
double getVtxStddevY() const
Definition: CTPPSBeamParameters.cc:83
CTPPSBeamParameters::setVtxOffsetY56
void setVtxOffsetY56(double offset)
Definition: CTPPSBeamParameters.cc:112
CTPPSBeamParameters::half_crossing_angle_y_56_
double half_crossing_angle_y_56_
Definition: CTPPSBeamParameters.h:111
CTPPSBeamParameters::setVtxStddevX
void setVtxStddevX(double stddev)
Definition: CTPPSBeamParameters.cc:116
MessageLogger.h
CTPPSBeamParameters::setBetaStarX45
void setBetaStarX45(double beta)
Definition: CTPPSBeamParameters.cc:92
CTPPSBeamParameters::printInfo
void printInfo(std::stringstream &s)
Definition: CTPPSBeamParameters.cc:121
CTPPSBeamParameters::beam_divergence_y_45_
double beam_divergence_y_45_
Definition: CTPPSBeamParameters.h:108
CTPPSBeamParameters::getHalfXangleY45
double getHalfXangleY45() const
Definition: CTPPSBeamParameters.cc:69
CTPPSBeamParameters::vtx_stddev_z_
double vtx_stddev_z_
Definition: CTPPSBeamParameters.h:123
CTPPSBeamParameters::vtx_stddev_x_
double vtx_stddev_x_
Definition: CTPPSBeamParameters.h:121
zMuMuMuonUserData.beta
beta
Definition: zMuMuMuonUserData.py:10
CTPPSBeamParameters::vtx_stddev_y_
double vtx_stddev_y_
Definition: CTPPSBeamParameters.h:122
CTPPSBeamParameters::setVtxStddevT
void setVtxStddevT(double stddev)
Definition: CTPPSBeamParameters.cc:119
CTPPSBeamParameters::getHalfXangleX56
double getHalfXangleX56() const
Definition: CTPPSBeamParameters.cc:70
CTPPSBeamParameters::setVtxOffsetT56
void setVtxOffsetT56(double offset)
Definition: CTPPSBeamParameters.cc:114
CTPPSBeamParameters::vtx_offset_y_45_
double vtx_offset_y_45_
Definition: CTPPSBeamParameters.h:115
CTPPSBeamParameters::setHalfXangleY56
void setHalfXangleY56(double angle)
Definition: CTPPSBeamParameters.cc:105
CTPPSBeamParameters::beam_momentum_56_
double beam_momentum_56_
Definition: CTPPSBeamParameters.h:102
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CTPPSBeamParameters::getBeamMom56
double getBeamMom56() const
Definition: CTPPSBeamParameters.cc:56
CTPPSBeamParameters::beam_divergence_y_56_
double beam_divergence_y_56_
Definition: CTPPSBeamParameters.h:108
CTPPSBeamParameters::getBetaStarX56
double getBetaStarX56() const
Definition: CTPPSBeamParameters.cc:60
CTPPSBeamParameters::setVtxOffsetZ45
void setVtxOffsetZ45(double offset)
Definition: CTPPSBeamParameters.cc:109
CTPPSBeamParameters::getHalfXangleX45
double getHalfXangleX45() const
Definition: CTPPSBeamParameters.cc:68
CTPPSBeamParameters::setVtxOffsetY45
void setVtxOffsetY45(double offset)
Definition: CTPPSBeamParameters.cc:108
operator<<
std::ostream & operator<<(std::ostream &, CTPPSBeamParameters)
Definition: CTPPSBeamParameters.cc:151
CTPPSBeamParameters::setVtxStddevY
void setVtxStddevY(double stddev)
Definition: CTPPSBeamParameters.cc:117
CTPPSBeamParameters::~CTPPSBeamParameters
~CTPPSBeamParameters()
Definition: CTPPSBeamParameters.cc:51
CTPPSBeamParameters::getBetaStarY45
double getBetaStarY45() const
Definition: CTPPSBeamParameters.cc:59
CTPPSBeamParameters::getVtxOffsetT56
double getVtxOffsetT56() const
Definition: CTPPSBeamParameters.cc:80
CTPPSBeamParameters::getVtxOffsetX56
double getVtxOffsetX56() const
Definition: CTPPSBeamParameters.cc:77
CTPPSBeamParameters::CTPPSBeamParameters
CTPPSBeamParameters()
Definition: CTPPSBeamParameters.cc:22
CTPPSBeamParameters::getVtxOffsetZ56
double getVtxOffsetZ56() const
Definition: CTPPSBeamParameters.cc:79
CTPPSBeamParameters::setBeamDivergenceY56
void setBeamDivergenceY56(double div)
Definition: CTPPSBeamParameters.cc:100
CTPPSBeamParameters::getBeamDivergenceY45
double getBeamDivergenceY45() const
Definition: CTPPSBeamParameters.cc:64
CTPPSBeamParameters::setBeamMom56
void setBeamMom56(double mom)
Definition: CTPPSBeamParameters.cc:90
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CTPPSBeamParameters::getVtxOffsetZ45
double getVtxOffsetZ45() const
Definition: CTPPSBeamParameters.cc:75
CTPPSBeamParameters::getHalfXangleY56
double getHalfXangleY56() const
Definition: CTPPSBeamParameters.cc:71
CTPPSBeamParameters::getBeamDivergenceY56
double getBeamDivergenceY56() const
Definition: CTPPSBeamParameters.cc:66
CTPPSBeamParameters::beta_star_x_45_
double beta_star_x_45_
Definition: CTPPSBeamParameters.h:104
CTPPSBeamParameters::getBeamDivergenceX45
double getBeamDivergenceX45() const
Definition: CTPPSBeamParameters.cc:63
CTPPSBeamParameters::beta_star_y_56_
double beta_star_y_56_
Definition: CTPPSBeamParameters.h:105
CTPPSBeamParameters::setVtxOffsetT45
void setVtxOffsetT45(double offset)
Definition: CTPPSBeamParameters.cc:110
CTPPSBeamParameters::vtx_offset_z_45_
double vtx_offset_z_45_
Definition: CTPPSBeamParameters.h:116
CTPPSBeamParameters::setBetaStarY56
void setBetaStarY56(double beta)
Definition: CTPPSBeamParameters.cc:95
CTPPSBeamParameters::setHalfXangleY45
void setHalfXangleY45(double angle)
Definition: CTPPSBeamParameters.cc:103
CTPPSBeamParameters::getVtxOffsetY56
double getVtxOffsetY56() const
Definition: CTPPSBeamParameters.cc:78
CTPPSBeamParameters::getBeamDivergenceX56
double getBeamDivergenceX56() const
Definition: CTPPSBeamParameters.cc:65
CTPPSBeamParameters::half_crossing_angle_x_45_
double half_crossing_angle_x_45_
Definition: CTPPSBeamParameters.h:110
CTPPSBeamParameters::getVtxOffsetY45
double getVtxOffsetY45() const
Definition: CTPPSBeamParameters.cc:74
CTPPSBeamParameters::vtx_offset_x_45_
double vtx_offset_x_45_
Definition: CTPPSBeamParameters.h:114
CTPPSBeamParameters::vtx_offset_t_45_
double vtx_offset_t_45_
Definition: CTPPSBeamParameters.h:117
Serializable.h
CTPPSBeamParameters::half_crossing_angle_y_45_
double half_crossing_angle_y_45_
Definition: CTPPSBeamParameters.h:111
CTPPSBeamParameters::setBeamMom45
void setBeamMom45(double mom)
Definition: CTPPSBeamParameters.cc:89
CTPPSBeamParameters::getBeamMom45
double getBeamMom45() const
Definition: CTPPSBeamParameters.cc:55
CTPPSBeamParameters::setBeamDivergenceX56
void setBeamDivergenceX56(double div)
Definition: CTPPSBeamParameters.cc:99
CTPPSBeamParameters::getVtxOffsetX45
double getVtxOffsetX45() const
Definition: CTPPSBeamParameters.cc:73
CTPPSBeamParameters::vtx_offset_x_56_
double vtx_offset_x_56_
Definition: CTPPSBeamParameters.h:114
CTPPSBeamParameters::setVtxOffsetX56
void setVtxOffsetX56(double offset)
Definition: CTPPSBeamParameters.cc:111
CTPPSBeamParameters::getBetaStarY56
double getBetaStarY56() const
Definition: CTPPSBeamParameters.cc:61
CTPPSBeamParameters::setBeamDivergenceY45
void setBeamDivergenceY45(double div)
Definition: CTPPSBeamParameters.cc:98
CTPPSBeamParameters::half_crossing_angle_x_56_
double half_crossing_angle_x_56_
Definition: CTPPSBeamParameters.h:110
CTPPSBeamParameters::setVtxOffsetZ56
void setVtxOffsetZ56(double offset)
Definition: CTPPSBeamParameters.cc:113
CTPPSBeamParameters::beta_star_x_56_
double beta_star_x_56_
Definition: CTPPSBeamParameters.h:104
CTPPSBeamParameters::getVtxStddevZ
double getVtxStddevZ() const
Definition: CTPPSBeamParameters.cc:84
CTPPSBeamParameters::vtx_stddev_t_
double vtx_stddev_t_
Definition: CTPPSBeamParameters.h:124
CTPPSBeamParameters::setVtxOffsetX45
void setVtxOffsetX45(double offset)
Definition: CTPPSBeamParameters.cc:107
CTPPSBeamParameters::vtx_offset_z_56_
double vtx_offset_z_56_
Definition: CTPPSBeamParameters.h:116
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
CTPPSBeamParameters::getVtxOffsetT45
double getVtxOffsetT45() const
Definition: CTPPSBeamParameters.cc:76
CTPPSBeamParameters::beta_star_y_45_
double beta_star_y_45_
Definition: CTPPSBeamParameters.h:105
CTPPSBeamParameters::getVtxStddevT
double getVtxStddevT() const
Definition: CTPPSBeamParameters.cc:85
CTPPSBeamParameters::beam_divergence_x_56_
double beam_divergence_x_56_
Definition: CTPPSBeamParameters.h:107
CTPPSBeamParameters::setBetaStarY45
void setBetaStarY45(double beta)
Definition: CTPPSBeamParameters.cc:93
CTPPSBeamParameters::getVtxStddevX
double getVtxStddevX() const
Definition: CTPPSBeamParameters.cc:82
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
CTPPSBeamParameters::beam_momentum_45_
double beam_momentum_45_
Definition: CTPPSBeamParameters.h:101
CTPPSBeamParameters::setHalfXangleX45
void setHalfXangleX45(double angle)
Definition: CTPPSBeamParameters.cc:102
CTPPSBeamParameters::vtx_offset_t_56_
double vtx_offset_t_56_
Definition: CTPPSBeamParameters.h:117
CTPPSBeamParameters::setBeamDivergenceX45
void setBeamDivergenceX45(double div)
Definition: CTPPSBeamParameters.cc:97
CTPPSBeamParameters::setBetaStarX56
void setBetaStarX56(double beta)
Definition: CTPPSBeamParameters.cc:94
CTPPSBeamParameters::setVtxStddevZ
void setVtxStddevZ(double stddev)
Definition: CTPPSBeamParameters.cc:118
CTPPSBeamParameters::vtx_offset_y_56_
double vtx_offset_y_56_
Definition: CTPPSBeamParameters.h:115
CTPPSBeamParameters::getBetaStarX45
double getBetaStarX45() const
Definition: CTPPSBeamParameters.cc:58