ATLAS Offline Software
EmTauROI.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  emtauroi.cxx - description
6  -------------------
7  begin : Mon Jan 22 2001
8  email : moyse@heppch.ph.qmw.ac.uk
9  ***************************************************************************/
10 
11 
13 
14 namespace LVL1 {
15 
16 EmTauROI::EmTauROI(double phi, double eta, int energy, unsigned long int roiWord, const std::vector<unsigned int>& algorithmType,
17  unsigned int hadCoreEnergy, unsigned int hadRingIsolationEnergy, unsigned int emRingIsolationEnergy,
18  unsigned int emClusterEnergy, unsigned int tauClusterEnergy):
19  m_phi(phi),
20  m_eta(eta),
21  m_energy(energy),
22  m_roiWord(roiWord),
23  m_algorithmType(algorithmType),
24  m_emRingIsolationEnergy(emRingIsolationEnergy),
25  m_hadRingIsolationEnergy(hadRingIsolationEnergy),
26  m_hadCoreEnergy(hadCoreEnergy),
27  m_emClusterEnergy(emClusterEnergy),
28  m_tauClusterEnergy(tauClusterEnergy)
29 {
30 }
31 
33 }
34 
37 unsigned int LVL1::EmTauROI::roiWord() const{
38  return m_roiWord;
39 }
40 
41 
45 
46  if (m_roiWord & (1<<(thresh-1)) ){
47  return true;
48  }else{
49  return false;
50  }
51 }
52 
55  // This information is currently stored as a vector
56  // within all EmTauROIs. This is not ideal - I
57  // would rather it was looked up from a database.
58  // maybe I should just look it up from CTPCaloConfig?
59  if (thresh<1 || thresh > int(TrigT1CaloDefs::numOfCPThresholds)){
60  // outside allowed values.
62  }
63  switch ( m_algorithmType[thresh-1] ){
64  case 0 : return TrigT1CaloDefs::EMAlg;
65  break;
66  case 1 : return TrigT1CaloDefs::TauAlg;
67  break;
69  }//end switch
70 
71  // shouldn't ever be reached.
73 }
74 
75 
77 double LVL1::EmTauROI::eta() const {
78  return m_eta;
79 }
80 
82 double LVL1::EmTauROI::phi() const {
83  return m_phi;
84 }
85 
86 
88 int LVL1::EmTauROI::energy() const {
89  return m_energy;
90 }
91 
97 bool LVL1::EmTauROI::saturated() const {
98  // Saturation flag is bit 16 of RoIWord
99  bool sat = (m_roiWord >> 16)&0x1;
100  return sat;
101 }
102 
103 
104 }//end of LVL1 namespace defn
105 
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
LVL1::TrigT1CaloDefs::ClustAlgError
@ ClustAlgError
Definition: TrigT1CaloDefs.h:211
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:35
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
LVL1::EmTauROI::eta
double eta() const
returns eta coord of ROI
Definition: EmTauROI.cxx:82
LVL1::EmTauROI::~EmTauROI
~EmTauROI()
Definition: EmTauROI.cxx:37
LVL1::TrigT1CaloDefs::ClusterAlgorithm
ClusterAlgorithm
Definition: TrigT1CaloDefs.h:207
LVL1::TrigT1CaloDefs::EMAlg
@ EMAlg
Definition: TrigT1CaloDefs.h:208
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::EmTauROI::energy
int energy() const
returns the energy of the ROI core, i.e.
Definition: EmTauROI.cxx:93
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
LVL1::EmTauROI::thresholdType
TrigT1CaloDefs::ClusterAlgorithm thresholdType(int thresh) const
returns type of thresholds number threshold_number Thresholds numbered from 1 to TrigT1CaloDefs::numO...
Definition: EmTauROI.cxx:59
LVL1::TrigT1CaloDefs::TauAlg
@ TauAlg
Definition: TrigT1CaloDefs.h:209
EmTauROI.h
LVL1::EmTauROI::phi
double phi() const
returns phi coord of ROI
Definition: EmTauROI.cxx:87
LVL1::EmTauROI::EmTauROI
EmTauROI(double phi, double eta, int energy, unsigned long int roiWord, const std::vector< unsigned int > &algorithmType, unsigned int hadCoreEnergy, unsigned int hadRingIsolationEnergy, unsigned int emRingIsolationEnergy, unsigned int emClusterEnergy, unsigned int tauClusterEnergy)
Definition: EmTauROI.cxx:21
LVL1::TrigT1CaloDefs::numOfCPThresholds
static const unsigned int numOfCPThresholds
Definition: TrigT1CaloDefs.h:124
LVL1::EmTauROI::thresholdPassed
bool thresholdPassed(int thresh) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition: EmTauROI.cxx:49
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
LVL1::EmTauROI::saturated
bool saturated() const
returns TRUE if ROI constructed from a trigger tower that was saturated - in other words this ROI is ...
Definition: EmTauROI.cxx:102
LVL1::EmTauROI::roiWord
unsigned int roiWord() const
returns the 32bit ROI word.
Definition: EmTauROI.cxx:42