ATLAS Offline Software
RecEmTauRoI.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 // $Id: RecEmTauRoI.h 782811 2016-11-07 17:20:40Z smh $
3 /*
4  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 */
6 /***************************************************************************
7  RecEmTauRoI.h - description
8  -------------------
9  begin : Mon Jan 22 2001
10  email : moyse@heppch.ph.qmw.ac.uk
11 ***************************************************************************/
12 
13 
14 #ifndef TRIGT1INTERFACES_RECEMTAUROI_H
15 #define TRIGT1INTERFACES_RECEMTAUROI_H
16 
17 // STL include(s):
18 #include <map>
19 #include <vector>
20 
21 // Gaudi/Athena include(s):
23 
24 // Local include(s):
28 
29 // Forward declaration(s):
30 namespace TrigConf {
31  class TriggerThreshold;
32  class L1Menu;
33 }
34 
35 namespace LVL1 {
36 
37  class CPRoIDecoder;
38 
44  class RecEmTauRoI : public iRecCoordRoI {
45 
46  public:
47  // constructor
50  RecEmTauRoI( unsigned int RoIWord,
51  const std::vector< TrigConf::TriggerThreshold* >* caloThresholds );
53  RecEmTauRoI( unsigned int RoIWord,
54  const TrigConf::L1Menu * const l1menu );
55 
56  // copy constructor
57  RecEmTauRoI(const RecEmTauRoI &obj);
58 
59  // assignment operator
61 
62  // destructor
63  ~RecEmTauRoI();
64 
66  virtual unsigned int roiWord() const;
67 
69  virtual double phi() const;
70 
72  virtual double eta() const;
73 
75  virtual unsigned int crate() const;
76 
78  virtual unsigned int module() const;
79 
81  virtual unsigned int fpga() const;
82 
84  virtual unsigned int localcoord() const;
85 
87  virtual unsigned int et() const;
88 
90  virtual unsigned int isolation() const;
91 
94  virtual TrigT1CaloDefs::RoIType roiType() const;
95 
98  bool passedThreshold( unsigned int threshold_number ) const;
99 
102  CoordinateRange coord() const;
103 
105  std::vector< unsigned int >* thresholdsPassed() const;
106 
108  unsigned int thresholdPattern() const;
109 
113  unsigned int triggerThreshold( unsigned int thresh ) const;
114 
116  unsigned int emIsolation( unsigned int thresh ) const;
117 
119  unsigned int hadIsolation( unsigned int thresh ) const ;
120 
122  unsigned int hadCoreIsolation( unsigned int thresh ) const;
123 
125  unsigned int isolationMask( unsigned int thresh ) const;
126 
128  bool isValidThreshold( unsigned int thresh ) const;
129 
133 
134  private:
138  unsigned long int m_roiWord { 0 };
139 
142 
145 
149 
150  unsigned long int m_thresholdMask { 0 };
151  std::map< int, unsigned int > m_triggerThresholdValue;
152  std::map< int, unsigned int > m_isolationMask;
153  std::map< int, unsigned int > m_emIsolation;
154  std::map< int, unsigned int > m_hadIsolation;
155  std::map< int, unsigned int > m_hadCoreIsolation;
156  std::map< int, TrigT1CaloDefs::ClusterAlgorithm > m_thresholdType;
157 
158 
159  private:
160  // constructors for Run 1 and Run 2 data
161  void constructRun1( const std::vector< TrigConf::TriggerThreshold* >* caloThresholds );
162 
163  void constructRun2( const std::vector< TrigConf::TriggerThreshold* >* caloThresholds );
164 
165  void constructRun3( const TrigConf::L1Menu * const l1menu );
166 
167  }; // class RecEmTauRoI
168 
169 } // namespace LVL1
170 
171 #include "AthenaKernel/CLASS_DEF.h"
173 CLASS_DEF( LVL1::RecEmTauRoI, 6257, 1 )
174 
175 #endif // TRIGT1INTERFACES_RECEMTAUROI_H
LVL1::RecEmTauRoI::operator=
RecEmTauRoI & operator=(const RecEmTauRoI &obj)
Definition: RecEmTauRoI.cxx:87
LVL1::RecEmTauRoI::hadIsolation
unsigned int hadIsolation(unsigned int thresh) const
returns the value of the hadronic layer isolation ring for the threshold passed.
Definition: RecEmTauRoI.cxx:465
LVL1::RecEmTauRoI::hadCoreIsolation
unsigned int hadCoreIsolation(unsigned int thresh) const
returns the value of the hadronic layer core isolation for the threshold passed.
Definition: RecEmTauRoI.cxx:480
LVL1::RecEmTauRoI::m_thresholdType
std::map< int, TrigT1CaloDefs::ClusterAlgorithm > m_thresholdType
Definition: RecEmTauRoI.h:156
LVL1::RecEmTauRoI::crate
virtual unsigned int crate() const
returns CP crate number
Definition: RecEmTauRoI.cxx:346
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:35
LVL1::RecEmTauRoI::isolation
virtual unsigned int isolation() const
returns roi isolation results (Run 2 only)
Definition: RecEmTauRoI.cxx:367
LVL1::RecEmTauRoI::m_decoder
CPRoIDecoder * m_decoder
Used for decoding RoI word.
Definition: RecEmTauRoI.h:141
LVL1::RecEmTauRoI::coord
CoordinateRange coord() const
returns the CoordinateRange.
Definition: RecEmTauRoI.cxx:393
TrigConf::L1Menu
L1 menu configuration.
Definition: L1Menu.h:28
LVL1::TrigT1CaloDefs::ClusterAlgorithm
ClusterAlgorithm
Definition: TrigT1CaloDefs.h:207
LVL1::RecEmTauRoI::m_emIsolation
std::map< int, unsigned int > m_emIsolation
Definition: RecEmTauRoI.h:153
LVL1::RecEmTauRoI::roiWord
virtual unsigned int roiWord() const
returns roi word
Definition: RecEmTauRoI.cxx:330
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::RecEmTauRoI::constructRun2
void constructRun2(const std::vector< TrigConf::TriggerThreshold * > *caloThresholds)
Content of RoI word different in Run 2.
Definition: RecEmTauRoI.cxx:196
LVL1::RecEmTauRoI::m_hadCoreIsolation
std::map< int, unsigned int > m_hadCoreIsolation
Definition: RecEmTauRoI.h:155
LVL1::RecEmTauRoI::passedThreshold
bool passedThreshold(unsigned int threshold_number) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition: RecEmTauRoI.cxx:382
iRecCoordRoI
Interface for all reconstructed RoI classes.
Definition: iRecCoordRoI.h:26
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
LVL1::RecEmTauRoI::isValidThreshold
bool isValidThreshold(unsigned int thresh) const
returns true if thresh is a valid threshold number
Definition: RecEmTauRoI.cxx:495
LVL1::CoordinateRange
CoordinateRange class declaration.
Definition: CoordinateRange.h:36
LVL1::RecEmTauRoI::constructRun3
void constructRun3(const TrigConf::L1Menu *const l1menu)
Definition: RecEmTauRoI.cxx:257
LVL1::RecEmTauRoI::fpga
virtual unsigned int fpga() const
returns FPGA number
Definition: RecEmTauRoI.cxx:355
iRecCoordRoI.h
LVL1::TrigT1CaloDefs::RoIWordTypeError
@ RoIWordTypeError
Definition: TrigT1CaloDefs.h:174
LVL1::RecEmTauRoI::RecEmTauRoI
RecEmTauRoI()
Definition: RecEmTauRoI.h:48
LVL1::RecEmTauRoI::triggerThreshold
unsigned int triggerThreshold(unsigned int thresh) const
returns the value of the trigger threshold for the threshold passed.
Definition: RecEmTauRoI.cxx:419
LVL1::RecEmTauRoI
This class defines the reconstructed em/tau hadron ROI.
Definition: RecEmTauRoI.h:44
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LVL1::RecEmTauRoI::thresholdsPassed
std::vector< unsigned int > * thresholdsPassed() const
returns a vector of thresholds passed.
Definition: RecEmTauRoI.cxx:397
LVL1::RecEmTauRoI::phi
virtual double phi() const
returns phi coord of ROI
Definition: RecEmTauRoI.cxx:333
LVL1::RecEmTauRoI::m_thresholdMask
unsigned long int m_thresholdMask
Definition: RecEmTauRoI.h:150
LVL1::RecEmTauRoI::constructRun1
void constructRun1(const std::vector< TrigConf::TriggerThreshold * > *caloThresholds)
The "construct" call unpacks the RoIWord and copies information about the passed thresholds from the ...
Definition: RecEmTauRoI.cxx:120
LVL1::RecEmTauRoI::thresholdType
TrigT1CaloDefs::ClusterAlgorithm thresholdType(unsigned int thresh) const
returns the type of the threshold, which is either EMAlg or TauAlg.
Definition: RecEmTauRoI.cxx:515
TrigT1CaloDefs.h
LVL1::TrigT1CaloDefs::RoIType
RoIType
Definition: TrigT1CaloDefs.h:165
LVL1::CPRoIDecoder
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition: CPRoIDecoder.h:37
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LVL1::RecEmTauRoI::m_isolationMask
std::map< int, unsigned int > m_isolationMask
Definition: RecEmTauRoI.h:152
LVL1::RecEmTauRoI::localcoord
virtual unsigned int localcoord() const
returns local coordinate within FPGA
Definition: RecEmTauRoI.cxx:358
CoordinateRange.h
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LVL1::RecEmTauRoI::m_hadIsolation
std::map< int, unsigned int > m_hadIsolation
Definition: RecEmTauRoI.h:154
LVL1::RecEmTauRoI::roiType
virtual TrigT1CaloDefs::RoIType roiType() const
returns roi type (EM = TrigT1CaloDefs::EMRoIWordType, Tau = TrigT1CaloDefs::TauRoIWordType,...
Definition: RecEmTauRoI.cxx:378
python.XMLReader.l1menu
l1menu
Definition: XMLReader.py:73
LVL1::RecEmTauRoI::module
virtual unsigned int module() const
returns CPM number
Definition: RecEmTauRoI.cxx:349
LVL1::RecEmTauRoI::m_coordRange
CoordinateRange m_coordRange
this contains the coordinate range worked out from the RoIWord hardware coord (i.e.
Definition: RecEmTauRoI.h:148
LVL1::RecEmTauRoI::m_type
TrigT1CaloDefs::RoIType m_type
Stored properties of the RoI:
Definition: RecEmTauRoI.h:144
LVL1::RecEmTauRoI::m_roiWord
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition: RecEmTauRoI.h:138
LVL1::RecEmTauRoI::~RecEmTauRoI
~RecEmTauRoI()
Definition: RecEmTauRoI.cxx:106
LVL1::RecEmTauRoI::eta
virtual double eta() const
returns eta coord of ROI
Definition: RecEmTauRoI.cxx:343
LVL1::RecEmTauRoI::thresholdPattern
unsigned int thresholdPattern() const
returns bitmask of passed thresholds
Definition: RecEmTauRoI.cxx:374
LVL1::RecEmTauRoI::m_triggerThresholdValue
std::map< int, unsigned int > m_triggerThresholdValue
Definition: RecEmTauRoI.h:151
python.PyAthena.obj
obj
Definition: PyAthena.py:135
LVL1::RecEmTauRoI::isolationMask
unsigned int isolationMask(unsigned int thresh) const
returns the isolation bits required for the threshold passed (Run 2)
Definition: RecEmTauRoI.cxx:433
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::RecEmTauRoI::et
virtual unsigned int et() const
returns roi ET (Run 2 only)
Definition: RecEmTauRoI.cxx:364
LVL1::RecEmTauRoI::emIsolation
unsigned int emIsolation(unsigned int thresh) const
returns the value of the em isolation ring for the threshold passed.
Definition: RecEmTauRoI.cxx:449