ATLAS Offline Software
Loading...
Searching...
No Matches
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
19#include <vector>
20#include <stdint.h>
21
22
29{
30public:
32 constexpr static unsigned int NBUNCHGROUPS = 8;
33
35 constexpr static unsigned int NBCID = 3564;
36
37
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
67private:
69 std::vector<unsigned int> m_bunchGroups[NBUNCHGROUPS];
70};
71
72
73CLASS_DEF (BunchGroupCondData, 212775257, 0)
75
76
77#endif // not COOLLUMIUTILITIES_BUNCHGROUPCONDDATA_H
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Holds data on filled bunches.
void shrink()
Shrink all vectors to size.
static constexpr unsigned int NBCID
Maximum size of BCID vectors.
std::vector< unsigned int > m_bunchGroups[NBUNCHGROUPS]
BCIDs of filled bunches, per group.
BunchGroupCondData()
Constructor.
void addBCID(unsigned int bcid, uint8_t mask)
Add informatin for one BCID.
static constexpr unsigned int NBUNCHGROUPS
Number of bunch groups.
const std::vector< unsigned int > & bunchGroup(unsigned int group) const
Return filled BCIDs for one bunch group.