|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCONFDATA_L1BUNCHGROUPSET_H
6 #define TRIGCONFDATA_L1BUNCHGROUPSET_H
38 virtual std::string
className()
const override {
return "L1BunchGroup"; }
43 std::size_t
size()
const;
52 std::vector<uint16_t>
bunches()
const;
92 virtual std::string
className()
const override {
return "L1BunchGroupSet"; }
101 const std::shared_ptr<L1BunchGroup> &
getBunchGroup(
const std::string &
name)
const;
104 const std::shared_ptr<L1BunchGroup> &
getBunchGroup(
size_t id)
const;
110 std::size_t
size()
const;
122 virtual void clear()
override;
145 #ifndef TRIGCONF_STANDALONE
146 #ifndef XAOD_STANDALONE
151 #include "AthenaKernel/CondCont.h"
const ptree & data() const
Access to the underlying data, if needed.
virtual void update() override
Update the internal data after modification of the data object.
void setBGSK(unsigned int bgsk)
std::map< std::string, size_t > m_bunchGroupsByName
maps bgrp name (BGRP0, BGRP1,...) to bunchgroup
L1BunchGroup & operator=(const L1BunchGroup &)=delete
uint16_t bgPattern_t
type for bunchgroup pattern bitset
virtual ~L1BunchGroupSet()
Destructor.
virtual std::string className() const override
A string that is the name of the class.
std::vector< uint16_t > bunches() const
list of all bunches
CONDCONT_DEF(TrigConf::L1BunchGroupSet, 63006439)
static const size_t s_maxBunchGroups
Hardware limit for number of bunch group.
const std::shared_ptr< L1BunchGroup > & getBunchGroup(const std::string &name) const
Accessor to the bunchgroup by name.
const std::vector< std::pair< size_t, size_t > > & trains() const
bunch trains (pairs: 1st bunch in train, and train length)
virtual std::string className() const override
A string that is the name of the class.
Forward iterator to traverse the main components of the trigger configuration.
L1BunchGroupSet(const L1BunchGroupSet &)=default
size_t nGroups() const
Accessor to the number of groups of consecutive bunches.
std::size_t size() const
Accessor to the number of bunches.
std::size_t size() const
Accessor to the number of defined bunchgroups.
L1BunchGroupSet()
Constructor.
constexpr std::size_t maxNBunchGroups() const
Maximum number of bunchgroups.
std::size_t sizeNonEmpty() const
Accessor to the number of non-empty bunchgroups.
bgPattern_t bgPattern(size_t bcid) const
Return word with bit-pattern of fired bunchgroups for given bcid.
void printSummary(bool detailed=false) const
print a more or less detailed summary
L1BunchGroup(L1BunchGroup &&)=delete
L1BunchGroup()
Constructor.
std::vector< std::shared_ptr< L1BunchGroup > > m_bunchGroups
vector of size 16 (L1BunchGroup::s_maxBunchGroups
setEventNumber setTimeStamp bcid
Base class for Trigger configuration data and wrapper around underlying representation.
virtual void clear() override
Clearing the configuration data.
std::vector< std::pair< size_t, size_t > > m_bunchdef
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
unsigned int m_bgsk
the bunch group key
virtual ~L1BunchGroup() override=default
Destructor.
bool contains(size_t bcid) const
check if bunchgroup contains a certain bunch
unsigned int bgsk() const
setter and getter for the bunch group key
L1BunchGroupSet(L1BunchGroupSet &&)=delete
boost::property_tree::ptree ptree
macros to associate a CLID to a type
L1BunchGroup(const L1BunchGroup &)=delete
L1BunchGroupSet & operator=(const L1BunchGroupSet &)=delete
Bunchgroup and BunchgroupSet representation.
virtual void update() override
Update the internal members.