ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
CoolLumiUtilities
CoolLumiUtilities
BunchGroupCondData.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef COOLLUMIUTILITIES_BUNCHGROUPCONDDATA_H
14
#define COOLLUMIUTILITIES_BUNCHGROUPCONDDATA_H
15
16
17
#include "
AthenaKernel/CondCont.h
"
18
#include "
AthenaKernel/CLASS_DEF.h
"
19
#include <vector>
20
#include <stdint.h>
21
22
28
class
BunchGroupCondData
29
{
30
public
:
32
constexpr
static
unsigned
int
NBUNCHGROUPS
= 8;
33
35
constexpr
static
unsigned
int
NBCID
= 3564;
36
37
41
BunchGroupCondData
();
42
43
50
const
std::vector<unsigned int>&
bunchGroup
(
unsigned
int
group)
const
;
51
52
58
void
addBCID
(
unsigned
int
bcid, uint8_t mask);
59
60
64
void
shrink
();
65
66
67
private
:
69
std::vector<unsigned int>
m_bunchGroups
[
NBUNCHGROUPS
];
70
};
71
72
73
CLASS_DEF
(
BunchGroupCondData
, 212775257, 0)
74
CONDCONT_DEF
(
BunchGroupCondData
, 114859191);
75
76
77
#endif
// not COOLLUMIUTILITIES_BUNCHGROUPCONDDATA_H
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
BunchGroupCondData
Holds data on filled bunches.
Definition
BunchGroupCondData.h:29
BunchGroupCondData::shrink
void shrink()
Shrink all vectors to size.
Definition
BunchGroupCondData.cxx:62
BunchGroupCondData::NBCID
static constexpr unsigned int NBCID
Maximum size of BCID vectors.
Definition
BunchGroupCondData.h:35
BunchGroupCondData::m_bunchGroups
std::vector< unsigned int > m_bunchGroups[NBUNCHGROUPS]
BCIDs of filled bunches, per group.
Definition
BunchGroupCondData.h:69
BunchGroupCondData::BunchGroupCondData
BunchGroupCondData()
Constructor.
Definition
BunchGroupCondData.cxx:19
BunchGroupCondData::addBCID
void addBCID(unsigned int bcid, uint8_t mask)
Add informatin for one BCID.
Definition
BunchGroupCondData.cxx:49
BunchGroupCondData::NBUNCHGROUPS
static constexpr unsigned int NBUNCHGROUPS
Number of bunch groups.
Definition
BunchGroupCondData.h:32
BunchGroupCondData::bunchGroup
const std::vector< unsigned int > & bunchGroup(unsigned int group) const
Return filled BCIDs for one bunch group.
Definition
BunchGroupCondData.cxx:35
Generated on
for ATLAS Offline Software by
1.17.0