ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TrigConf::BunchGroupSet Class Reference

#include <BunchGroupSet.h>

Inheritance diagram for TrigConf::BunchGroupSet:
Collaboration diagram for TrigConf::BunchGroupSet:

Public Member Functions

 BunchGroupSet ()
 
 BunchGroupSet (const std::vector< BunchGroup > &)
 
virtual ~BunchGroupSet () override=default
 
uint16_t menuPartition () const
 
const std::vector< BunchGroup > & bunchGroups () const
 
const std::vector< uint16_t > & bgPattern () const
 
void setMenuPartition (uint16_t part)
 
void setBGName (uint32_t, const std::string &)
 
void addBunchGroup (const BunchGroup &)
 
virtual void print (const std::string &indent="", unsigned int detail=1) const override
 
void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
 
unsigned int lvl1MasterTableId () const
 
void setLvl1MasterTableId (unsigned int id)
 
int superMasterTableId () const
 
unsigned int smk () const
 
unsigned int id () const
 
const std::string & name () const
 
const std::string & comment () const
 
unsigned int version () const
 
void setSuperMasterTableId (int id)
 
void setSMK (int id)
 
void setId (unsigned int id)
 
void setName (const std::string &name)
 
void setVersion (unsigned int version)
 
void setComment (const std::string &c)
 
void printNameIdV (const std::string &indent="") const
 
virtual std::string __str__ () const
 

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const
 

Private Member Functions

void fillPattern (uint32_t bitpos, const BunchGroup &bg)
 

Private Attributes

uint16_t m_MenuPartition
 
std::vector< BunchGroupm_BunchGroups
 
std::vector< uint16_t > m_BGpattern
 
unsigned int m_Lvl1MasterId
 
unsigned int m_smk
 
unsigned int m_id
 
std::string m_name
 
unsigned int m_version
 
std::string m_comment
 

Detailed Description

Definition at line 19 of file BunchGroupSet.h.

Constructor & Destructor Documentation

◆ BunchGroupSet() [1/2]

BunchGroupSet::BunchGroupSet ( )

Definition at line 13 of file BunchGroupSet.cxx.

◆ BunchGroupSet() [2/2]

BunchGroupSet::BunchGroupSet ( const std::vector< BunchGroup > &  bgv)

Definition at line 15 of file BunchGroupSet.cxx.

15  :
17  m_MenuPartition(0),
18  m_BunchGroups(bgv),
19  m_BGpattern(3564)
20 {
21  for(const BunchGroup& bg: m_BunchGroups)
22  fillPattern(bg.internalNumber(), bg);
23 }

◆ ~BunchGroupSet()

virtual TrigConf::BunchGroupSet::~BunchGroupSet ( )
overridevirtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

Reimplemented in TrigConf::HLTChain, TrigConf::HLTPrescaleSet, TrigConf::TriggerItem, and TrigConf::HLTSequence.

Definition at line 50 of file TrigConfData.cxx.

50  {
51  stringstream s;
52  s << *this;
53  return s.str();
54 }

◆ addBunchGroup()

void BunchGroupSet::addBunchGroup ( const BunchGroup bg)

Definition at line 26 of file BunchGroupSet.cxx.

26  {
27  fillPattern(bg.internalNumber(), bg);
28  m_BunchGroups.push_back(bg);
29 }

◆ bgPattern()

const std::vector<uint16_t>& TrigConf::BunchGroupSet::bgPattern ( ) const
inline

Definition at line 28 of file BunchGroupSet.h.

28 { return m_BGpattern; }

◆ bunchGroups()

const std::vector<BunchGroup>& TrigConf::BunchGroupSet::bunchGroups ( ) const
inline

Definition at line 27 of file BunchGroupSet.h.

27 { return m_BunchGroups; }

◆ comment()

const std::string& TrigConf::TrigConfData::comment ( ) const
inlineinherited

Definition at line 23 of file TrigConfData.h.

23 {return m_comment;}

◆ fillPattern()

void BunchGroupSet::fillPattern ( uint32_t  bitpos,
const BunchGroup bg 
)
private

Definition at line 39 of file BunchGroupSet.cxx.

39  {
40  if(bitpos>=16)
41  return;
42  uint16_t bit = 0x1 << bitpos;
43  const std::vector<int>& b = bg.bunches();
44  for(size_t i=0; i<b.size(); ++i)
45  m_BGpattern[b[i]] |= bit;
46 }

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inlineinherited

Definition at line 21 of file TrigConfData.h.

21 {return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream &  o,
int  lvl,
int  size 
) const
protectedinherited

Definition at line 23 of file TrigConfData.cxx.

23  {
24  int width = lvl*size;
25  if(width==0) return o;
26  o << setw(lvl*size) << " ";
27  return o;
28 }

◆ lvl1MasterTableId()

unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId ( ) const
inlineinherited

Definition at line 30 of file L1DataBaseclass.h.

30 { return m_Lvl1MasterId; }

◆ menuPartition()

uint16_t TrigConf::BunchGroupSet::menuPartition ( ) const
inline

Definition at line 26 of file BunchGroupSet.h.

26 { return m_MenuPartition; }

◆ name()

const std::string& TrigConf::TrigConfData::name ( ) const
inlineinherited

Definition at line 22 of file TrigConfData.h.

22 {return m_name;}

◆ print()

void BunchGroupSet::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
overridevirtual

Implements TrigConf::TrigConfData.

Definition at line 50 of file BunchGroupSet.cxx.

50  {
51  if(detail>=1) {
52  cout << indent << "BunchGroupSet " << name();
53  if(id()>0 || version()>0)
54  cout << " (id=" << id() << "/v=" << version() << ")";
55  cout << endl;
56  cout << indent << "Number of bunch groups: " << m_BunchGroups.size() << endl;
57  if(detail>=2) {
58  for(const BunchGroup& bg: m_BunchGroups)
59  bg.print(indent + indent, detail);
60  }
61  }
62 }

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string &  indent = "") const
inherited

Definition at line 31 of file TrigConfData.cxx.

31  {
32  cout << indent << name();
33  if(id()>0 || version()>0)
34  cout << " (id=" << id() << "/v=" << version() << ")";
35  cout << endl;
36  if(comment()!="")
37  cout << indent << "Comment: " << comment() << endl;
38 }

◆ setBGName()

void BunchGroupSet::setBGName ( uint32_t  i,
const std::string &  name 
)

Definition at line 33 of file BunchGroupSet.cxx.

33  {
34  if(i<m_BunchGroups.size())
35  m_BunchGroups[i].setName(name);
36 }

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string &  c)
inlineinherited

Definition at line 32 of file TrigConfData.h.

32 { m_comment = c;}

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int  id)
inlineinherited

Definition at line 29 of file TrigConfData.h.

29 { m_id=id; }

◆ setLvl1MasterTableId()

void TrigConf::L1DataBaseclass::setLvl1MasterTableId ( unsigned int  id)
inlineinherited

Definition at line 31 of file L1DataBaseclass.h.

31 { m_Lvl1MasterId = id; }

◆ setMenuPartition()

void TrigConf::BunchGroupSet::setMenuPartition ( uint16_t  part)
inline

Definition at line 31 of file BunchGroupSet.h.

31 { m_MenuPartition = part; }

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string &  name)
inlineinherited

Definition at line 30 of file TrigConfData.h.

30 { m_name = name;}

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int  id)
inlineinherited

Definition at line 28 of file TrigConfData.h.

28 {m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int  id)
inlineinherited

Definition at line 27 of file TrigConfData.h.

27 {m_smk=id;}

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int  version)
inlineinherited

Definition at line 31 of file TrigConfData.h.

31 { m_version = version;}

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inlineinherited

Definition at line 20 of file TrigConfData.h.

20 {return m_smk;}

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inlineinherited

Definition at line 19 of file TrigConfData.h.

19 {return (int)m_smk;}

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inlineinherited

Definition at line 24 of file TrigConfData.h.

24 {return m_version;}

◆ writeXML()

void BunchGroupSet::writeXML ( std::ostream &  xmlfile,
int  indentLevel = 0,
int  indentWidth = 2 
) const

Definition at line 65 of file BunchGroupSet.cxx.

65  {
66  indent(xmlfile,indentLevel, indentWidth)
67  << "<BunchGroupSet name=\"" << name() << "\" menuPartition=\"" << m_MenuPartition << "\">" << endl;
68  for(const BunchGroup& bg: m_BunchGroups)
69  bg.writeXML(xmlfile, indentLevel+1, indentWidth);
70  indent(xmlfile,indentLevel, indentWidth)
71  << "</BunchGroupSet>" << endl;
72 }

Member Data Documentation

◆ m_BGpattern

std::vector<uint16_t> TrigConf::BunchGroupSet::m_BGpattern
private

Definition at line 45 of file BunchGroupSet.h.

◆ m_BunchGroups

std::vector<BunchGroup> TrigConf::BunchGroupSet::m_BunchGroups
private

Definition at line 44 of file BunchGroupSet.h.

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_Lvl1MasterId

unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId
privateinherited

Definition at line 35 of file L1DataBaseclass.h.

◆ m_MenuPartition

uint16_t TrigConf::BunchGroupSet::m_MenuPartition
private

Definition at line 43 of file BunchGroupSet.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.


The documentation for this class was generated from the following files:
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
TrigConf::BunchGroup
Definition: BunchGroup.h:17
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
StandaloneBunchgroupHandler.bg
bg
Definition: StandaloneBunchgroupHandler.py:243
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition: L1DataBaseclass.h:24
TrigConf::BunchGroupSet::m_MenuPartition
uint16_t m_MenuPartition
Definition: BunchGroupSet.h:43
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
TrigConf::BunchGroupSet::fillPattern
void fillPattern(uint32_t bitpos, const BunchGroup &bg)
Definition: BunchGroupSet.cxx:39
TrigConf::L1DataBaseclass::m_Lvl1MasterId
unsigned int m_Lvl1MasterId
Definition: L1DataBaseclass.h:35
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigConf::BunchGroupSet::m_BGpattern
std::vector< uint16_t > m_BGpattern
Definition: BunchGroupSet.h:45
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
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
python.compressB64.c
def c
Definition: compressB64.py:93