ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
src
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
12
#include "
TrigT1CaloEvent/JetROI.h
"
13
namespace
LVL1
{
14
15
JetROI::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
),
20
m_energy
(
energy
),
21
m_cluster4
(cluster4),
22
m_cluster6
(cluster6),
23
m_cluster8
(cluster8),
24
m_roiWord
(
roiWord
),
25
m_isSaturated
(
saturated
)
26
{
27
}
28
29
JetROI::~JetROI
(){
30
//delete m_algorithmType;
31
}
32
35
unsigned
int
LVL1::JetROI::roiWord
()
const
{
36
return
m_roiWord
;
37
}
38
41
bool
LVL1::JetROI::thresholdPassed
(
int
thresh)
const
{
42
if
(
m_roiWord
& (1<<(thresh-1)) )
return
true
;
43
return
false
;
44
}
45
48
bool
LVL1::JetROI::fwdThresholdPassed
(
int
thresh)
const
{
49
if
(
m_roiWord
& (1<<(thresh+7)) )
return
true
;
50
return
false
;
51
}
52
54
bool
LVL1::JetROI::isForward
()
const
{
55
if
((
m_eta
<-3.1)||(
m_eta
>3.1))
return
true
;
56
return
false
;
57
}
58
61
LVL1::TrigT1CaloDefs::JetWindowSize
LVL1::JetROI::thresholdType
(
int
/*thresh*/
)
const
{
62
// shouldn't ever be reached.
63
return
TrigT1CaloDefs::JetWinError
;
64
}
65
66
68
double
LVL1::JetROI::eta
()
const
{
69
return
m_eta
;
70
}
71
73
double
LVL1::JetROI::phi
()
const
{
74
return
m_phi
;
75
}
76
77
79
int
LVL1::JetROI::energy
()
const
{
80
return
m_energy
;
81
}
82
88
bool
LVL1::JetROI::saturated
()
const
{
89
return
m_isSaturated
;
90
}
91
92
93
}
//end of LVL1 namespace defn
JetROI.h
LVL1::JetROI::saturated
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
LVL1::JetROI::m_roiWord
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition
JetROI.h:105
LVL1::JetROI::JetROI
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
LVL1::JetROI::m_eta
double m_eta
eta coord of ROI
Definition
JetROI.h:88
LVL1::JetROI::thresholdType
TrigT1CaloDefs::JetWindowSize thresholdType(int threshold_number) const
returns type of thresholds number threshold_number
Definition
JetROI.cxx:61
LVL1::JetROI::~JetROI
~JetROI()
Definition
JetROI.cxx:29
LVL1::JetROI::roiWord
unsigned int roiWord() const
returns the 32bit ROI word.
Definition
JetROI.cxx:35
LVL1::JetROI::thresholdPassed
bool thresholdPassed(int threshold_number) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition
JetROI.cxx:41
LVL1::JetROI::m_cluster8
int m_cluster8
Energy of most energetic cluster.
Definition
JetROI.h:100
LVL1::JetROI::m_isSaturated
bool m_isSaturated
saturation flag
Definition
JetROI.h:108
LVL1::JetROI::eta
double eta() const
returns eta coord of ROI
Definition
JetROI.cxx:68
LVL1::JetROI::fwdThresholdPassed
bool fwdThresholdPassed(int threshold_number) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition
JetROI.cxx:48
LVL1::JetROI::phi
double phi() const
returns phi coord of ROI
Definition
JetROI.cxx:73
LVL1::JetROI::isForward
bool isForward() const
returns true if the RoI is a forward jet
Definition
JetROI.cxx:54
LVL1::JetROI::m_energy
int m_energy
Energy of ROI core,.
Definition
JetROI.h:91
LVL1::JetROI::m_cluster6
int m_cluster6
Energy of most energetic cluster.
Definition
JetROI.h:97
LVL1::JetROI::m_cluster4
int m_cluster4
Energy of most energetic cluster.
Definition
JetROI.h:94
LVL1::JetROI::energy
int energy() const
returns the energy
Definition
JetROI.cxx:79
LVL1::JetROI::m_phi
double m_phi
phi coord of ROI
Definition
JetROI.h:85
LVL1::TrigT1CaloDefs::JetWindowSize
JetWindowSize
Definition
TrigT1CaloDefs.h:215
LVL1::TrigT1CaloDefs::JetWinError
@ JetWinError
Definition
TrigT1CaloDefs.h:219
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0