ATLAS Offline Software
BunchGroup.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TrigConf_BunchGroup
8 #define TrigConf_BunchGroup
9 
10 #include <iosfwd>
11 #include <string>
12 #include <vector>
14 
15 namespace TrigConf {
16 
17  class BunchGroup : public L1DataBaseclass {
18  public:
19  BunchGroup();
20  virtual ~BunchGroup() override = default;
21 
22  // Accessors
23  unsigned int internalNumber() const { return m_InternalNumber; }
24  unsigned int partition() const { return m_Partition; }
25  const std::vector<int>& bunches() const { return m_Bunches; }
26 
27  void setInternalNumber( unsigned int i ) { m_InternalNumber = i; }
28  void setPartition( unsigned int i ) { m_Partition = i; }
29  void addBunch(int);
30 
31  void clear();
32 
33  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
34  void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
35 
36  private:
37  unsigned int m_InternalNumber;
38  unsigned int m_Partition;
39  std::vector<int> m_Bunches;
40  };
41 
42 }
43 
44 #endif
45 
TrigConf::BunchGroup
Definition: BunchGroup.h:17
TrigConf::BunchGroup::setPartition
void setPartition(unsigned int i)
Definition: BunchGroup.h:28
TrigConf::BunchGroup::internalNumber
unsigned int internalNumber() const
Definition: BunchGroup.h:23
TrigConf::BunchGroup::clear
void clear()
Definition: BunchGroup.cxx:22
TrigConf::BunchGroup::BunchGroup
BunchGroup()
Definition: BunchGroup.cxx:10
TrigConf::BunchGroup::bunches
const std::vector< int > & bunches() const
Definition: BunchGroup.h:25
TrigConf::BunchGroup::m_InternalNumber
unsigned int m_InternalNumber
Definition: BunchGroup.h:37
detail
Definition: extract_histogram_tag.cxx:14
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigConf::BunchGroup::m_Bunches
std::vector< int > m_Bunches
Definition: BunchGroup.h:39
TrigConf::BunchGroup::setInternalNumber
void setInternalNumber(unsigned int i)
Definition: BunchGroup.h:27
TrigConf::BunchGroup::partition
unsigned int partition() const
Definition: BunchGroup.h:24
TrigConf::BunchGroup::~BunchGroup
virtual ~BunchGroup() override=default
TrigConf::BunchGroup::addBunch
void addBunch(int)
Definition: BunchGroup.cxx:17
TrigConf::BunchGroup::m_Partition
unsigned int m_Partition
Definition: BunchGroup.h:38
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
L1DataBaseclass.h
TrigConf::BunchGroup::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: BunchGroup.cxx:45
TrigConf::BunchGroup::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: BunchGroup.cxx:28