ATLAS Offline Software
Loading...
Searching...
No Matches
JetThresholdValue.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include <iostream>
8
9using namespace std;
10using namespace TrigConf;
11
15
20
21int
23 int count = static_cast<int>(m_Ptcut * caloInfo().globalJetScale() );
24 if (count > fgCaloJetOff) {
26 }
27 return count;
28}
29
33 return m_WindowSize;
34
35 if (window() == caloInfo().jetWindowSizeLarge() ) {
37 } else if (window() == caloInfo().jetWindowSizeSmall() ) {
39 } else {
41 }
42}
43
44std::string
47 if(ws == JetWindowSize::LARGE)
48 return "LARGE";
49 if(ws == JetWindowSize::SMALL)
50 return "SMALL";
51 if(ws == JetWindowSize::NONE)
52 return "NONE";
53 return "UNDEF";
54}
55
56
57
58// prints the DBMucptiConfig object
59void
60TrigConf::JetThresholdValue::print(const std::string& indent, unsigned int /*detail*/) const {
61 cout << indent << "--------------------" << endl;
62 cout << indent << "JetThresholdValue: " << endl;
63 cout << indent << "\t id: " << id() << endl;
64 cout << indent << "\t Name: " << name() << endl;
65 cout << indent << "\t Version: " << version() << endl;
66 cout << indent << "\t Type: " << m_Type << endl;
67 cout << indent << "\t Priority: " << m_Priority << endl;
68 cout << indent << "\t ptcut: " << m_Ptcut
69 << " count=" << thresholdValueCount() << endl;
70 cout << indent << "\t window: " << m_Window << endl;
71 cout << indent << "\t phi_min: " << m_PhiMin << endl;
72 cout << indent << "\t phi_max: " << m_PhiMax << endl;
73 cout << indent << "\t eta_min: " << m_EtaMin << endl;
74 cout << indent << "\t eta_max: " << m_EtaMax << endl;
75}
76
77void
78TrigConf::JetThresholdValue::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
79 indent(xmlfile, indentLevel, indentWidth)
80 << "<TriggerThresholdValue"
81 << " em_isolation=\"63\""
82 << " etamin=\"" << m_EtaMin << "\""
83 << " etamax=\"" << m_EtaMax << "\""
84 << " had_isolation=\"63\""
85 << " had_veto=\"63\""
86 << " name=\"" << name() << "\""
87 << " phimin=\"" << m_PhiMin << "\""
88 << " phimax=\"" << m_PhiMax << "\""
89 << " priority=\"" << m_Priority << "\""
90 << " thresholdval=\"" << m_Ptcut << "\""
91 << " type=\"" << m_Type << "\""
92 << " window=\"" << m_Window << "\""
93 << " windowSize=\"" << windowSizeAsString() << "\"" << "/>"
94 << endl;
95}
float globalJetScale() const
Definition CaloInfo.h:44
virtual void print(const std::string &indent="", unsigned int detail=1) const override
virtual JetWindowSize::Size windowSize() const override
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
virtual TriggerThresholdValue * createCopy() const override
virtual int thresholdValueCount() const override
std::string windowSizeAsString() const
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
unsigned int version() 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
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
STL namespace.