ATLAS Offline Software
EmTau_ROI.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef ANALYSISTRIGGEREVENT_EMTAU_ROI_H
8 #define ANALYSISTRIGGEREVENT_EMTAU_ROI_H
9 
10 // STL/System include(s):
11 #include <string>
12 #include <vector>
13 #include <inttypes.h>
14 
15 // Athena include(s):
19 
32 class EmTau_ROI : public P4PtEtaPhiMBase,
33  public NavigableTerminalNode,
34  virtual public INavigable4Momentum {
35 
36 public:
40  EmTau_ROI();
42  virtual ~EmTau_ROI();
43 
45  typedef std::vector< std::string > thresholds_type;
47  typedef std::vector< float > thr_value_type;
48 
50  uint32_t getROIWord() const { return m_roiWord; }
52  float getEta() const { return m_eta; }
54  float getPhi() const { return m_phi; }
56  float getCore() const { return m_Core; }
58  float getEMClus() const { return m_EMClus; }
60  float getTauClus() const { return m_TauClus; }
62  float getEMIsol() const { return m_EMIsol; }
64  float getHadIsol() const { return m_HadIsol; }
66  float getHadCore() const { return m_HadCore; }
68  uint32_t getThrPattern() const { return m_thrPattern; }
69 
74 
76  void addThresholdName( thresholds_type::value_type thr ) { m_thresholdNames.push_back( thr ); }
78  void addThresholdValue( thr_value_type::value_type thr ) { m_thresholdValues.push_back( thr ); }
79 
81  void setCore( float value ) { m_Core = value; }
83  void setEMClus( float value ) { m_EMClus = value; }
85  void setTauClus( float value ) { m_TauClus = value; }
87  void setEMIsol( float value ) { m_EMIsol = value; }
89  void setHadIsol( float value ) { m_HadIsol = value; }
91  void setHadCore( float value ) { m_HadCore = value; }
92 
94  virtual double pt() const;
96  virtual double eta() const { return m_eta; }
98  virtual double phi() const { return m_phi; }
100  virtual double m() const { return 0.0; }
101 
102 private:
104 
105  float m_eta;
106  float m_phi;
107 
109 
112 
113  float m_Core;
114  float m_EMClus;
115  float m_TauClus;
116  float m_EMIsol;
117  float m_HadIsol;
118  float m_HadCore;
119 
120 }; // class EmTau_ROI
121 
122 #endif // ANALYSISTRIGGEREVENT_EMTAU_ROI_H
EmTau_ROI::getEMIsol
float getEMIsol() const
Return the EM calorimeter isolation (outer ring of EM towers)
Definition: EmTau_ROI.h:62
P4PtEtaPhiMBase.h
INavigable4Momentum.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
EmTau_ROI::m_thresholdValues
thr_value_type m_thresholdValues
Values of the passed thresholds.
Definition: EmTau_ROI.h:111
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
EmTau_ROI::addThresholdName
void addThresholdName(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
Definition: EmTau_ROI.h:76
EmTau_ROI::getHadCore
float getHadCore() const
Return the ET deposited in the inner hadronic isolation region (2x2 core)
Definition: EmTau_ROI.h:66
athena.value
value
Definition: athena.py:122
EmTau_ROI::pt
virtual double pt() const
Return the pT of the highest threshold passed.
Definition: EmTau_ROI.cxx:58
EmTau_ROI::m_eta
float m_eta
eta coordinate of RoI
Definition: EmTau_ROI.h:105
EmTau_ROI::thr_value_type
std::vector< float > thr_value_type
Type storing the values of the passed thresholds.
Definition: EmTau_ROI.h:47
EmTau_ROI::setCore
void setCore(float value)
Set the ET deposited in the "RoI core".
Definition: EmTau_ROI.h:81
EmTau_ROI::getPhi
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition: EmTau_ROI.h:54
EmTau_ROI::setHadIsol
void setHadIsol(float value)
Set the hadron calorimeter isolation (outer ring of Had towers)
Definition: EmTau_ROI.h:89
EmTau_ROI::getTauClus
float getTauClus() const
Return the deposited ET from the "tau cluster".
Definition: EmTau_ROI.h:60
EmTau_ROI::setEMIsol
void setEMIsol(float value)
Set the EM calorimeter isolation (outer ring of EM towers)
Definition: EmTau_ROI.h:87
EmTau_ROI::m_EMClus
float m_EMClus
Deposited ET in the "EM cluster".
Definition: EmTau_ROI.h:114
EmTau_ROI::getEta
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition: EmTau_ROI.h:52
EmTau_ROI::getHadIsol
float getHadIsol() const
Return the hadron calorimeter isolation (outer ring of had towers)
Definition: EmTau_ROI.h:64
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
EmTau_ROI::thresholds_type
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
Definition: EmTau_ROI.h:45
EmTau_ROI::setHadCore
void setHadCore(float value)
Set the ET deposited in the inner hadronic isolation region (2x2 core)
Definition: EmTau_ROI.h:91
EmTau_ROI::getCore
float getCore() const
Return the ET of the RoI Core cluster (2x2 towers, EM+Had)
Definition: EmTau_ROI.h:56
EmTau_ROI::m_thresholdNames
thresholds_type m_thresholdNames
Names of the passed thresholds.
Definition: EmTau_ROI.h:110
EmTau_ROI::m_HadCore
float m_HadCore
ET of inner hadronic isolation sum.
Definition: EmTau_ROI.h:118
EmTau_ROI::m_EMIsol
float m_EMIsol
EM calorimeter isolation.
Definition: EmTau_ROI.h:116
EmTau_ROI::m_HadIsol
float m_HadIsol
Outer Hadron calorimeter isolation.
Definition: EmTau_ROI.h:117
EmTau_ROI::getEMClus
float getEMClus() const
Return the deposited ET from the "EM cluster".
Definition: EmTau_ROI.h:58
EmTau_ROI::m_thrPattern
uint32_t m_thrPattern
threshold bit pattern
Definition: EmTau_ROI.h:108
EmTau_ROI::setTauClus
void setTauClus(float value)
Set the deposited ET in the "tau cluster".
Definition: EmTau_ROI.h:85
EmTau_ROI::m
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition: EmTau_ROI.h:100
EmTau_ROI::m_Core
float m_Core
ET of RoI core cluster (used to select window)
Definition: EmTau_ROI.h:113
EmTau_ROI::addThresholdValue
void addThresholdValue(thr_value_type::value_type thr)
Add the value of a threshold that this RoI passed.
Definition: EmTau_ROI.h:78
EmTau_ROI::EmTau_ROI
EmTau_ROI()
Default constructor (for persistency purposes)
Definition: EmTau_ROI.cxx:30
P4PtEtaPhiMBase
Definition: P4PtEtaPhiMBase.h:26
NavigableTerminalNode.h
EmTau_ROI::phi
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition: EmTau_ROI.h:98
EmTau_ROI::setEMClus
void setEMClus(float value)
Set the deposited ET in the "EM cluster".
Definition: EmTau_ROI.h:83
EmTau_ROI::getROIWord
uint32_t getROIWord() const
Return the RoI word produced by the L1Calo hardware.
Definition: EmTau_ROI.h:50
EmTau_ROI::m_TauClus
float m_TauClus
Deposited ET in the "tau cluster".
Definition: EmTau_ROI.h:115
xAOD::thrPattern
thrPattern
Definition: EmTauRoI_v2.cxx:60
EmTau_ROI::~EmTau_ROI
virtual ~EmTau_ROI()
Destructor.
Definition: EmTau_ROI.cxx:46
EmTau_ROI
Em/Tau RoI class for analysis.
Definition: EmTau_ROI.h:34
INavigable4Momentum
Definition: INavigable4Momentum.h:21
EmTau_ROI::eta
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition: EmTau_ROI.h:96
EmTau_ROI::getThrPattern
uint32_t getThrPattern() const
Return the bit-pattern describing the passed thresholds.
Definition: EmTau_ROI.h:68
EmTau_ROI::m_phi
float m_phi
phi coordinate of RoI
Definition: EmTau_ROI.h:106
EmTau_ROI::m_roiWord
uint32_t m_roiWord
32bit encoded ROI word
Definition: EmTau_ROI.h:103
EmTau_ROI::getThresholdValues
const thr_value_type & getThresholdValues() const
Return the values of the passed thresholds.
Definition: EmTau_ROI.h:73
EmTau_ROI::getThresholdNames
const thresholds_type & getThresholdNames() const
Return the names of the passed threshodlds.
Definition: EmTau_ROI.h:71