00001
00002 #ifndef TrigConf_BunchGroup
00003 #define TrigConf_BunchGroup
00004
00005 #include <iosfwd>
00006 #include <string>
00007 #include <vector>
00008 #include "TrigConfL1Data/L1DataBaseclass.h"
00009
00010 namespace TrigConf {
00011
00012 class BunchGroup : public L1DataBaseclass {
00013 public:
00014 BunchGroup();
00015 ~BunchGroup();
00016
00017
00018 unsigned int internalNumber() const { return m_InternalNumber; }
00019 unsigned int partition() const { return m_Partition; }
00020 const std::vector<int>& bunches() const { return m_Bunches; }
00021
00022 void setInternalNumber( unsigned int i ) { m_InternalNumber = i; }
00023 void setPartition( unsigned int i ) { m_Partition = i; }
00024 void addBunch(int);
00025
00026 void clear();
00027
00028 virtual void print(const std::string& indent="", unsigned int detail=1) const;
00029 void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
00030
00031 private:
00032 unsigned int m_InternalNumber;
00033 unsigned int m_Partition;
00034 std::vector<int> m_Bunches;
00035 };
00036
00037 }
00038
00039 #endif
00040