ATLAS Offline Software
Loading...
Searching...
No Matches
Jet_ROI.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// Local include(s):
8
9#include <algorithm>
10
15Jet_ROI::Jet_ROI( uint32_t roiWord, float eta, float phi, uint32_t thrPattern )
16 : m_roiWord( roiWord ), m_eta( eta ), m_phi( phi ), m_thrPattern( thrPattern ),
18 m_ET4x4(0),
19 m_ET6x6(0),
20 m_ET8x8(0) {
21
22}
23
28 : m_roiWord( 0 ), m_eta( 0. ), m_phi( 0. ), m_thrPattern( 0 ),
30 m_ET4x4(0),
31 m_ET6x6(0),
32 m_ET8x8(0) {
33
34}
35
43
52double Jet_ROI::pt() const {
53 auto itr = std::max_element(m_thresholdValues.begin(), m_thresholdValues.end());
54 return (itr != m_thresholdValues.end() ? *itr : -1);
55}
float m_phi
phi coordinate of RoI
Definition Jet_ROI.h:90
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition Jet_ROI.h:80
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
virtual ~Jet_ROI()
Destructor.
Definition Jet_ROI.cxx:40
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
uint32_t m_roiWord
32bit encoded ROI word
Definition Jet_ROI.h:87
thr_value_type m_thresholdValues
Values of the passed thresholds.
Definition Jet_ROI.h:95