ATLAS Offline Software
Loading...
Searching...
No Matches
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
34 virtual public INavigable4Momentum {
35
36public:
38 EmTau_ROI( uint32_t roiWord, float eta, float phi, uint32_t thrPattern );
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
102private:
103 uint32_t m_roiWord;
104
105 float m_eta;
106 float m_phi;
107
108 uint32_t m_thrPattern;
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
void setCore(float value)
Set the ET deposited in the "RoI core".
Definition EmTau_ROI.h:81
float getEMIsol() const
Return the EM calorimeter isolation (outer ring of EM towers)
Definition EmTau_ROI.h:62
EmTau_ROI()
Default constructor (for persistency purposes)
Definition EmTau_ROI.cxx:30
std::vector< float > thr_value_type
Type storing the values of the passed thresholds.
Definition EmTau_ROI.h:47
EmTau_ROI(uint32_t roiWord, float eta, float phi, uint32_t thrPattern)
Constructor used when creating the object from RoIBResult data.
Definition EmTau_ROI.cxx:15
const thr_value_type & getThresholdValues() const
Return the values of the passed thresholds.
Definition EmTau_ROI.h:73
void setHadIsol(float value)
Set the hadron calorimeter isolation (outer ring of Had towers)
Definition EmTau_ROI.h:89
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
Definition EmTau_ROI.h:45
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition EmTau_ROI.h:100
const thresholds_type & getThresholdNames() const
Return the names of the passed threshodlds.
Definition EmTau_ROI.h:71
uint32_t m_roiWord
32bit encoded ROI word
Definition EmTau_ROI.h:103
float getTauClus() const
Return the deposited ET from the "tau cluster".
Definition EmTau_ROI.h:60
float m_eta
eta coordinate of RoI
Definition EmTau_ROI.h:105
thresholds_type m_thresholdNames
Names of the passed thresholds.
Definition EmTau_ROI.h:110
uint32_t getThrPattern() const
Return the bit-pattern describing the passed thresholds.
Definition EmTau_ROI.h:68
void addThresholdName(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
Definition EmTau_ROI.h:76
virtual ~EmTau_ROI()
Destructor.
Definition EmTau_ROI.cxx:46
virtual double pt() const
Return the pT of the highest threshold passed.
Definition EmTau_ROI.cxx:58
void addThresholdValue(thr_value_type::value_type thr)
Add the value of a threshold that this RoI passed.
Definition EmTau_ROI.h:78
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition EmTau_ROI.h:54
void setEMIsol(float value)
Set the EM calorimeter isolation (outer ring of EM towers)
Definition EmTau_ROI.h:87
float m_Core
ET of RoI core cluster (used to select window)
Definition EmTau_ROI.h:113
void setTauClus(float value)
Set the deposited ET in the "tau cluster".
Definition EmTau_ROI.h:85
float m_TauClus
Deposited ET in the "tau cluster".
Definition EmTau_ROI.h:115
void setEMClus(float value)
Set the deposited ET in the "EM cluster".
Definition EmTau_ROI.h:83
uint32_t getROIWord() const
Return the RoI word produced by the L1Calo hardware.
Definition EmTau_ROI.h:50
float m_EMClus
Deposited ET in the "EM cluster".
Definition EmTau_ROI.h:114
void setHadCore(float value)
Set the ET deposited in the inner hadronic isolation region (2x2 core)
Definition EmTau_ROI.h:91
float getEMClus() const
Return the deposited ET from the "EM cluster".
Definition EmTau_ROI.h:58
float getHadCore() const
Return the ET deposited in the inner hadronic isolation region (2x2 core)
Definition EmTau_ROI.h:66
float getCore() const
Return the ET of the RoI Core cluster (2x2 towers, EM+Had)
Definition EmTau_ROI.h:56
thr_value_type m_thresholdValues
Values of the passed thresholds.
Definition EmTau_ROI.h:111
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition EmTau_ROI.h:96
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition EmTau_ROI.h:52
float m_EMIsol
EM calorimeter isolation.
Definition EmTau_ROI.h:116
float getHadIsol() const
Return the hadron calorimeter isolation (outer ring of had towers)
Definition EmTau_ROI.h:64
float m_HadCore
ET of inner hadronic isolation sum.
Definition EmTau_ROI.h:118
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition EmTau_ROI.h:98
uint32_t m_thrPattern
threshold bit pattern
Definition EmTau_ROI.h:108
float m_HadIsol
Outer Hadron calorimeter isolation.
Definition EmTau_ROI.h:117
float m_phi
phi coordinate of RoI
Definition EmTau_ROI.h:106
P4PtEtaPhiMBase is a base class for classes with 4-momentum behavior, for which pt,...