ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerThresholdValue.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TrigConf_TriggerThresholdValue
8#define TrigConf_TriggerThresholdValue
9
11
12#include <string>
13
14namespace TrigConf {
15
16 namespace JetWindowSize {
17 enum Size { NONE, SMALL, LARGE, UNDEF };
18 }
19
20 class CaloInfo;
21
23 public:
24 static const int fgCaloClusterOff;
25 static const int fgCaloJetOff;
26 static const int fgCaloEtSumOff;
27 static const int fgCaloEtMissOff;
28 static const int fgCaloJetEtOff;
29 static const int fgCaloIsolationOff;
30
31 public:
32 static void setCaloInfo(const CaloInfo& ci);
33 static float caloGlobalScale();
34 static float caloGlobalScaleGeVToCount();
35 static float caloGlobalScaleCountToGeV();
36
37 public:
39 virtual ~TriggerThresholdValue() override = default;
40
41 virtual TriggerThresholdValue* createCopy() const = 0;
42
43 // getters
44 const std::string& type() const { return m_Type; }
45 float ptcut() const { return m_Ptcut; }
46 float priority() const { return m_Priority; }
47 int ptCutCount() const { return thresholdValueCount(); }
48 virtual int thresholdValueCount() const;
49 unsigned int window() const { return m_Window; }
50 virtual JetWindowSize::Size windowSize() const { return m_WindowSize; }
51 int phimin() const { return m_PhiMin; }
52 int phimax() const { return m_PhiMax; }
53 int etamin() const { return m_EtaMin; }
54 int etamax() const { return m_EtaMax; }
55
56 // setters
57 void setType(const std::string& type) { m_Type = type; }
58 void setPtcut(float pt) { m_Ptcut = pt; }
59 void setPriority(float prio) { m_Priority = prio; }
60 void setWindow( int value ) { m_Window = value; }
61 void setPhiMin( int value ) { m_PhiMin = value; }
62 void setPhiMax( int value ) { m_PhiMax = value; }
63 void setEtaMin( int value ) { m_EtaMin = value; }
64 void setEtaMax( int value ) { m_EtaMax = value; }
65
66 // geometrical check
67 bool contains(float eta, float phi) const;
68
69 // access to global Calo configuration
70 const CaloInfo & caloInfo() const;
71
72 virtual void print(const std::string& indent="", unsigned int detail=1) const override = 0;
73 virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
74
75 protected:
76 std::string m_Type;
77 float m_Ptcut;
78 unsigned int m_Priority;
79 unsigned int m_Window;
80 JetWindowSize::Size m_WindowSize; // mutable as long as we calculate it on the fly
85 };
86
87}
88
89#endif
90
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::ostream & indent(std::ostream &o, int lvl, int size) const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
virtual ~TriggerThresholdValue() override=default
bool contains(float eta, float phi) const
virtual TriggerThresholdValue * createCopy() const =0
void setType(const std::string &type)
virtual JetWindowSize::Size windowSize() const
const std::string & type() 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