CMS 3D CMS Logo

LHCInfoPerLS.h
Go to the documentation of this file.
1 #ifndef CondFormats_RunInfo_LHCInfoPerLS_H
2 #define CondFormats_RunInfo_LHCInfoPerLS_H
3 
6 
8 
9 #include <bitset>
10 #include <iostream>
11 #include <string>
12 #include <sstream>
13 #include <vector>
14 
16 public:
20 
21  LHCInfoPerLS();
22 
23  //getters
24  unsigned short const fillNumber() const;
25 
26  unsigned int const& lumiSection() const;
27 
28  float const crossingAngleX() const;
29 
30  float const crossingAngleY() const;
31 
32  float const betaStarX() const;
33 
34  float const betaStarY() const;
35 
36  cond::Time_t runNumber() const;
37 
38  //setters
39  void setFillNumber(unsigned short const& lhcFill);
40 
41  void setLumiSection(unsigned int const& lumiSection);
42 
43  void setCrossingAngleX(float const& angle);
44 
45  void setCrossingAngleY(float const& angle);
46 
47  void setBetaStarX(float const& betaStar);
48 
49  void setBetaStarY(float const& betaStar);
50 
51  void setRunNumber(cond::Time_t const& runNumber);
52 
53  //sets all values in one go
54  void setInfo(unsigned short const& lhcFill,
55  unsigned int const& lumiSection,
56  float const& angleX,
57  float const& angleY,
58  float const& betaX,
59  float const& betaY,
60  cond::Time_t const& runNumber);
61 
62  bool equals(const LHCInfoPerLS& rhs) const;
63 
64  bool empty() const;
65 
66  //dumping values on output stream
67  void print(std::stringstream& ss) const;
68 
70 };
71 
72 std::ostream& operator<<(std::ostream&, LHCInfoPerLS lhcInfo);
73 
74 #endif // CondFormats_RunInfo_LHCInfoPerLS_H
void setFillNumber(unsigned short const &lhcFill)
Definition: LHCInfoPerLS.cc:26
cond::Time_t runNumber() const
Definition: LHCInfoPerLS.cc:23
void setCrossingAngleY(float const &angle)
Definition: LHCInfoPerLS.cc:38
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfoPerLS.cc:30
void setBetaStarX(float const &betaStar)
Definition: LHCInfoPerLS.cc:42
float const betaStarY() const
Definition: LHCInfoPerLS.cc:21
std::ostream & operator<<(std::ostream &, LHCInfoPerLS lhcInfo)
Definition: LHCInfoPerLS.cc:81
float const crossingAngleX() const
Definition: LHCInfoPerLS.cc:15
void setInfo(unsigned short const &lhcFill, unsigned int const &lumiSection, float const &angleX, float const &angleY, float const &betaX, float const &betaY, cond::Time_t const &runNumber)
Definition: LHCInfoPerLS.cc:55
unsigned long long Time_t
Definition: Time.h:14
bool empty() const
void setBetaStarY(float const &betaStar)
Definition: LHCInfoPerLS.cc:46
float const crossingAngleY() const
Definition: LHCInfoPerLS.cc:17
bool equals(const LHCInfoPerLS &rhs) const
Definition: LHCInfoPerLS.cc:88
void print(std::stringstream &ss) const
Definition: LHCInfoPerLS.cc:71
#define COND_SERIALIZABLE
Definition: Serializable.h:39
unsigned int const & lumiSection() const
Definition: LHCInfoPerLS.cc:13
void setCrossingAngleX(float const &angle)
Definition: LHCInfoPerLS.cc:34
void setRunNumber(cond::Time_t const &runNumber)
Definition: LHCInfoPerLS.cc:50
unsigned short const fillNumber() const
Definition: LHCInfoPerLS.cc:11
float const betaStarX() const
Definition: LHCInfoPerLS.cc:19
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11