ATLAS Offline Software
Loading...
Searching...
No Matches
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
26namespace LVL1 {
27
34
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
98
102 unsigned long int m_roiWord;
103
105 std::vector<unsigned int> m_algorithmType;
106
112 unsigned int m_hadCoreEnergy;
114 unsigned int m_emClusterEnergy;
115 unsigned int m_tauClusterEnergy;
116private: // 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
An STL vector of pointers that by default owns its pointed-to elements.
int m_energy
Energy of ROI core, i.e.
Definition EmTauROI.h:97
double eta() const
returns eta coord of ROI
Definition EmTauROI.cxx:77
unsigned int hadCoreEnergy() const
return energy
Definition EmTauROI.h:82
unsigned int emRingIsolationEnergy() const
return energy
Definition EmTauROI.h:78
unsigned int m_hadCoreEnergy
Used for debugging only!
Definition EmTauROI.h:112
unsigned int clusterEnergy() const
return energy
Definition EmTauROI.h:84
int energy() const
returns the energy of the ROI core, i.e.
Definition EmTauROI.cxx:88
bool thresholdPassed(int thresh) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition EmTauROI.cxx:44
unsigned int tauClusterEnergy() const
Definition EmTauROI.h:85
double phi() const
returns phi coord of ROI
Definition EmTauROI.cxx:82
unsigned int m_tauClusterEnergy
Definition EmTauROI.h:115
unsigned int m_emRingIsolationEnergy
Used for debugging only!
Definition EmTauROI.h:108
unsigned int m_hadRingIsolationEnergy
Used for debugging only!
Definition EmTauROI.h:110
double m_eta
eta coord of ROI
Definition EmTauROI.h:93
unsigned int hadRingIsolationEnergy() const
return energy
Definition EmTauROI.h:80
std::vector< unsigned int > m_algorithmType
Contains the algo type of thresh sets.
Definition EmTauROI.h:105
bool saturated() const
returns TRUE if ROI constructed from a trigger tower that was saturated - in other words this ROI is ...
Definition EmTauROI.cxx:97
TrigT1CaloDefs::ClusterAlgorithm thresholdType(int thresh) const
returns type of thresholds number threshold_number Thresholds numbered from 1 to TrigT1CaloDefs::numO...
Definition EmTauROI.cxx:54
unsigned int m_emClusterEnergy
Used for debugging only!
Definition EmTauROI.h:114
void checkValidThreshNum(unsigned int thresh) const
checks that the passed threshold is a valid number
Definition EmTauROI.h:118
unsigned int roiWord() const
returns the 32bit ROI word.
Definition EmTauROI.cxx:37
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:16
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition EmTauROI.h:102
double m_phi
phi coord of ROI
Definition EmTauROI.h:90
static const unsigned int numOfCPThresholds
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...