ATLAS Offline Software
Loading...
Searching...
No Matches
BunchCrossingIntensityCondData.cxx
Go to the documentation of this file.
3#include <algorithm>
4
5
6
8 if (bcid>=m_MAX_BCID) [[unlikely]] 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 (bcid>=m_MAX_BCID) [[unlikely]] 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
32const std::vector<float>& BunchCrossingIntensityCondData::GetBeam1IntensityPerBCIDVector(int channel) const {
33 if(channel==0)
34 return m_beam1Intensity;
35 // else if(channel==1)
36 else
38
39}
40
41
42const std::vector<float>& BunchCrossingIntensityCondData::GetBeam2IntensityPerBCIDVector(int channel) const {
43 if(channel==0)
44 return m_beam2Intensity;
45 else //if(channel==1)
47
48}
49
50
52 if(channel==0)
54 else if(channel==1)
56 else return 0;
57
58}
59
60
62 if(channel==0)
64 else if(channel==1)
66 else return 0;
67
68}
69
70
71unsigned long long BunchCrossingIntensityCondData::GetRunLB() const {
72 return m_RunLB;
73}
74
75
76
77
78
79
80
81void BunchCrossingIntensityCondData::setBeam1IntensityPerBCIDVector( std::vector<float>&& val,int channel) {
82 if (channel==0)
83 m_beam1Intensity = std::move(val);
84 else if (channel==1)
85 m_beam1Intensity_fBCT = std::move(val);
86}
87
88
89void BunchCrossingIntensityCondData::setBeam2IntensityPerBCIDVector( std::vector<float>&& val,int channel) {
90 if (channel==0)
91 m_beam2Intensity = std::move(val);
92 else if (channel==1)
93 m_beam2Intensity_fBCT = std::move(val);
94}
95
96
97void BunchCrossingIntensityCondData::SetBeam1IntensityAll( float Beam1IntensityAll,int channel) {
98 if(channel==0)
99 m_beam1IntensityAll = Beam1IntensityAll;
100 else if(channel==1)
101 m_beam1IntensityAll_fBCT = Beam1IntensityAll;
102}
103
104
105void BunchCrossingIntensityCondData::SetBeam2IntensityAll( float Beam2IntensityAll,int channel) {
106 if(channel==0)
107 m_beam2IntensityAll = Beam2IntensityAll;
108 else if(channel==1)
109 m_beam2IntensityAll_fBCT = Beam2IntensityAll;
110}
111
112
113void BunchCrossingIntensityCondData::SetRunLB( unsigned long long RunLB) {
114 m_RunLB = RunLB;
115}
116
Adding more information about Bunch Current Intensities (for Lumi studies).
const std::vector< float > & GetBeam1IntensityPerBCIDVector(int channel) const
float GetBeam2IntensityBCID(const bcid_type bcid, int channel) const
void setBeam1IntensityPerBCIDVector(std::vector< float > &&val, int channel)
void SetBeam1IntensityAll(float Beam1IntensityAll, int channel)
const std::vector< float > & GetBeam2IntensityPerBCIDVector(int channel) const
float GetBeam1IntensityBCID(const bcid_type bcid, int channel) const
void SetBeam2IntensityAll(float Beam2IntensityAll, int channel)
void setBeam2IntensityPerBCIDVector(std::vector< float > &&val, int channel)
singleton-like access to IMessageSvc via open function and helper
#define unlikely(x)