ATLAS Offline Software
EtThresholdValue.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 
10 using namespace std;
11 
14 {}
15 
18  return new EtThresholdValue(*this);
19 }
20 
21 int
23 
24  int count = static_cast<int>( m_Ptcut * caloInfo().globalJetScale() );
25 
26  if (type()==L1DataDef::jeType() && count > fgCaloJetEtOff) {
27  count = fgCaloJetEtOff;
28  } else if (type()==L1DataDef::teType() && count > fgCaloEtSumOff) {
29  count = fgCaloEtSumOff;
30  } else if (type()==L1DataDef::xeType() && count > fgCaloEtMissOff) {
31  count = fgCaloEtMissOff;
32  }
33 
34  return count;
35 }
36 
37 void
38 TrigConf::EtThresholdValue::print(const std::string& indent, unsigned int /*detail*/) const {
39  cout << indent << "-----------------------" << endl;
40  cout << indent << "EtThresholdValue: " << endl;
41  printNameIdV(indent);
42  cout << indent << "\t Type: " << m_Type << endl;
43  cout << indent << "\t ptcut: " << m_Ptcut
44  << " count=" << thresholdValueCount() << endl;
45  cout << indent << "\t etamin: " << m_EtaMin << endl;
46  cout << indent << "\t etamax: " << m_EtaMax << endl;
47  cout << indent << "\t phimin: " << m_PhiMin << endl;
48  cout << indent << "\t phimax: " << m_PhiMax << endl;
49  cout << indent << "\t priority:" << m_Priority << endl;
50 }
51 
52 void
53 TrigConf::EtThresholdValue::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
54  indent(xmlfile, indentLevel, indentWidth)
55  << "<TriggerThresholdValue em_isolation=\"63\" etamin=\"" << m_EtaMin
56  << "\" etamax=\"" << m_EtaMax
57  << "\" had_isolation=\"63\" had_veto=\"63\" name=\"" << name()
58  << "\" phimin=\"" << m_PhiMin
59  << "\" phimax=\"" << m_PhiMax
60  << "\" priority=\""<< m_Priority
61  << "\" thresholdval=\"" << m_Ptcut
62  << "\" type=\"" << m_Type
63  << "\" window=\"0\"/>"
64  << endl;
65 }
66 
TrigConf::TriggerThresholdValue
Definition: TriggerThresholdValue.h:22
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:18
CaloInfo.h
TrigConf::EtThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const override
Definition: EtThresholdValue.cxx:22
TrigConf::EtThresholdValue::EtThresholdValue
EtThresholdValue()
Definition: EtThresholdValue.cxx:12
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TrigConf::EtThresholdValue
Definition: EtThresholdValue.h:11
L1DataDef.h
EtThresholdValue.h
TrigConf::EtThresholdValue::createCopy
virtual TriggerThresholdValue * createCopy() const override
Definition: EtThresholdValue.cxx:17
TrigConf::EtThresholdValue::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
Definition: EtThresholdValue.cxx:53
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigConf::EtThresholdValue::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: EtThresholdValue.cxx:38