ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerThresholdValue.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9#include <iostream>
10
11using namespace std;
12using namespace TrigConf;
13
14// Internal variable (thread-safe, because set during initialize)
16static const TrigConf::CaloInfo* fgCaloInfoPointer ATLAS_THREAD_SAFE = 0;
17
18const int TriggerThresholdValue::fgCaloClusterOff = 0xff; // 255
19const int TriggerThresholdValue::fgCaloJetOff = 0x3ff; // 1023
20const int TriggerThresholdValue::fgCaloEtSumOff = 0x7fff; // 16383
21const int TriggerThresholdValue::fgCaloEtMissOff = 0x7fff; // 2895
22const int TriggerThresholdValue::fgCaloJetEtOff = 0x33e6; // 13286
24
25
26
27// Static stuffs
28void
30 fgCaloInfo = ci;
31 fgCaloInfoPointer = &fgCaloInfo;
32}
33
34const CaloInfo &
36 return fgCaloInfo;
37}
38
39
40float
42 if (fgCaloInfoPointer)
43 return fgCaloInfoPointer->globalScale();
44 return 1.0;
45}
46
47float
50 if (x == 0)
51 return 1.0;
52 else
53 return 1.0/x;
54}
55
56float
60
61// constructors
64 , m_Type("")
65 , m_Ptcut(0.0)
66 , m_Priority(0.0)
67 , m_Window(0)
69 , m_PhiMin(0)
70 , m_PhiMax(64)
71 , m_EtaMin(-49)
72 , m_EtaMax(49)
73{}
74
75int
77 return (int) ptcut(); // overriden in Cluster/JetThresholdValue
78}
79
80bool
82 return ( eta >= etamin() && eta <= etamax() &&
83 phi >= phimin() && phi <= phimax());
84}
85
86void
87TrigConf::TriggerThresholdValue::print(const std::string& indent, unsigned int /*detail*/) const {
88 cout << indent << "-----------------------" << endl;
89 cout << indent << "TriggerThresholdValue: " << endl;
90 cout << indent << "\t id: " << id() << endl;
91 cout << indent << "\t Name: " << name() << endl;
92 cout << indent << "\t Version: " << version() << endl;
93 cout << indent << "\t Priority: " << m_Priority << endl;
94 cout << indent << "\t Type: " << m_Type << endl;
95 cout << indent << "\t ptcut: " << m_Ptcut << endl;
96}
97
98void
99TrigConf::TriggerThresholdValue::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
100 indent(xmlfile, indentLevel, indentWidth)
101 << "<TriggerThresholdValue " << m_Type << " NOT IMPLEMENTED/>"
102 << endl;
103}
104
105
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define x
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
double globalScale() const
Definition CaloInfo.h:42
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
unsigned int version() const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
bool contains(float eta, float phi) const
static void setCaloInfo(const CaloInfo &ci)
virtual void print(const std::string &indent="", unsigned int detail=1) const override=0
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.