ATLAS Offline Software
BunchGroupSet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_BunchGroupSet
6 #define TrigConf_BunchGroupSet
7 
10 
11 #include <iosfwd>
12 #include <string>
13 #include <vector>
14 #include <inttypes.h>
15 #include <sys/types.h>
16 
17 namespace TrigConf {
18 
19  class BunchGroupSet : public L1DataBaseclass {
20  public:
21  BunchGroupSet();
22  BunchGroupSet(const std::vector<BunchGroup>&);
23  virtual ~BunchGroupSet() override = default;
24 
25  // getters
27  const std::vector<BunchGroup>& bunchGroups() const { return m_BunchGroups; }
28  const std::vector<uint16_t>& bgPattern() const { return m_BGpattern; }
29 
30  // setters
32  void setBGName(uint32_t, const std::string&);
33  void addBunchGroup(const BunchGroup&);
34 
35 
36  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
37  void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
38 
39 
40  private:
41  void fillPattern(uint32_t bitpos, const BunchGroup& bg);
42 
44  std::vector<BunchGroup> m_BunchGroups;
45  std::vector<uint16_t> m_BGpattern;
46  };
47 
48 }
49 
50 #endif
51 
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
TrigConf::BunchGroup
Definition: BunchGroup.h:17
TrigConf::BunchGroupSet
Definition: BunchGroupSet.h:19
StandaloneBunchgroupHandler.bg
bg
Definition: StandaloneBunchgroupHandler.py:243
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigConf::BunchGroupSet::m_MenuPartition
uint16_t m_MenuPartition
Definition: BunchGroupSet.h:43
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::BunchGroupSet::~BunchGroupSet
virtual ~BunchGroupSet() override=default
TrigConf::BunchGroupSet::fillPattern
void fillPattern(uint32_t bitpos, const BunchGroup &bg)
Definition: BunchGroupSet.cxx:39
TrigConf::BunchGroupSet::bgPattern
const std::vector< uint16_t > & bgPattern() const
Definition: BunchGroupSet.h:28
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::BunchGroupSet::menuPartition
uint16_t menuPartition() const
Definition: BunchGroupSet.h:26
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TrigConf::BunchGroupSet::addBunchGroup
void addBunchGroup(const BunchGroup &)
Definition: BunchGroupSet.cxx:26
TrigConf::BunchGroupSet::setMenuPartition
void setMenuPartition(uint16_t part)
Definition: BunchGroupSet.h:31
BunchGroup.h
TrigConf::BunchGroupSet::bunchGroups
const std::vector< BunchGroup > & bunchGroups() const
Definition: BunchGroupSet.h:27
TrigConf::BunchGroupSet::m_BGpattern
std::vector< uint16_t > m_BGpattern
Definition: BunchGroupSet.h:45
TrigConf::BunchGroupSet::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: BunchGroupSet.cxx:50
TrigConf::BunchGroupSet::setBGName
void setBGName(uint32_t, const std::string &)
Definition: BunchGroupSet.cxx:33
TrigConf::BunchGroupSet::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: BunchGroupSet.cxx:65
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::BunchGroupSet::m_BunchGroups
std::vector< BunchGroup > m_BunchGroups
Definition: BunchGroupSet.h:44
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::BunchGroupSet::BunchGroupSet
BunchGroupSet()
Definition: BunchGroupSet.cxx:13
L1DataBaseclass.h