ATLAS Offline Software
Loading...
Searching...
No Matches
BunchCrossingAverageCondData Class Reference

#include <BunchCrossingAverageCondData.h>

Collaboration diagram for BunchCrossingAverageCondData:

Public Types

enum  BunchCrossingType {
  Empty = 0 , FirstEmpty = 1 , MiddleEmpty = 2 , Single = 100 ,
  Front = 200 , Middle = 201 , Tail = 202 , Unpaired = 300
}
 Enumeration type for a given bunch crossing. More...
enum  BunchDistanceType { NanoSec , BunchCrossings , FilledBunches }
typedef unsigned int bcid_type

Public Member Functions

float GetBeam1Intensity (int channel) const
float GetBeam2Intensity (int channel) const
float GetBeam1IntensityAll (int channel) const
float GetBeam2IntensityAll (int channel) const
float GetBeam1IntensitySTD (int channel) const
float GetBeam2IntensitySTD (int channel) const
float GetBeam1IntensityAllSTD (int channel) const
float GetBeam2IntensityAllSTD (int channel) const
unsigned long long GetRunLB () const
void SetBeam1Intensity (float Beam1Intensity, int channel)
void SetBeam2Intensity (float Beam2Intensity, int channel)
void SetBeam1IntensityAll (float Beam1IntensityAll, int channel)
void SetBeam2IntensityAll (float Beam2IntensityAll, int channel)
void SetBeam1IntensitySTD (float Beam1IntensitySTD, int channel)
void SetBeam2IntensitySTD (float Beam2IntensitySTD, int channel)
void SetBeam1IntensityAllSTD (float Beam1IntensityAllSTD, int channel)
void SetBeam2IntensityAllSTD (float Beam2IntensityAllSTD, int channel)
void SetRunLB (unsigned long long RunLB)

Static Public Attributes

static constexpr int m_MAX_BCID =3564
static constexpr int m_BUNCH_SPACING = 25

Private Attributes

float m_beam1IntensityAll
float m_beam2IntensityAll
float m_beam1IntensityAll_fBCT
float m_beam2IntensityAll_fBCT
float m_beam1IntensityAll_DCCT
float m_beam2IntensityAll_DCCT
float m_beam1IntensityAll_DCCT24
float m_beam2IntensityAll_DCCT24
float m_beam1Intensity
float m_beam2Intensity
float m_beam1Intensity_fBCT
float m_beam2Intensity_fBCT
float m_beam1Intensity_DCCT
float m_beam2Intensity_DCCT
float m_beam1Intensity_DCCT24
float m_beam2Intensity_DCCT24
float m_beam1IntensityAllSTD
float m_beam2IntensityAllSTD
float m_beam1IntensityAllSTD_fBCT
float m_beam2IntensityAllSTD_fBCT
float m_beam1IntensityAllSTD_DCCT
float m_beam2IntensityAllSTD_DCCT
float m_beam1IntensityAllSTD_DCCT24
float m_beam2IntensityAllSTD_DCCT24
float m_beam1IntensitySTD
float m_beam2IntensitySTD
float m_beam1IntensitySTD_fBCT
float m_beam2IntensitySTD_fBCT
float m_beam1IntensitySTD_DCCT
float m_beam2IntensitySTD_DCCT
float m_beam1IntensitySTD_DCCT24
float m_beam2IntensitySTD_DCCT24
unsigned long long m_RunLB

Static Private Attributes

static const int m_headTailLength = 300

Friends

class BunchCrossingAverageCondAlg

Detailed Description

Definition at line 23 of file BunchCrossingAverageCondData.h.

Member Typedef Documentation

◆ bcid_type

Definition at line 27 of file BunchCrossingAverageCondData.h.

Member Enumeration Documentation

◆ BunchCrossingType

Enumeration type for a given bunch crossing.

This enumeration can specify what kind of bunch crossing one BCID belongs to. The types could easily be extended later on.

Enumerator
Empty 

An empty bunch far away from filled bunches.

FirstEmpty 

The first empty bunch after a train.

MiddleEmpty 

An empty BCID in the middle of a train.

Single 

This is a filled, single bunch (not in a train)

Front 

The BCID belongs to the first few bunches in a train.

Middle 

The BCID belongs to the middle bunches in a train.

Tail 

The BCID belongs to the last few bunces in a train.

Unpaired 

This is an unpaired bunch (either beam1 or beam2)

Definition at line 75 of file BunchCrossingAverageCondData.h.

76 {
77 Empty = 0,
78 FirstEmpty = 1,
79 MiddleEmpty = 2,
80 Single = 100,
81 Front = 200,
82 Middle = 201,
83 Tail = 202,
84 Unpaired = 300
85 };
@ Unpaired
This is an unpaired bunch (either beam1 or beam2)
@ Empty
An empty bunch far away from filled bunches.
@ FirstEmpty
The first empty bunch after a train.
@ Middle
The BCID belongs to the middle bunches in a train.
@ Front
The BCID belongs to the first few bunches in a train.
@ Single
This is a filled, single bunch (not in a train)
@ MiddleEmpty
An empty BCID in the middle of a train.
@ Tail
The BCID belongs to the last few bunces in a train.

◆ BunchDistanceType

Enumerator
NanoSec 

Distance in nanoseconds.

BunchCrossings 

Distance in units of 25 nanoseconds.

FilledBunches 

Distance in units of filled bunches (depends on filling scheme)

Definition at line 88 of file BunchCrossingAverageCondData.h.

88 {
89 NanoSec,
93 };
@ BunchCrossings
Distance in units of 25 nanoseconds.
@ FilledBunches
Distance in units of filled bunches (depends on filling scheme)

Member Function Documentation

◆ GetBeam1Intensity()

float BunchCrossingAverageCondData::GetBeam1Intensity ( int channel) const

Definition at line 40 of file BunchCrossingAverageCondData.cxx.

40 {
41 // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
42 if(channel==0)
43 return m_beam1Intensity;
44 else if(channel==1)
46 else if(channel==2)
48 else if(channel==3)
50 else return 0;
51
52}

◆ GetBeam1IntensityAll()

float BunchCrossingAverageCondData::GetBeam1IntensityAll ( int channel) const

Definition at line 10 of file BunchCrossingAverageCondData.cxx.

10 {
11 // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
12 if(channel==0)
14 else if(channel==1)
16 else if(channel==2)
18 else if(channel==3)
20 else return 0;
21
22}

◆ GetBeam1IntensityAllSTD()

float BunchCrossingAverageCondData::GetBeam1IntensityAllSTD ( int channel) const

Definition at line 74 of file BunchCrossingAverageCondData.cxx.

74 {
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}

◆ GetBeam1IntensitySTD()

float BunchCrossingAverageCondData::GetBeam1IntensitySTD ( int channel) const

Definition at line 104 of file BunchCrossingAverageCondData.cxx.

104 {
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}

◆ GetBeam2Intensity()

float BunchCrossingAverageCondData::GetBeam2Intensity ( int channel) const

Definition at line 55 of file BunchCrossingAverageCondData.cxx.

55 {
56 // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
57 if(channel==0)
58 return m_beam2Intensity;
59 else if(channel==1)
61 else if(channel==2)
63 else if(channel==3)
65 else return 0;
66
67}

◆ GetBeam2IntensityAll()

float BunchCrossingAverageCondData::GetBeam2IntensityAll ( int channel) const

Definition at line 25 of file BunchCrossingAverageCondData.cxx.

25 {
26 // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
27 if(channel==0)
29 else if(channel==1)
31 else if(channel==2)
33 else if(channel==3)
35 else return 0;
36
37}

◆ GetBeam2IntensityAllSTD()

float BunchCrossingAverageCondData::GetBeam2IntensityAllSTD ( int channel) const

Definition at line 89 of file BunchCrossingAverageCondData.cxx.

89 {
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}

◆ GetBeam2IntensitySTD()

float BunchCrossingAverageCondData::GetBeam2IntensitySTD ( int channel) const

Definition at line 119 of file BunchCrossingAverageCondData.cxx.

119 {
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}

◆ GetRunLB()

unsigned long long BunchCrossingAverageCondData::GetRunLB ( ) const

Definition at line 133 of file BunchCrossingAverageCondData.cxx.

133 {
134 // if (ATH_UNLIKELY(bcid>=m_MAX_BCID)) return false;
135 return m_RunLB;
136}

◆ SetBeam1Intensity()

void BunchCrossingAverageCondData::SetBeam1Intensity ( float Beam1Intensity,
int channel )

Definition at line 172 of file BunchCrossingAverageCondData.cxx.

172 {
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}

◆ SetBeam1IntensityAll()

void BunchCrossingAverageCondData::SetBeam1IntensityAll ( float Beam1IntensityAll,
int channel )

Definition at line 145 of file BunchCrossingAverageCondData.cxx.

145 {
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}

◆ SetBeam1IntensityAllSTD()

void BunchCrossingAverageCondData::SetBeam1IntensityAllSTD ( float Beam1IntensityAllSTD,
int channel )

Definition at line 199 of file BunchCrossingAverageCondData.cxx.

199 {
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}

◆ SetBeam1IntensitySTD()

void BunchCrossingAverageCondData::SetBeam1IntensitySTD ( float Beam1IntensitySTD,
int channel )

Definition at line 226 of file BunchCrossingAverageCondData.cxx.

226 {
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}

◆ SetBeam2Intensity()

void BunchCrossingAverageCondData::SetBeam2Intensity ( float Beam2Intensity,
int channel )

Definition at line 185 of file BunchCrossingAverageCondData.cxx.

185 {
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}

◆ SetBeam2IntensityAll()

void BunchCrossingAverageCondData::SetBeam2IntensityAll ( float Beam2IntensityAll,
int channel )

Definition at line 158 of file BunchCrossingAverageCondData.cxx.

158 {
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}

◆ SetBeam2IntensityAllSTD()

void BunchCrossingAverageCondData::SetBeam2IntensityAllSTD ( float Beam2IntensityAllSTD,
int channel )

Definition at line 212 of file BunchCrossingAverageCondData.cxx.

212 {
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}

◆ SetBeam2IntensitySTD()

void BunchCrossingAverageCondData::SetBeam2IntensitySTD ( float Beam2IntensitySTD,
int channel )

Definition at line 239 of file BunchCrossingAverageCondData.cxx.

239 {
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}

◆ SetRunLB()

void BunchCrossingAverageCondData::SetRunLB ( unsigned long long RunLB)

Definition at line 250 of file BunchCrossingAverageCondData.cxx.

250 {
251 m_RunLB = RunLB;
252}

◆ BunchCrossingAverageCondAlg

friend class BunchCrossingAverageCondAlg
friend

Definition at line 99 of file BunchCrossingAverageCondData.h.

Member Data Documentation

◆ m_beam1Intensity

float BunchCrossingAverageCondData::m_beam1Intensity
private

Definition at line 114 of file BunchCrossingAverageCondData.h.

◆ m_beam1Intensity_DCCT

float BunchCrossingAverageCondData::m_beam1Intensity_DCCT
private

Definition at line 118 of file BunchCrossingAverageCondData.h.

◆ m_beam1Intensity_DCCT24

float BunchCrossingAverageCondData::m_beam1Intensity_DCCT24
private

Definition at line 120 of file BunchCrossingAverageCondData.h.

◆ m_beam1Intensity_fBCT

float BunchCrossingAverageCondData::m_beam1Intensity_fBCT
private

Definition at line 116 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAll

float BunchCrossingAverageCondData::m_beam1IntensityAll
private

Definition at line 105 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAll_DCCT

float BunchCrossingAverageCondData::m_beam1IntensityAll_DCCT
private

Definition at line 109 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAll_DCCT24

float BunchCrossingAverageCondData::m_beam1IntensityAll_DCCT24
private

Definition at line 111 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAll_fBCT

float BunchCrossingAverageCondData::m_beam1IntensityAll_fBCT
private

Definition at line 107 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAllSTD

float BunchCrossingAverageCondData::m_beam1IntensityAllSTD
private

Definition at line 124 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAllSTD_DCCT

float BunchCrossingAverageCondData::m_beam1IntensityAllSTD_DCCT
private

Definition at line 128 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAllSTD_DCCT24

float BunchCrossingAverageCondData::m_beam1IntensityAllSTD_DCCT24
private

Definition at line 130 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensityAllSTD_fBCT

float BunchCrossingAverageCondData::m_beam1IntensityAllSTD_fBCT
private

Definition at line 126 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensitySTD

float BunchCrossingAverageCondData::m_beam1IntensitySTD
private

Definition at line 133 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensitySTD_DCCT

float BunchCrossingAverageCondData::m_beam1IntensitySTD_DCCT
private

Definition at line 137 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensitySTD_DCCT24

float BunchCrossingAverageCondData::m_beam1IntensitySTD_DCCT24
private

Definition at line 139 of file BunchCrossingAverageCondData.h.

◆ m_beam1IntensitySTD_fBCT

float BunchCrossingAverageCondData::m_beam1IntensitySTD_fBCT
private

Definition at line 135 of file BunchCrossingAverageCondData.h.

◆ m_beam2Intensity

float BunchCrossingAverageCondData::m_beam2Intensity
private

Definition at line 115 of file BunchCrossingAverageCondData.h.

◆ m_beam2Intensity_DCCT

float BunchCrossingAverageCondData::m_beam2Intensity_DCCT
private

Definition at line 119 of file BunchCrossingAverageCondData.h.

◆ m_beam2Intensity_DCCT24

float BunchCrossingAverageCondData::m_beam2Intensity_DCCT24
private

Definition at line 121 of file BunchCrossingAverageCondData.h.

◆ m_beam2Intensity_fBCT

float BunchCrossingAverageCondData::m_beam2Intensity_fBCT
private

Definition at line 117 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAll

float BunchCrossingAverageCondData::m_beam2IntensityAll
private

Definition at line 106 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAll_DCCT

float BunchCrossingAverageCondData::m_beam2IntensityAll_DCCT
private

Definition at line 110 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAll_DCCT24

float BunchCrossingAverageCondData::m_beam2IntensityAll_DCCT24
private

Definition at line 112 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAll_fBCT

float BunchCrossingAverageCondData::m_beam2IntensityAll_fBCT
private

Definition at line 108 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAllSTD

float BunchCrossingAverageCondData::m_beam2IntensityAllSTD
private

Definition at line 125 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAllSTD_DCCT

float BunchCrossingAverageCondData::m_beam2IntensityAllSTD_DCCT
private

Definition at line 129 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAllSTD_DCCT24

float BunchCrossingAverageCondData::m_beam2IntensityAllSTD_DCCT24
private

Definition at line 131 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensityAllSTD_fBCT

float BunchCrossingAverageCondData::m_beam2IntensityAllSTD_fBCT
private

Definition at line 127 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensitySTD

float BunchCrossingAverageCondData::m_beam2IntensitySTD
private

Definition at line 134 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensitySTD_DCCT

float BunchCrossingAverageCondData::m_beam2IntensitySTD_DCCT
private

Definition at line 138 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensitySTD_DCCT24

float BunchCrossingAverageCondData::m_beam2IntensitySTD_DCCT24
private

Definition at line 140 of file BunchCrossingAverageCondData.h.

◆ m_beam2IntensitySTD_fBCT

float BunchCrossingAverageCondData::m_beam2IntensitySTD_fBCT
private

Definition at line 136 of file BunchCrossingAverageCondData.h.

◆ m_BUNCH_SPACING

int BunchCrossingAverageCondData::m_BUNCH_SPACING = 25
staticconstexpr

Definition at line 29 of file BunchCrossingAverageCondData.h.

◆ m_headTailLength

const int BunchCrossingAverageCondData::m_headTailLength = 300
staticprivate

Definition at line 142 of file BunchCrossingAverageCondData.h.

◆ m_MAX_BCID

int BunchCrossingAverageCondData::m_MAX_BCID =3564
staticconstexpr

Definition at line 28 of file BunchCrossingAverageCondData.h.

◆ m_RunLB

unsigned long long BunchCrossingAverageCondData::m_RunLB
private

Definition at line 141 of file BunchCrossingAverageCondData.h.


The documentation for this class was generated from the following files: