ATLAS Offline Software
Loading...
Searching...
No Matches
JetROI.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4/***************************************************************************
5 Jetroi.cxx - description
6 -------------------
7 begin : Mon Jan 22 2001
8 email : moyse@heppch.ph.qmw.ac.uk
9 ***************************************************************************/
10
11
13namespace LVL1 {
14
15JetROI::JetROI(double phi, double eta, int energy, unsigned long int roiWord,
16 unsigned int cluster4, unsigned int cluster6, unsigned int cluster8,
17 bool saturated):
18 m_phi(phi),
19 m_eta(eta),
21 m_cluster4(cluster4),
22 m_cluster6(cluster6),
23 m_cluster8(cluster8),
26{
27}
28
30 //delete m_algorithmType;
31}
32
35unsigned int LVL1::JetROI::roiWord() const{
36 return m_roiWord;
37}
38
41bool LVL1::JetROI::thresholdPassed(int thresh) const {
42 if (m_roiWord & (1<<(thresh-1)) )return true;
43 return false;
44}
45
48bool LVL1::JetROI::fwdThresholdPassed(int thresh) const {
49 if (m_roiWord & (1<<(thresh+7)) )return true;
50 return false;
51}
52
55 if ((m_eta<-3.1)||(m_eta>3.1)) return true;
56 return false;
57}
58
62 // shouldn't ever be reached.
64}
65
66
68double LVL1::JetROI::eta() const {
69 return m_eta;
70}
71
73double LVL1::JetROI::phi() const {
74 return m_phi;
75}
76
77
80 return m_energy;
81}
82
89 return m_isSaturated;
90}
91
92
93}//end of LVL1 namespace defn
bool saturated() const
returns TRUE if ROI constructed from a Jet Element that was saturated - in other words this ROI is si...
Definition JetROI.cxx:88
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition JetROI.h:105
JetROI(double phi, double eta, int energy, unsigned long int roiWord, unsigned int m_cluster4, unsigned int m_cluster6, unsigned int m_cluster8, bool saturated)
Definition JetROI.cxx:15
double m_eta
eta coord of ROI
Definition JetROI.h:88
TrigT1CaloDefs::JetWindowSize thresholdType(int threshold_number) const
returns type of thresholds number threshold_number
Definition JetROI.cxx:61
unsigned int roiWord() const
returns the 32bit ROI word.
Definition JetROI.cxx:35
bool thresholdPassed(int threshold_number) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition JetROI.cxx:41
int m_cluster8
Energy of most energetic cluster.
Definition JetROI.h:100
bool m_isSaturated
saturation flag
Definition JetROI.h:108
double eta() const
returns eta coord of ROI
Definition JetROI.cxx:68
bool fwdThresholdPassed(int threshold_number) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition JetROI.cxx:48
double phi() const
returns phi coord of ROI
Definition JetROI.cxx:73
bool isForward() const
returns true if the RoI is a forward jet
Definition JetROI.cxx:54
int m_energy
Energy of ROI core,.
Definition JetROI.h:91
int m_cluster6
Energy of most energetic cluster.
Definition JetROI.h:97
int m_cluster4
Energy of most energetic cluster.
Definition JetROI.h:94
int energy() const
returns the energy
Definition JetROI.cxx:79
double m_phi
phi coord of ROI
Definition JetROI.h:85
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...