ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfL1Data
Root
BunchGroup.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigConfL1Data/BunchGroup.h
"
6
#include <iostream>
7
8
using namespace
std
;
9
10
TrigConf::BunchGroup::BunchGroup
() :
11
L1DataBaseclass
(),
12
m_InternalNumber
( 99 ),
13
m_Partition
( 0 ),
14
m_Bunches
()
15
{}
16
17
void
TrigConf::BunchGroup::addBunch
(
int
b) {
18
m_Bunches
.push_back(b);
19
}
20
21
void
22
TrigConf::BunchGroup::clear
() {
23
m_InternalNumber
= 99;
24
m_Bunches
.clear();
25
}
26
27
void
28
TrigConf::BunchGroup::print
(
const
std::string&
indent
,
unsigned
int
detail
)
const
{
29
if
(
detail
>=2) {
30
cout <<
indent
<<
"BunchGroup "
;
31
printNameIdV
(
indent
);
32
if
(
detail
>=3) {
33
cout <<
indent
<<
"\t partition # :\t\t\t"
<<
m_Partition
<< endl;
34
cout <<
indent
<<
"\t internal # :\t\t\t"
<<
m_InternalNumber
<< endl;
35
cout <<
indent
<<
"\t Bunches: "
<<
m_Bunches
.size() <<
"\t\t"
;
36
cout <<
indent
;
37
for
(
unsigned
int
i=0; i <
m_Bunches
.size();i++) {
38
cout <<
m_Bunches
[i] <<
" "
;
39
}
40
cout << endl;
41
}
42
}
43
}
44
45
void
TrigConf::BunchGroup::writeXML
(std::ostream &
xmlfile
,
int
indentLevel,
int
indentWidth)
const
{
46
indent
(
xmlfile
,indentLevel, indentWidth)
47
<<
"<BunchGroup internalNumber=\""
<<
m_InternalNumber
<<
"\" name=\""
<<
name
() <<
"\""
;
48
if
(
m_Bunches
.size()==0) {
49
xmlfile
<<
"/>"
<< endl;
50
}
else
{
51
xmlfile
<<
">"
<< endl;
52
for
(
unsigned
int
i=0; i <
m_Bunches
.size();i++)
53
indent
(
xmlfile
,indentLevel+1, indentWidth)
54
<<
"<Bunch bunchNumber=\""
<<
m_Bunches
[i] <<
"\"/>"
<< endl;
55
indent
(
xmlfile
,indentLevel, indentWidth)
56
<<
"</BunchGroup>"
<< endl;
57
}
58
}
59
60
BunchGroup.h
TrigConf::BunchGroup::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition
BunchGroup.cxx:28
TrigConf::BunchGroup::BunchGroup
BunchGroup()
Definition
BunchGroup.cxx:10
TrigConf::BunchGroup::addBunch
void addBunch(int)
Definition
BunchGroup.cxx:17
TrigConf::BunchGroup::m_InternalNumber
unsigned int m_InternalNumber
Definition
BunchGroup.h:37
TrigConf::BunchGroup::m_Partition
unsigned int m_Partition
Definition
BunchGroup.h:38
TrigConf::BunchGroup::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition
BunchGroup.cxx:45
TrigConf::BunchGroup::clear
void clear()
Definition
BunchGroup.cxx:22
TrigConf::BunchGroup::m_Bunches
std::vector< int > m_Bunches
Definition
BunchGroup.h:39
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition
L1DataBaseclass.h:24
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
TrigConf::TrigConfData::printNameIdV
void printNameIdV(const std::string &indent="") const
Definition
TrigConfData.cxx:31
xmlfile
static std::vector< std::string > xmlfile
Definition
iLumiCalc.h:29
detail
Definition
extract_histogram_tag.cxx:14
std
STL namespace.
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0