ATLAS Offline Software
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 
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 
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 
62  // shouldn't ever be reached.
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
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:35
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:53
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
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:20
LVL1::JetROI::phi
double phi() const
returns phi coord of ROI
Definition: JetROI.cxx:78
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
JetROI.h
LVL1::JetROI::~JetROI
~JetROI()
Definition: JetROI.cxx:34
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::saturated
setScaleOne setStatusOne saturated
Definition: gFexGlobalRoI_v1.cxx:51
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
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:46
LVL1::JetROI::energy
int energy() const
returns the energy
Definition: JetROI.cxx:84
LVL1::JetROI::thresholdType
TrigT1CaloDefs::JetWindowSize thresholdType(int threshold_number) const
returns type of thresholds number threshold_number
Definition: JetROI.cxx:66
LVL1::JetROI::eta
double eta() const
returns eta coord of ROI
Definition: JetROI.cxx:73
LVL1::JetROI::roiWord
unsigned int roiWord() const
returns the 32bit ROI word.
Definition: JetROI.cxx:40
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:93
LVL1::TrigT1CaloDefs::JetWindowSize
JetWindowSize
Definition: TrigT1CaloDefs.h:214
LVL1::JetROI::isForward
bool isForward() const
returns true if the RoI is a forward jet
Definition: JetROI.cxx:59
LVL1::TrigT1CaloDefs::JetWinError
@ JetWinError
Definition: TrigT1CaloDefs.h:218