ATLAS Offline Software
BunchCrossingIntensityCondData.cxx
Go to the documentation of this file.
3 #include <algorithm>
4 
5 
6 
8  if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return 0;
9  if (channel==0)
10  return m_beam1Intensity.at(bcid);
11  else if (channel==1)
12  return m_beam1Intensity_fBCT.at(bcid);
13  else
14  return 0;
15 }
16 
17 
19  if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return 0;
20  if (channel==0)
21  return m_beam2Intensity.at(bcid);
22  else if (channel==1)
23  return m_beam2Intensity_fBCT.at(bcid);
24  else
25  return 0;
26 }
27 
28 
29 
30 
31 
33  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
34  if(channel==0)
35  return m_beam1Intensity;
36  // else if(channel==1)
37  else
38  return m_beam1Intensity_fBCT;
39 
40 }
41 
42 
44  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
45  if(channel==0)
46  return m_beam2Intensity;
47  else //if(channel==1)
48  return m_beam2Intensity_fBCT;
49 
50 }
51 
52 
54  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
55  if(channel==0)
56  return m_beam1IntensityAll;
57  else if(channel==1)
59  else return 0;
60 
61 }
62 
63 
65  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
66  if(channel==0)
67  return m_beam2IntensityAll;
68  else if(channel==1)
70  else return 0;
71 
72 }
73 
74 
75 unsigned long long BunchCrossingIntensityCondData::GetRunLB() const {
76  // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
77  return m_RunLB;
78 }
79 
80 
81 
82 
83 
84 
85 
87  if (channel==0)
88  m_beam1Intensity = std::move(val);
89  else if (channel==1)
90  m_beam1Intensity_fBCT = std::move(val);
91 }
92 
93 
95  if (channel==0)
96  m_beam2Intensity = std::move(val);
97  else if (channel==1)
98  m_beam2Intensity_fBCT = std::move(val);
99 }
100 
101 
103  if(channel==0)
104  m_beam1IntensityAll = Beam1IntensityAll;
105  else if(channel==1)
106  m_beam1IntensityAll_fBCT = Beam1IntensityAll;
107 }
108 
109 
111  if(channel==0)
112  m_beam2IntensityAll = Beam2IntensityAll;
113  else if(channel==1)
114  m_beam2IntensityAll_fBCT = Beam2IntensityAll;
115 }
116 
117 
118 void BunchCrossingIntensityCondData::SetRunLB( unsigned long long RunLB) {
119  m_RunLB = RunLB;
120 }
121 
BunchCrossingIntensityCondData::m_beam2Intensity
std::vector< float > m_beam2Intensity
Definition: BunchCrossingIntensityCondData.h:94
BunchCrossingIntensityCondData::setBeam2IntensityPerBCIDVector
void setBeam2IntensityPerBCIDVector(std::vector< float > &&val, int channel)
Definition: BunchCrossingIntensityCondData.cxx:94
BunchCrossingIntensityCondData::GetBeam2IntensityPerBCIDVector
const std::vector< float > & GetBeam2IntensityPerBCIDVector(int channel) const
Definition: BunchCrossingIntensityCondData.cxx:43
BunchCrossingIntensityCondData::m_beam1Intensity
std::vector< float > m_beam1Intensity
Definition: BunchCrossingIntensityCondData.h:93
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
BunchCrossingIntensityCondData::GetBeam1IntensityBCID
float GetBeam1IntensityBCID(const bcid_type bcid, int channel) const
Definition: BunchCrossingIntensityCondData.cxx:7
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
BunchCrossingIntensityCondData::m_beam1IntensityAll
float m_beam1IntensityAll
Definition: BunchCrossingIntensityCondData.h:99
BunchCrossingIntensityCondData::m_beam2IntensityAll_fBCT
float m_beam2IntensityAll_fBCT
Definition: BunchCrossingIntensityCondData.h:102
BunchCrossingIntensityCondData.h
Adding more information about Bunch Current Intensities (for Lumi studies)
BunchCrossingIntensityCondData::GetBeam2IntensityAll
float GetBeam2IntensityAll(int channel) const
Definition: BunchCrossingIntensityCondData.cxx:64
BunchCrossingIntensityCondData::m_beam1IntensityAll_fBCT
float m_beam1IntensityAll_fBCT
Definition: BunchCrossingIntensityCondData.h:101
BunchCrossingIntensityCondData::m_beam2IntensityAll
float m_beam2IntensityAll
Definition: BunchCrossingIntensityCondData.h:100
ATH_UNLIKELY
#define ATH_UNLIKELY(x)
Definition: AthUnlikelyMacros.h:17
BunchCrossingIntensityCondData::SetRunLB
void SetRunLB(unsigned long long RunLB)
Definition: BunchCrossingIntensityCondData.cxx:118
BunchCrossingIntensityCondData::m_RunLB
unsigned long long m_RunLB
Definition: BunchCrossingIntensityCondData.h:104
BunchCrossingIntensityCondData::bcid_type
unsigned int bcid_type
Definition: BunchCrossingIntensityCondData.h:27
BunchCrossingIntensityCondData::SetBeam1IntensityAll
void SetBeam1IntensityAll(float Beam1IntensityAll, int channel)
Definition: BunchCrossingIntensityCondData.cxx:102
BunchCrossingIntensityCondData::GetRunLB
unsigned long long GetRunLB() const
Definition: BunchCrossingIntensityCondData.cxx:75
BunchCrossingIntensityCondData::m_beam1Intensity_fBCT
std::vector< float > m_beam1Intensity_fBCT
Definition: BunchCrossingIntensityCondData.h:96
BunchCrossingIntensityCondData::setBeam1IntensityPerBCIDVector
void setBeam1IntensityPerBCIDVector(std::vector< float > &&val, int channel)
Definition: BunchCrossingIntensityCondData.cxx:86
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
BunchCrossingIntensityCondData::GetBeam1IntensityAll
float GetBeam1IntensityAll(int channel) const
Definition: BunchCrossingIntensityCondData.cxx:53
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
BunchCrossingIntensityCondData::m_beam2Intensity_fBCT
std::vector< float > m_beam2Intensity_fBCT
Definition: BunchCrossingIntensityCondData.h:97
BunchCrossingIntensityCondData::SetBeam2IntensityAll
void SetBeam2IntensityAll(float Beam2IntensityAll, int channel)
Definition: BunchCrossingIntensityCondData.cxx:110
BunchCrossingIntensityCondData::m_MAX_BCID
static constexpr int m_MAX_BCID
Definition: BunchCrossingIntensityCondData.h:28
BunchCrossingIntensityCondData::GetBeam2IntensityBCID
float GetBeam2IntensityBCID(const bcid_type bcid, int channel) const
Definition: BunchCrossingIntensityCondData.cxx:18
BunchCrossingIntensityCondData::GetBeam1IntensityPerBCIDVector
const std::vector< float > & GetBeam1IntensityPerBCIDVector(int channel) const
Definition: BunchCrossingIntensityCondData.cxx:32