ATLAS Offline Software
Loading...
Searching...
No Matches
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
28class Jet_ROI : public P4PtEtaPhiMBase,
30 virtual public INavigable4Momentum {
31
32public:
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
86private:
87 uint32_t m_roiWord;
88
89 float m_eta;
90 float m_phi;
91
92 uint32_t m_thrPattern;
93
96
97 float m_ET4x4;
98 float m_ET6x6;
99 float m_ET8x8;
100
101}; // class Jet_ROI
102
103#endif
void addThresholdName(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
Definition Jet_ROI.h:66
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition Jet_ROI.h:48
float getET6x6() const
Return the ET deposited in a 6x6 cluster.
Definition Jet_ROI.h:56
Jet_ROI(uint32_t roiWord, float eta, float phi, uint32_t thrPattern)
Constructor used when creating the object from RoIBResult data.
Definition Jet_ROI.cxx:15
void setET6x6(float value)
Set the ET deposited in a 6x6 cluster.
Definition Jet_ROI.h:73
float m_phi
phi coordinate of RoI
Definition Jet_ROI.h:90
void setET4x4(float value)
Set the ET deposited in a 4x4 cluster.
Definition Jet_ROI.h:71
uint32_t getROIWord() const
Return the RoI word produced by the L1Calo hardware.
Definition Jet_ROI.h:46
void setET8x8(float value)
Set the ET deposited in an 8x8 cluster.
Definition Jet_ROI.h:75
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition Jet_ROI.h:80
const thresholds_type & getThresholdNames() const
Return the names of the passed threshodlds.
Definition Jet_ROI.h:61
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
Definition Jet_ROI.h:41
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition Jet_ROI.h:82
uint32_t m_thrPattern
threshold bit pattern
Definition Jet_ROI.h:92
float getET4x4() const
Return the ET deposited in a 4x4 cluster.
Definition Jet_ROI.h:54
virtual ~Jet_ROI()
Destructor.
Definition Jet_ROI.cxx:40
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition Jet_ROI.h:84
Jet_ROI()
Default constructor (for persistency purposes)
Definition Jet_ROI.cxx:27
thresholds_type m_thresholdNames
Names of the passed thresholds.
Definition Jet_ROI.h:94
float m_eta
eta coordinate of RoI
Definition Jet_ROI.h:89
float m_ET8x8
ET sum in an 8x8 cluster.
Definition Jet_ROI.h:99
float m_ET6x6
ET sum in a 6x6 cluster.
Definition Jet_ROI.h:98
float m_ET4x4
ET sum in a 4x4 cluster.
Definition Jet_ROI.h:97
virtual double pt() const
Return the pT of the highest threshold passed.
Definition Jet_ROI.cxx:52
std::vector< float > thr_value_type
Type storing the values of the passed thresholds.
Definition Jet_ROI.h:43
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition Jet_ROI.h:50
uint32_t getThrPattern() const
Return the bit-pattern describing the passed thresholds.
Definition Jet_ROI.h:52
uint32_t m_roiWord
32bit encoded ROI word
Definition Jet_ROI.h:87
float getET8x8() const
Return the ET deposited in an 8x8 cluster.
Definition Jet_ROI.h:58
thr_value_type m_thresholdValues
Values of the passed thresholds.
Definition Jet_ROI.h:95
void addThresholdValue(thr_value_type::value_type thr)
Add the value of a threshold that this RoI passed.
Definition Jet_ROI.h:68
const thr_value_type & getThresholdValues() const
Return the values of the passed thresholds.
Definition Jet_ROI.h:63
P4PtEtaPhiMBase is a base class for classes with 4-momentum behavior, for which pt,...