ATLAS Offline Software
BunchCrossingAverageCondData.cxx
Go to the documentation of this file.
3 #include <algorithm>
4 
5 
6 
7 
8 
9 
11  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
12  if(channel==0)
13  return m_beam1IntensityAll;
14  else if(channel==1)
16  else if(channel==2)
18  else if(channel==3)
20  else return 0;
21 
22 }
23 
24 
26  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
27  if(channel==0)
28  return m_beam2IntensityAll;
29  else if(channel==1)
31  else if(channel==2)
33  else if(channel==3)
35  else return 0;
36 
37 }
38 
39 
41  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
42  if(channel==0)
43  return m_beam1Intensity;
44  else if(channel==1)
45  return m_beam1Intensity_fBCT;
46  else if(channel==2)
47  return m_beam1Intensity_DCCT;
48  else if(channel==3)
50  else return 0;
51 
52 }
53 
54 
56  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
57  if(channel==0)
58  return m_beam2Intensity;
59  else if(channel==1)
60  return m_beam2Intensity_fBCT;
61  else if(channel==2)
62  return m_beam2Intensity_DCCT;
63  else if(channel==3)
65  else return 0;
66 
67 }
68 
69 
70 // errors
71 
72 
73 
75  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
76  if(channel==0)
78  else if(channel==1)
80  else if(channel==2)
82  else if(channel==3)
84  else return 0;
85 
86 }
87 
88 
90  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
91  if(channel==0)
93  else if(channel==1)
95  else if(channel==2)
97  else if(channel==3)
99  else return 0;
100 
101 }
102 
103 
105  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
106  if(channel==0)
107  return m_beam1IntensitySTD;
108  else if(channel==1)
110  else if(channel==2)
112  else if(channel==3)
114  else return 0;
115 
116 }
117 
118 
120  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
121  if(channel==0)
122  return m_beam2IntensitySTD;
123  else if(channel==1)
125  else if(channel==2)
127  else if(channel==3)
129  else return 0;
130 
131 }
132 
133 unsigned long long BunchCrossingAverageCondData::GetRunLB() const {
134  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
135  return m_RunLB;
136 }
137 
138 
139 
140 
141 
142 
143 
144 
146  if(channel==0)
147  m_beam1IntensityAll = Beam1IntensityAll;
148  else if(channel==1)
149  m_beam1IntensityAll_fBCT = Beam1IntensityAll;
150  else if(channel==2)
151  m_beam1IntensityAll_DCCT = Beam1IntensityAll;
152  else if(channel==3)
153  m_beam1IntensityAll_DCCT24= Beam1IntensityAll;
154 
155 }
156 
157 
159  if(channel==0)
160  m_beam2IntensityAll = Beam2IntensityAll;
161  else if(channel==1)
162  m_beam2IntensityAll_fBCT = Beam2IntensityAll;
163  else if(channel==2)
164  m_beam2IntensityAll_DCCT = Beam2IntensityAll;
165  else if(channel==3)
166  m_beam2IntensityAll_DCCT24= Beam2IntensityAll;
167 
168 }
169 
170 
171 
173  if(channel==0)
174  m_beam1Intensity = Beam1Intensity;
175  else if(channel==1)
176  m_beam1Intensity_fBCT = Beam1Intensity;
177  else if(channel==2)
178  m_beam1Intensity_DCCT = Beam1Intensity;
179  else if(channel==3)
180  m_beam1Intensity_DCCT24= Beam1Intensity;
181 
182 }
183 
184 
186  if(channel==0)
187  m_beam2Intensity = Beam2Intensity;
188  else if(channel==1)
189  m_beam2Intensity_fBCT = Beam2Intensity;
190  else if(channel==2)
191  m_beam2Intensity_DCCT = Beam2Intensity;
192  else if(channel==3)
193  m_beam2Intensity_DCCT24= Beam2Intensity;
194 
195 }
196 
197 // errors
198 
199 void BunchCrossingAverageCondData::SetBeam1IntensityAllSTD( float Beam1IntensityAllSTD,int channel) {
200  if(channel==0)
201  m_beam1IntensityAllSTD = Beam1IntensityAllSTD;
202  else if(channel==1)
203  m_beam1IntensityAllSTD_fBCT = Beam1IntensityAllSTD;
204  else if(channel==2)
205  m_beam1IntensityAllSTD_DCCT = Beam1IntensityAllSTD;
206  else if(channel==3)
207  m_beam1IntensityAllSTD_DCCT24= Beam1IntensityAllSTD;
208 
209 }
210 
211 
212 void BunchCrossingAverageCondData::SetBeam2IntensityAllSTD( float Beam2IntensityAllSTD,int channel) {
213  if(channel==0)
214  m_beam2IntensityAllSTD = Beam2IntensityAllSTD;
215  else if(channel==1)
216  m_beam2IntensityAllSTD_fBCT = Beam2IntensityAllSTD;
217  else if(channel==2)
218  m_beam2IntensityAllSTD_DCCT = Beam2IntensityAllSTD;
219  else if(channel==3)
220  m_beam2IntensityAllSTD_DCCT24= Beam2IntensityAllSTD;
221 
222 }
223 
224 
225 
227  if(channel==0)
228  m_beam1IntensitySTD = Beam1IntensitySTD;
229  else if(channel==1)
230  m_beam1IntensitySTD_fBCT = Beam1IntensitySTD;
231  else if(channel==2)
232  m_beam1IntensitySTD_DCCT = Beam1IntensitySTD;
233  else if(channel==3)
234  m_beam1IntensitySTD_DCCT24= Beam1IntensitySTD;
235 
236 }
237 
238 
240  if(channel==0)
241  m_beam2IntensitySTD = Beam2IntensitySTD;
242  else if(channel==1)
243  m_beam2IntensitySTD_fBCT = Beam2IntensitySTD;
244  else if(channel==2)
245  m_beam2IntensitySTD_DCCT = Beam2IntensitySTD;
246  else if(channel==3)
247  m_beam2IntensitySTD_DCCT24= Beam2IntensitySTD;
248 
249 }
250 void BunchCrossingAverageCondData::SetRunLB( unsigned long long RunLB) {
251  m_RunLB = RunLB;
252 }
253 
254 
BunchCrossingAverageCondData::SetBeam2IntensityAllSTD
void SetBeam2IntensityAllSTD(float Beam2IntensityAllSTD, int channel)
Definition: BunchCrossingAverageCondData.cxx:212
BunchCrossingAverageCondData::m_beam2IntensitySTD_DCCT
float m_beam2IntensitySTD_DCCT
Definition: BunchCrossingAverageCondData.h:138
BunchCrossingAverageCondData::m_beam1IntensitySTD_DCCT
float m_beam1IntensitySTD_DCCT
Definition: BunchCrossingAverageCondData.h:137
BunchCrossingAverageCondData::SetBeam1IntensitySTD
void SetBeam1IntensitySTD(float Beam1IntensitySTD, int channel)
Definition: BunchCrossingAverageCondData.cxx:226
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
BunchCrossingAverageCondData::m_beam2IntensitySTD
float m_beam2IntensitySTD
Definition: BunchCrossingAverageCondData.h:134
BunchCrossingAverageCondData::m_beam1IntensityAll
float m_beam1IntensityAll
Definition: BunchCrossingAverageCondData.h:105
BunchCrossingAverageCondData::m_beam1IntensityAllSTD_fBCT
float m_beam1IntensityAllSTD_fBCT
Definition: BunchCrossingAverageCondData.h:126
BunchCrossingAverageCondData::GetBeam1IntensitySTD
float GetBeam1IntensitySTD(int channel) const
Definition: BunchCrossingAverageCondData.cxx:104
BunchCrossingAverageCondData::SetBeam2Intensity
void SetBeam2Intensity(float Beam2Intensity, int channel)
Definition: BunchCrossingAverageCondData.cxx:185
BunchCrossingAverageCondData::m_beam2IntensityAll_fBCT
float m_beam2IntensityAll_fBCT
Definition: BunchCrossingAverageCondData.h:108
BunchCrossingAverageCondData::SetBeam1Intensity
void SetBeam1Intensity(float Beam1Intensity, int channel)
Definition: BunchCrossingAverageCondData.cxx:172
BunchCrossingAverageCondData::m_beam1IntensityAll_fBCT
float m_beam1IntensityAll_fBCT
Definition: BunchCrossingAverageCondData.h:107
BunchCrossingAverageCondData::SetBeam1IntensityAll
void SetBeam1IntensityAll(float Beam1IntensityAll, int channel)
Definition: BunchCrossingAverageCondData.cxx:145
BunchCrossingAverageCondData::m_beam1IntensityAllSTD_DCCT24
float m_beam1IntensityAllSTD_DCCT24
Definition: BunchCrossingAverageCondData.h:130
BunchCrossingAverageCondData::GetBeam1Intensity
float GetBeam1Intensity(int channel) const
Definition: BunchCrossingAverageCondData.cxx:40
BunchCrossingAverageCondData::GetBeam1IntensityAllSTD
float GetBeam1IntensityAllSTD(int channel) const
Definition: BunchCrossingAverageCondData.cxx:74
BunchCrossingAverageCondData::SetBeam2IntensityAll
void SetBeam2IntensityAll(float Beam2IntensityAll, int channel)
Definition: BunchCrossingAverageCondData.cxx:158
BunchCrossingAverageCondData::m_beam1IntensityAllSTD
float m_beam1IntensityAllSTD
Definition: BunchCrossingAverageCondData.h:124
BunchCrossingAverageCondData::m_beam1Intensity
float m_beam1Intensity
Definition: BunchCrossingAverageCondData.h:114
BunchCrossingAverageCondData::m_beam2Intensity_DCCT
float m_beam2Intensity_DCCT
Definition: BunchCrossingAverageCondData.h:119
BunchCrossingAverageCondData::m_beam2IntensityAllSTD
float m_beam2IntensityAllSTD
Definition: BunchCrossingAverageCondData.h:125
BunchCrossingAverageCondData::m_beam2Intensity
float m_beam2Intensity
Definition: BunchCrossingAverageCondData.h:115
BunchCrossingAverageCondData::m_beam2IntensitySTD_DCCT24
float m_beam2IntensitySTD_DCCT24
Definition: BunchCrossingAverageCondData.h:140
BunchCrossingAverageCondData::m_beam1Intensity_DCCT
float m_beam1Intensity_DCCT
Definition: BunchCrossingAverageCondData.h:118
BunchCrossingAverageCondData::m_beam1Intensity_DCCT24
float m_beam1Intensity_DCCT24
Definition: BunchCrossingAverageCondData.h:120
BunchCrossingAverageCondData::m_beam1IntensityAllSTD_DCCT
float m_beam1IntensityAllSTD_DCCT
Definition: BunchCrossingAverageCondData.h:128
BunchCrossingAverageCondData::GetBeam1IntensityAll
float GetBeam1IntensityAll(int channel) const
Definition: BunchCrossingAverageCondData.cxx:10
BunchCrossingAverageCondData::m_beam1IntensitySTD_fBCT
float m_beam1IntensitySTD_fBCT
Definition: BunchCrossingAverageCondData.h:135
BunchCrossingAverageCondData::m_beam1IntensitySTD
float m_beam1IntensitySTD
Definition: BunchCrossingAverageCondData.h:133
BunchCrossingAverageCondData::GetBeam2IntensityAllSTD
float GetBeam2IntensityAllSTD(int channel) const
Definition: BunchCrossingAverageCondData.cxx:89
BunchCrossingAverageCondData::m_beam1IntensityAll_DCCT
float m_beam1IntensityAll_DCCT
Definition: BunchCrossingAverageCondData.h:109
BunchCrossingAverageCondData::m_beam1Intensity_fBCT
float m_beam1Intensity_fBCT
Definition: BunchCrossingAverageCondData.h:116
BunchCrossingAverageCondData::GetBeam2IntensitySTD
float GetBeam2IntensitySTD(int channel) const
Definition: BunchCrossingAverageCondData.cxx:119
BunchCrossingAverageCondData::m_RunLB
unsigned long long m_RunLB
Definition: BunchCrossingAverageCondData.h:141
BunchCrossingAverageCondData::GetBeam2IntensityAll
float GetBeam2IntensityAll(int channel) const
Definition: BunchCrossingAverageCondData.cxx:25
BunchCrossingAverageCondData::SetRunLB
void SetRunLB(unsigned long long RunLB)
Definition: BunchCrossingAverageCondData.cxx:250
BunchCrossingAverageCondData::m_beam2IntensityAll_DCCT
float m_beam2IntensityAll_DCCT
Definition: BunchCrossingAverageCondData.h:110
BunchCrossingAverageCondData::m_beam2Intensity_DCCT24
float m_beam2Intensity_DCCT24
Definition: BunchCrossingAverageCondData.h:121
BunchCrossingAverageCondData::m_beam2IntensityAllSTD_DCCT
float m_beam2IntensityAllSTD_DCCT
Definition: BunchCrossingAverageCondData.h:129
BunchCrossingAverageCondData::m_beam1IntensityAll_DCCT24
float m_beam1IntensityAll_DCCT24
Definition: BunchCrossingAverageCondData.h:111
BunchCrossingAverageCondData::SetBeam1IntensityAllSTD
void SetBeam1IntensityAllSTD(float Beam1IntensityAllSTD, int channel)
Definition: BunchCrossingAverageCondData.cxx:199
BunchCrossingAverageCondData::m_beam2Intensity_fBCT
float m_beam2Intensity_fBCT
Definition: BunchCrossingAverageCondData.h:117
BunchCrossingAverageCondData::m_beam2IntensitySTD_fBCT
float m_beam2IntensitySTD_fBCT
Definition: BunchCrossingAverageCondData.h:136
BunchCrossingAverageCondData::SetBeam2IntensitySTD
void SetBeam2IntensitySTD(float Beam2IntensitySTD, int channel)
Definition: BunchCrossingAverageCondData.cxx:239
BunchCrossingAverageCondData.h
Adding more information about Bunch Current Intensities (for Lumi studies)
BunchCrossingAverageCondData::m_beam1IntensitySTD_DCCT24
float m_beam1IntensitySTD_DCCT24
Definition: BunchCrossingAverageCondData.h:139
BunchCrossingAverageCondData::GetRunLB
unsigned long long GetRunLB() const
Definition: BunchCrossingAverageCondData.cxx:133
BunchCrossingAverageCondData::m_beam2IntensityAll
float m_beam2IntensityAll
Definition: BunchCrossingAverageCondData.h:106
BunchCrossingAverageCondData::GetBeam2Intensity
float GetBeam2Intensity(int channel) const
Definition: BunchCrossingAverageCondData.cxx:55
BunchCrossingAverageCondData::m_beam2IntensityAllSTD_DCCT24
float m_beam2IntensityAllSTD_DCCT24
Definition: BunchCrossingAverageCondData.h:131
BunchCrossingAverageCondData::m_beam2IntensityAll_DCCT24
float m_beam2IntensityAll_DCCT24
Definition: BunchCrossingAverageCondData.h:112
BunchCrossingAverageCondData::m_beam2IntensityAllSTD_fBCT
float m_beam2IntensityAllSTD_fBCT
Definition: BunchCrossingAverageCondData.h:127