ATLAS Offline Software
Jet_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_JET_ROI_H
8 #define ANALYSISTRIGGEREVENT_JET_ROI_H
9 
10 // STL/System include(s):
11 #include <string>
12 #include <vector>
13 #include <inttypes.h>
14 
15 // Athena include(s):
19 
28 class Jet_ROI : public P4PtEtaPhiMBase,
29  public NavigableTerminalNode,
30  virtual public INavigable4Momentum {
31 
32 public:
34  Jet_ROI( uint32_t roiWord, float eta, float phi, uint32_t thrPattern );
36  Jet_ROI();
38  virtual ~Jet_ROI();
39 
41  typedef std::vector< std::string > thresholds_type;
43  typedef std::vector< float > thr_value_type;
44 
46  uint32_t getROIWord() const { return m_roiWord; }
48  float getEta() const { return m_eta; }
50  float getPhi() const { return m_phi; }
52  uint32_t getThrPattern() const { return m_thrPattern; }
54  float getET4x4() const { return m_ET4x4; }
56  float getET6x6() const { return m_ET6x6; }
58  float getET8x8() const { return m_ET8x8; }
59 
64 
66  void addThresholdName( thresholds_type::value_type thr ) { m_thresholdNames.push_back( thr ); }
68  void addThresholdValue( thr_value_type::value_type thr ) { m_thresholdValues.push_back( thr ); }
69 
71  void setET4x4( float value ) { m_ET4x4 = value; }
73  void setET6x6( float value ) { m_ET6x6 = value; }
75  void setET8x8( float value ) { m_ET8x8 = value; }
76 
78  virtual double pt() const;
80  virtual double eta() const { return m_eta; }
82  virtual double phi() const { return m_phi; }
84  virtual double m() const { return 0.0; }
85 
86 private:
88 
89  float m_eta;
90  float m_phi;
91 
93 
96 
97  float m_ET4x4;
98  float m_ET6x6;
99  float m_ET8x8;
100 
101 }; // class Jet_ROI
102 
103 #endif
P4PtEtaPhiMBase.h
Jet_ROI::setET4x4
void setET4x4(float value)
Set the ET deposited in a 4x4 cluster.
Definition: Jet_ROI.h:71
Jet_ROI::thr_value_type
std::vector< float > thr_value_type
Type storing the values of the passed thresholds.
Definition: Jet_ROI.h:43
INavigable4Momentum.h
Jet_ROI::addThresholdName
void addThresholdName(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
Definition: Jet_ROI.h:66
Jet_ROI::m_ET6x6
float m_ET6x6
ET sum in a 6x6 cluster.
Definition: Jet_ROI.h:98
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
Jet_ROI::m_thresholdValues
thr_value_type m_thresholdValues
Values of the passed thresholds.
Definition: Jet_ROI.h:95
Jet_ROI
Jet RoI class for analysis.
Definition: Jet_ROI.h:30
Jet_ROI::m_thrPattern
uint32_t m_thrPattern
threshold bit pattern
Definition: Jet_ROI.h:92
Jet_ROI::setET6x6
void setET6x6(float value)
Set the ET deposited in a 6x6 cluster.
Definition: Jet_ROI.h:73
Jet_ROI::eta
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition: Jet_ROI.h:80
Jet_ROI::Jet_ROI
Jet_ROI()
Default constructor (for persistency purposes)
Definition: Jet_ROI.cxx:27
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
Jet_ROI::getEta
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition: Jet_ROI.h:48
athena.value
value
Definition: athena.py:122
Jet_ROI::m_phi
float m_phi
phi coordinate of RoI
Definition: Jet_ROI.h:90
Jet_ROI::getPhi
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition: Jet_ROI.h:50
Jet_ROI::pt
virtual double pt() const
Return the pT of the highest threshold passed.
Definition: Jet_ROI.cxx:52
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
Jet_ROI::getThrPattern
uint32_t getThrPattern() const
Return the bit-pattern describing the passed thresholds.
Definition: Jet_ROI.h:52
Jet_ROI::~Jet_ROI
virtual ~Jet_ROI()
Destructor.
Definition: Jet_ROI.cxx:40
Jet_ROI::getET8x8
float getET8x8() const
Return the ET deposited in an 8x8 cluster.
Definition: Jet_ROI.h:58
Jet_ROI::phi
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition: Jet_ROI.h:82
Jet_ROI::m_thresholdNames
thresholds_type m_thresholdNames
Names of the passed thresholds.
Definition: Jet_ROI.h:94
Jet_ROI::getET4x4
float getET4x4() const
Return the ET deposited in a 4x4 cluster.
Definition: Jet_ROI.h:54
Jet_ROI::m_eta
float m_eta
eta coordinate of RoI
Definition: Jet_ROI.h:89
P4PtEtaPhiMBase
Definition: P4PtEtaPhiMBase.h:26
Jet_ROI::getET6x6
float getET6x6() const
Return the ET deposited in a 6x6 cluster.
Definition: Jet_ROI.h:56
NavigableTerminalNode.h
Jet_ROI::addThresholdValue
void addThresholdValue(thr_value_type::value_type thr)
Add the value of a threshold that this RoI passed.
Definition: Jet_ROI.h:68
xAOD::thrPattern
thrPattern
Definition: EmTauRoI_v2.cxx:60
Jet_ROI::m_ET4x4
float m_ET4x4
ET sum in a 4x4 cluster.
Definition: Jet_ROI.h:97
INavigable4Momentum
Definition: INavigable4Momentum.h:21
Jet_ROI::getThresholdNames
const thresholds_type & getThresholdNames() const
Return the names of the passed threshodlds.
Definition: Jet_ROI.h:61
Jet_ROI::m_ET8x8
float m_ET8x8
ET sum in an 8x8 cluster.
Definition: Jet_ROI.h:99
Jet_ROI::m_roiWord
uint32_t m_roiWord
32bit encoded ROI word
Definition: Jet_ROI.h:87
Jet_ROI::setET8x8
void setET8x8(float value)
Set the ET deposited in an 8x8 cluster.
Definition: Jet_ROI.h:75
Jet_ROI::getROIWord
uint32_t getROIWord() const
Return the RoI word produced by the L1Calo hardware.
Definition: Jet_ROI.h:46
Jet_ROI::getThresholdValues
const thr_value_type & getThresholdValues() const
Return the values of the passed thresholds.
Definition: Jet_ROI.h:63
Jet_ROI::thresholds_type
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
Definition: Jet_ROI.h:41
Jet_ROI::m
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition: Jet_ROI.h:84