17 m_IsolationHAIsoForEMthr( 5 ),
18 m_IsolationEMIsoForEMthr( 5 ),
19 m_IsolationEMIsoForTAUthr( 5 ),
24 m_JetWindowSizeSmall( 0 ),
25 m_JetWindowSizeLarge( 0 )
59 cout <<
"Isolation bit is outside the range [1,5] : " << bit <<
" - not being used" << endl;
62 if(isothrtype==
"HAIsoForEMthr") {
64 }
else if(isothrtype==
"EMIsoForEMthr") {
66 }
else if(isothrtype==
"EMIsoForTAUthr") {
69 cout <<
"Isolation threshold " << isothrtype <<
" is unknown [HAIsoForEMthr, EMIsoForEMthr, EMIsoForTAUthr] - not being used" << endl;
77 cout <<
indent <<
"================================================ " << endl;
78 cout <<
indent <<
"CaloInfo: " << endl;
83 cout <<
indent <<
" JetWeights: ";
86 if((
i+1)%6==0) cout << endl;
94 cout <<
"================================================ " << endl;
100 indent(xmlfile, indentLevel, indentWidth)
101 <<
"<CaloInfo name=\""<<
name() <<
"\" global_em_scale=\""<< globalEmScale() <<
"\" global_jet_scale=\""<< globalJetScale() <<
"\">" << endl;
103 bool hasJetWeights(
false);
104 for(
int jw : m_JetWeights)
105 if(jw!=0) hasJetWeights =
true;
109 for(
int jw : m_JetWeights)
110 indent(xmlfile, indentLevel+1, indentWidth)
111 <<
"<JetWeight num=\"" <<
num++ <<
"\" weight=\""<< jw <<
"\"/>" << endl;
114 metSigParam().writeXML(xmlfile, indentLevel+1, indentWidth);
117 indent(xmlfile, indentLevel+1, indentWidth)
118 <<
"<Isolation thrtype=\"HAIsoForEMthr\">" << endl;
120 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
121 indent(xmlfile, indentLevel+1, indentWidth)
122 <<
"</Isolation>" << endl;
124 indent(xmlfile, indentLevel+1, indentWidth)
125 <<
"<Isolation thrtype=\"EMIsoForEMthr\">" << endl;
127 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
128 indent(xmlfile, indentLevel+1, indentWidth)
129 <<
"</Isolation>" << endl;
131 indent(xmlfile, indentLevel+1, indentWidth)
132 <<
"<Isolation thrtype=\"EMIsoForTAUthr\">" << endl;
134 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
135 indent(xmlfile, indentLevel+1, indentWidth)
136 <<
"</Isolation>" << endl;
139 indent(xmlfile, indentLevel+1, indentWidth)
140 <<
"<MinimumTOBPt thrtype=\"EM\" ptmin=\"" << m_tobEM.ptmin <<
"\" etamin=\"" << m_tobEM.etamin <<
"\" etamax=\"" << m_tobEM.etamax <<
"\" priority=\"" << m_tobEM.priority <<
"\"/>" << endl;
141 indent(xmlfile, indentLevel+1, indentWidth)
142 <<
"<MinimumTOBPt thrtype=\"TAU\" ptmin=\"" << m_tobTau.ptmin <<
"\" etamin=\"" << m_tobTau.etamin <<
"\" etamax=\"" << m_tobTau.etamax <<
"\" priority=\"" << m_tobTau.priority <<
"\"/>" << endl;
143 indent(xmlfile, indentLevel+1, indentWidth)
144 <<
"<MinimumTOBPt thrtype=\"JETS\" window=\"" << m_JetWindowSizeSmall <<
"\" ptmin=\"" << m_tobJetSmall.ptmin <<
"\" etamin=\"" << m_tobJetSmall.etamin <<
"\" etamax=\"" << m_tobJetSmall.etamax <<
"\" priority=\"" << m_tobJetSmall.priority <<
"\"/>" << endl;
145 indent(xmlfile, indentLevel+1, indentWidth)
146 <<
"<MinimumTOBPt thrtype=\"JETL\" window=\"" << m_JetWindowSizeLarge <<
"\" ptmin=\"" << m_tobJetLarge.ptmin <<
"\" etamin=\"" << m_tobJetLarge.etamin <<
"\" etamax=\"" << m_tobJetLarge.etamax <<
"\" priority=\"" << m_tobJetLarge.priority <<
"\"/>" << endl;
149 indent(xmlfile, indentLevel, indentWidth) <<
"</CaloInfo>" << endl;