ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterThresholdValue.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include <iostream>
9
10using namespace std;
11
21
26
27int
29
30 int count = static_cast<int>(m_EmIsolation * caloInfo().globalEmScale() );
31
34 }
35
36 return count;
37}
38
39int
41 int count = static_cast<int>(m_HadIsolation * caloInfo().globalEmScale() );
44 }
45 return count;
46}
47
48int
50 int count = static_cast<int>(m_HadVeto * caloInfo().globalEmScale() );
53 }
54 return count;
55}
56
57int
59
60 int count = static_cast<int>(m_Ptcut * caloInfo().globalEmScale());
61
62 if (count > fgCaloClusterOff) {
64 }
65
66 return count;
67}
68
69void
70TrigConf::ClusterThresholdValue::print(const std::string& indent, unsigned int /*detail*/) const {
71 cout << indent << "-----------------------" << endl;
72 cout << indent << "ClusterThresholdValue: " << endl;
74 cout << indent << "\t Priority: " << m_Priority << endl;
75 cout << indent << "\t Type: " << m_Type << endl;
76 cout << indent << "\t ptcut: " << m_Ptcut
77 << " count=" << thresholdValueCount() << endl;
78 cout << indent << "\t em_isolation: " << m_EmIsolation
79 << " count=" << emIsolationCount() << endl;
80 cout << indent << "\t had_isolation: " << m_HadIsolation
81 << " count=" << hadIsolationCount() << endl;
82 cout << indent << "\t had_veto: " << m_HadVeto
83 << " count=" << hadVetoCount() << endl;
84 cout << indent << "\t iso mask: " << m_IsolationMask << endl;
85 cout << indent << "\t phi_min: " << m_PhiMin << endl;
86 cout << indent << "\t phi_max: " << m_PhiMax << endl;
87 cout << indent << "\t eta_min: " << m_EtaMin << endl;
88 cout << indent << "\t eta_max: " << m_EtaMax << endl;
89}
90
91void
92TrigConf::ClusterThresholdValue::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
93 indent(xmlfile, indentLevel, indentWidth)
94 << "<TriggerThresholdValue"
95 << " em_isolation=\"" << m_EmIsolation << "\""
96 << " etamin=\"" << m_EtaMin << "\""
97 << " etamax=\"" << m_EtaMax << "\""
98 << " had_isolation=\"" << m_HadIsolation << "\""
99 << " had_veto=\"" << m_HadVeto << "\"";
100 if(useIsolationMask()) {
101 xmlfile << " isobits=\"" << TrigConf::uint2bin(m_IsolationMask, 5) << "\"";
102 }
103 xmlfile << " name=\"" << name() << "\""
104 << " phimin=\"" << m_PhiMin << "\""
105 << " phimax=\"" << m_PhiMax << "\""
106 << " priority=\"" << m_Priority << "\""
107 << " thresholdval=\"" << m_Ptcut << "\""
108 << " type=\"" << m_Type << "\""
109 << " window=\"0\"/>"
110 << endl;
111}
112
uint16_t m_IsolationMask
new isolation for run 2: bit mask to select the isolation parameterizations to be applied
virtual void print(const std::string &indent="", unsigned int detail=1) const override
virtual int thresholdValueCount() const override
virtual TriggerThresholdValue * createCopy() const override
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") const
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
std::string uint2bin(uint32_t uinteger, uint16_t width)
STL namespace.