ATLAS Offline Software
EmTauROI.h
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.h - description
6  -------------------
7  begin : Mon Jan 22 2001
8  email : moyse@heppch.ph.qmw.ac.uk
9  ***************************************************************************/
10 
11 
12 #ifndef EMTAUROI_H
13 #define EMTAUROI_H
14 
15 // Gaudi kernel stuff.
16 
18 #include "AthLinks/ElementLink.h"
20 
21 
22 //LVL1 Calo trigger includes
25 
26 namespace LVL1 {
27 
35  class EmTauROI {
36 
37  public:
38 
39  // constructor
40  EmTauROI(double phi, double eta, int energy, unsigned long int roiWord,const std::vector<unsigned int>& algorithmType,
41  unsigned int hadCoreEnergy, unsigned int hadRingIsolationEnergy, unsigned int emRingIsolationEnergy,
42  unsigned int emClusterEnergy, unsigned int tauClusterEnergy);
43 
44  // destructor
45  ~EmTauROI();
46 
49  unsigned int roiWord() const;
50 
56  bool saturated() const;
57 
59  double phi() const;
60 
62  double eta() const;
63 
66  int energy() const;
67 
70  bool thresholdPassed(int thresh) const;
71 
75 
76 
78  unsigned int emRingIsolationEnergy() const {return m_emRingIsolationEnergy;};
80  unsigned int hadRingIsolationEnergy() const {return m_hadRingIsolationEnergy;} ;
82  unsigned int hadCoreEnergy() const {return m_hadCoreEnergy;};
84  unsigned int clusterEnergy() const {return m_emClusterEnergy;};
85  unsigned int tauClusterEnergy() const {return m_tauClusterEnergy;};
86 
87  private: // Private attributes
88 
90  double m_phi;
91 
93  double m_eta;
94 
97  int m_energy;
98 
102  unsigned long int m_roiWord;
103 
105  std::vector<unsigned int> m_algorithmType;
106 
108  unsigned int m_emRingIsolationEnergy;
110  unsigned int m_hadRingIsolationEnergy;
112  unsigned int m_hadCoreEnergy;
114  unsigned int m_emClusterEnergy;
115  unsigned int m_tauClusterEnergy;
116 private: // Private methods
118  void checkValidThreshNum(unsigned int thresh) const {if ( (thresh<1)||(thresh>TrigT1CaloDefs::numOfCPThresholds) ) std::cout <<"EmTauROI:: Threshold "<<thresh<<" outside range"<<std::endl;};
119 
120 };
121 }//end of LVL1 namespace defn
122 
123 #endif
LVL1::EmTauROI::m_hadCoreEnergy
unsigned int m_hadCoreEnergy
Used for debugging only! Not present to higher triggers in hardware.
Definition: EmTauROI.h:122
LVL1::EmTauROI::m_algorithmType
std::vector< unsigned int > m_algorithmType
Contains the algo type of thresh sets.
Definition: EmTauROI.h:115
LVL1::EmTauROI::m_emRingIsolationEnergy
unsigned int m_emRingIsolationEnergy
Used for debugging only! Not present to higher triggers in hardware.
Definition: EmTauROI.h:118
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:36
LVL1::EmTauROI::hadCoreEnergy
unsigned int hadCoreEnergy() const
return energy
Definition: EmTauROI.h:92
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:208
LVL1::EmTauROI::m_phi
double m_phi
phi coord of ROI
Definition: EmTauROI.h:95
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::EmTauROI::checkValidThreshNum
void checkValidThreshNum(unsigned int thresh) const
checks that the passed threshold is a valid number
Definition: EmTauROI.h:128
LVL1::EmTauROI::clusterEnergy
unsigned int clusterEnergy() const
return energy
Definition: EmTauROI.h:94
LVL1::EmTauROI::energy
int energy() const
returns the energy of the ROI core, i.e.
Definition: EmTauROI.cxx:93
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::EmTauROI::tauClusterEnergy
unsigned int tauClusterEnergy() const
Definition: EmTauROI.h:95
LVL1::EmTauROI::m_roiWord
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition: EmTauROI.h:112
LVL1::EmTauROI::hadRingIsolationEnergy
unsigned int hadRingIsolationEnergy() const
return energy
Definition: EmTauROI.h:90
TriggerTower_ClassDEF.h
LVL1::EmTauROI::phi
double phi() const
returns phi coord of ROI
Definition: EmTauROI.cxx:87
TrigT1CaloDefs.h
LVL1::EmTauROI::m_hadRingIsolationEnergy
unsigned int m_hadRingIsolationEnergy
Used for debugging only! Not present to higher triggers in hardware.
Definition: EmTauROI.h:120
LVL1::EmTauROI::m_tauClusterEnergy
unsigned int m_tauClusterEnergy
Definition: EmTauROI.h:125
LVL1::EmTauROI::m_energy
int m_energy
Energy of ROI core, i.e.
Definition: EmTauROI.h:107
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
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LVL1::TrigT1CaloDefs::numOfCPThresholds
static const unsigned int numOfCPThresholds
Definition: TrigT1CaloDefs.h:125
LVL1::EmTauROI::m_emClusterEnergy
unsigned int m_emClusterEnergy
Used for debugging only! Not present to higher triggers in hardware.
Definition: EmTauROI.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
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
TriggerTower.h
LVL1::EmTauROI::emRingIsolationEnergy
unsigned int emRingIsolationEnergy() const
return energy
Definition: EmTauROI.h:88
LVL1::EmTauROI::m_eta
double m_eta
eta coord of ROI
Definition: EmTauROI.h:103
LVL1::EmTauROI::roiWord
unsigned int roiWord() const
returns the 32bit ROI word.
Definition: EmTauROI.cxx:42