ATLAS Offline Software
Loading...
Searching...
No Matches
EmTau_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
15EmTau_ROI::EmTau_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_Core(0),
19 m_EMClus(0),
20 m_TauClus(0),
21 m_EMIsol(0),
22 m_HadIsol(0),
23 m_HadCore(0) {
24
25}
26
31 : m_roiWord( 0 ), m_eta( 0. ), m_phi( 0. ), m_thrPattern( 0 ),
33 m_Core(0),
34 m_EMClus(0),
35 m_TauClus(0),
36 m_EMIsol(0),
37 m_HadIsol(0),
38 m_HadCore(0) {
39
40}
41
49
58double EmTau_ROI::pt() const {
59 auto itr = std::max_element(m_thresholdValues.begin(), m_thresholdValues.end());
60 return (itr != m_thresholdValues.end() ? *itr : -1);
61}
EmTau_ROI()
Default constructor (for persistency purposes)
Definition EmTau_ROI.cxx:30
uint32_t m_roiWord
32bit encoded ROI word
Definition EmTau_ROI.h:103
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
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
float m_Core
ET of RoI core cluster (used to select window)
Definition EmTau_ROI.h:113
float m_TauClus
Deposited ET in the "tau cluster".
Definition EmTau_ROI.h:115
float m_EMClus
Deposited ET in the "EM cluster".
Definition EmTau_ROI.h:114
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 m_EMIsol
EM calorimeter isolation.
Definition EmTau_ROI.h:116
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