ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace TrigConf {
18
20 public:
22 BunchGroupSet(const std::vector<BunchGroup>&);
23 virtual ~BunchGroupSet() override = default;
24
25 // getters
26 uint16_t menuPartition() const { return m_MenuPartition; }
27 const std::vector<BunchGroup>& bunchGroups() const { return m_BunchGroups; }
28 const std::vector<uint16_t>& bgPattern() const { return m_BGpattern; }
29
30 // setters
31 void setMenuPartition(uint16_t part) { m_MenuPartition = part; }
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
const std::vector< uint16_t > & bgPattern() const
void setBGName(uint32_t, const std::string &)
std::vector< BunchGroup > m_BunchGroups
virtual void print(const std::string &indent="", unsigned int detail=1) const override
uint16_t menuPartition() const
void fillPattern(uint32_t bitpos, const BunchGroup &bg)
void addBunchGroup(const BunchGroup &)
virtual ~BunchGroupSet() override=default
const std::vector< BunchGroup > & bunchGroups() const
std::vector< uint16_t > m_BGpattern
void setMenuPartition(uint16_t part)
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
std::ostream & indent(std::ostream &o, int lvl, int size) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22