ATLAS Offline Software
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  */
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 
29 {
30 public:
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 
67 private:
69  std::vector<unsigned int> m_bunchGroups[NBUNCHGROUPS];
70 };
71 
72 
73 CLASS_DEF (BunchGroupCondData, 212775257, 0)
75 
76 
77 #endif // not COOLLUMIUTILITIES_BUNCHGROUPCONDDATA_H
BunchGroupCondData::addBCID
void addBCID(unsigned int bcid, uint8_t mask)
Add informatin for one BCID.
Definition: BunchGroupCondData.cxx:49
CondCont.h
Hold mappings of ranges to condition objects.
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
BunchGroupCondData::NBCID
constexpr static unsigned int NBCID
Maximum size of BCID vectors.
Definition: BunchGroupCondData.h:35
BunchGroupCondData::NBUNCHGROUPS
constexpr static unsigned int NBUNCHGROUPS
Number of bunch groups.
Definition: BunchGroupCondData.h:32
BunchGroupCondData
Holds data on filled bunches.
Definition: BunchGroupCondData.h:29
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
BunchGroupCondData::BunchGroupCondData
BunchGroupCondData()
Constructor.
Definition: BunchGroupCondData.cxx:19
BunchGroupCondData::m_bunchGroups
std::vector< unsigned int > m_bunchGroups[NBUNCHGROUPS]
BCIDs of filled bunches, per group.
Definition: BunchGroupCondData.h:69
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
BunchGroupCondData::bunchGroup
const std::vector< unsigned int > & bunchGroup(unsigned int group) const
Return filled BCIDs for one bunch group.
Definition: BunchGroupCondData.cxx:35
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
BunchGroupCondData::shrink
void shrink()
Shrink all vectors to size.
Definition: BunchGroupCondData.cxx:62
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:64
CONDCONT_DEF
CONDCONT_DEF(BunchGroupCondData, 114859191)
CLASS_DEF.h
macros to associate a CLID to a type