ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfL1Data
Root
ThresholdMonitor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigConfL1Data/ThresholdMonitor.h
"
6
#include "
TrigConfL1Data/ClusterThresholdValue.h
"
7
#include "
TrigConfL1Data/JetThresholdValue.h
"
8
#include "
TrigConfL1Data/MuonThresholdValue.h
"
9
#include "
TrigConfL1Data/EtThresholdValue.h
"
10
#include "
TrigConfL1Data/NimThresholdValue.h
"
11
#include "
TrigConfL1Data/L1DataDef.h
"
12
#include "
TrigConfL1Data/CaloInfo.h
"
13
14
#include <stdexcept>
15
#include <iostream>
16
17
using namespace
std
;
18
19
TrigConf::ThresholdMonitor::ThresholdMonitor
() :
20
L1DataBaseclass
()
21
{}
22
23
TrigConf::ThresholdMonitor::ThresholdMonitor
(
const
ThresholdMonitor
& mon) :
24
L1DataBaseclass
(mon),
25
m_CounterType
(mon.
m_CounterType
),
26
m_ThresholdName
(mon.
m_ThresholdName
),
27
m_CtpinSlot
(mon.
m_CtpinSlot
),
28
m_CtpinConnector
(mon.
m_CtpinConnector
),
29
m_ThresholdId
(mon.
m_ThresholdId
),
30
m_BunchGroupId
(mon.
m_BunchGroupId
),
31
m_Multiplicity
(mon.
m_Multiplicity
),
32
m_InternalCounter
(mon.
m_InternalCounter
),
33
m_ThresholdStartBit
(mon.
m_ThresholdStartBit
),
34
m_ThresholdEndBit
(mon.
m_ThresholdEndBit
),
35
m_ThresholdActive
(mon.
m_ThresholdActive
)
36
{
37
setName
(mon.name());
38
setVersion
(mon.version());
39
}
40
41
void
42
TrigConf::ThresholdMonitor::print
(
const
std::string&
indent
,
unsigned
int
detail
)
const
{
43
if
(
detail
==3) {
44
cout <<
indent
<<
"Monitor Counter : "
<<
name
() <<
" (id="
<<
m_InternalCounter
<<
")"
<< endl;
45
}
46
if
(
detail
>=4) {
47
cout <<
indent
<<
"=================================="
<< endl;
48
cout <<
indent
<<
"Monitor Counter : "
<<
name
() <<
" (id="
<<
m_InternalCounter
<<
")"
<< endl;
49
cout <<
indent
<<
"monitors "
<<
m_CounterType
<<
" threshold "
<<
m_ThresholdName
<<
" (id="
<<
m_ThresholdId
<<
") with multiplicity "
<<
m_Multiplicity
<< endl;
50
cout <<
indent
<<
"Slot "
<<
m_CtpinSlot
<<
", connector "
<<
m_CtpinConnector
<<
", bits "
<<
m_ThresholdStartBit
<<
" - "
<<
m_ThresholdEndBit
<<
", bunch group "
<<
m_BunchGroupId
<< endl;
51
}
52
53
}
54
55
56
void
57
TrigConf::ThresholdMonitor::writeXML
(std::ostream &
xmlfile
,
int
indentLevel,
int
indentWidth)
const
{
58
indent
(
xmlfile
, indentLevel, indentWidth) <<
"<TriggerCounter name=\""
<<
name
() <<
"\" type=\"CTPIN\">"
<< endl;
59
indent
(
xmlfile
, indentLevel+1, indentWidth) <<
"<TriggerCondition name=\""
<<
name
() <<
"\" triggerthreshold=\""
<<
m_ThresholdName
<<
"\" multi=\""
<<
m_Multiplicity
<<
"\"/>"
<< endl;
60
indent
(
xmlfile
, indentLevel, indentWidth) <<
"</TriggerCounter>"
<< endl;
61
}
CaloInfo.h
ClusterThresholdValue.h
EtThresholdValue.h
JetThresholdValue.h
L1DataDef.h
MuonThresholdValue.h
NimThresholdValue.h
ThresholdMonitor.h
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition
L1DataBaseclass.h:24
TrigConf::ThresholdMonitor::m_BunchGroupId
int m_BunchGroupId
Definition
ThresholdMonitor.h:61
TrigConf::ThresholdMonitor::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition
ThresholdMonitor.cxx:42
TrigConf::ThresholdMonitor::m_ThresholdStartBit
int m_ThresholdStartBit
Definition
ThresholdMonitor.h:64
TrigConf::ThresholdMonitor::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition
ThresholdMonitor.cxx:57
TrigConf::ThresholdMonitor::m_ThresholdName
std::string m_ThresholdName
Definition
ThresholdMonitor.h:57
TrigConf::ThresholdMonitor::m_ThresholdEndBit
int m_ThresholdEndBit
Definition
ThresholdMonitor.h:65
TrigConf::ThresholdMonitor::m_Multiplicity
int m_Multiplicity
Definition
ThresholdMonitor.h:62
TrigConf::ThresholdMonitor::m_ThresholdActive
bool m_ThresholdActive
Definition
ThresholdMonitor.h:66
TrigConf::ThresholdMonitor::m_CounterType
std::string m_CounterType
Definition
ThresholdMonitor.h:56
TrigConf::ThresholdMonitor::m_ThresholdId
int m_ThresholdId
Definition
ThresholdMonitor.h:60
TrigConf::ThresholdMonitor::m_CtpinConnector
uint16_t m_CtpinConnector
Definition
ThresholdMonitor.h:59
TrigConf::ThresholdMonitor::m_InternalCounter
int m_InternalCounter
Definition
ThresholdMonitor.h:63
TrigConf::ThresholdMonitor::m_CtpinSlot
uint16_t m_CtpinSlot
Definition
ThresholdMonitor.h:58
TrigConf::ThresholdMonitor::ThresholdMonitor
ThresholdMonitor()
Definition
ThresholdMonitor.cxx:19
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
TrigConf::TrigConfData::setName
void setName(const std::string &name)
Definition
TrigConfData.h:30
TrigConf::TrigConfData::setVersion
void setVersion(unsigned int version)
Definition
TrigConfData.h: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