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 
24  public:
25 
26  // Constructor
28  // Destructor
30 
31  // Getters
32 
33  double getBeamMom45() const ;
34  double getBeamMom56() const ;
35 
36  double getBetaStarX45() const ;
37  double getBetaStarY45() const ;
38  double getBetaStarX56() const ;
39  double getBetaStarY56() const ;
40 
41  double getBeamDivergenceX45() const ;
42  double getBeamDivergenceY45() const ;
43  double getBeamDivergenceX56() const ;
44  double getBeamDivergenceY56() const ;
45 
46  double getHalfXangleX45() const ;
47  double getHalfXangleY45() const ;
48  double getHalfXangleX56() const ;
49  double getHalfXangleY56() const ;
50 
51  double getVtxOffsetX45() const ;
52  double getVtxOffsetY45() const ;
53  double getVtxOffsetZ45() const ;
54  double getVtxOffsetX56() const ;
55  double getVtxOffsetY56() const ;
56  double getVtxOffsetZ56() const ;
57 
58  double getVtxStddevX() const ;
59  double getVtxStddevY() const ;
60  double getVtxStddevZ() const ;
61 
62  // Setters
63 
64  void setBeamMom45( double mom ) ;
65  void setBeamMom56( double mom ) ;
66 
67  void setBetaStarX45( double beta ) ;
68  void setBetaStarY45( double beta ) ;
69  void setBetaStarX56( double beta ) ;
70  void setBetaStarY56( double beta ) ;
71 
72  void setBeamDivergenceX45( double div ) ;
73  void setBeamDivergenceY45( double div ) ;
74  void setBeamDivergenceX56( double div ) ;
75  void setBeamDivergenceY56( double div ) ;
76 
77  void setHalfXangleX45( double angle ) ;
78  void setHalfXangleY45( double angle ) ;
79  void setHalfXangleX56( double angle ) ;
80  void setHalfXangleY56( double angle ) ;
81 
82  void setVtxOffsetX45( double offset ) ;
83  void setVtxOffsetY45( double offset ) ;
84  void setVtxOffsetZ45( double offset ) ;
85  void setVtxOffsetX56( double offset ) ;
86  void setVtxOffsetY56( double offset ) ;
87  void setVtxOffsetZ56( double offset ) ;
88 
89  void setVtxStddevX( double stddev ) ;
90  void setVtxStddevY( double stddev ) ;
91  void setVtxStddevZ( double stddev ) ;
92 
93  void printInfo(std::stringstream & s) ;
94 
95 
96  private:
97 
98  // LHC sector 45 corresponds to beam 2, sector 56 to beam 1
99  double beam_momentum_45_ ; // GeV
100  double beam_momentum_56_ ; // GeV
101 
104 
107 
110 
111  // splitting between 45 and 56 may effectively account for magnet misalignment
115 
116  // the following variables might possibly be in another CMS record already,
117  // but we might want to keep them for completeness/independence
118  double vtx_stddev_x_ ; // cm
119  double vtx_stddev_y_ ; // cm
120  double vtx_stddev_z_ ; // cm
121 
122 
124 
125 };
126 
127 std::ostream & operator<<( std::ostream &, CTPPSBeamParameters );
128 
129 #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