ATLAS Offline Software
JEPRoIDecoder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 /***************************************************************************
5  JEPRoIDecoder.h - description
6  -------------------
7  begin : Fri Apr 19 2002
8  email : moyse@ph.qmw.ac.uk
9 ***************************************************************************/
10 
11 #ifndef TRIGT1INTERFACES_JEPROIDECODER_H
12 #define TRIGT1INTERFACES_JEPROIDECODER_H
13 
14 #include <vector>
15 
18 
19 namespace LVL1 {
20 
28  class JEPRoIDecoder : public RoIDecoder {
29 
30  public:
31  JEPRoIDecoder();
32  virtual ~JEPRoIDecoder();
33 
34  TrigT1CaloDefs::RoIType roiType( unsigned int word ) const;
35 
37  unsigned int jetRoIVersion( unsigned int word ) const;
38 
40  virtual CoordinateRange coordinate( const unsigned int roiWord ) const override;
42  unsigned int crate( const unsigned int word ) const;
43  unsigned int module( const unsigned int word ) const;
44  unsigned int row( const unsigned int word ) const;
45  unsigned int column( const unsigned int word ) const;
48  const std::vector< unsigned int > thresholdsPassed( const unsigned int word ) const;
49  const std::vector<unsigned int> fwdThresholdsPassed( const unsigned int word ) const;
50 
52  unsigned int etLarge( const unsigned int word ) const;
53  unsigned int etSmall( const unsigned int word ) const;
54 
56  int energyX( unsigned int energyRoIWord0 ) const;
58  int energyY( unsigned int energyRoIWord1 ) const;
60  int energyT( unsigned int energyRoIWord2 ) const;
62  bool energyOverflow( unsigned int energyRoIWord ) const;
65  std::vector<unsigned int> mEtSigThresholdsPassed( const unsigned int energyRoIWord0 ) const;
68  std::vector<unsigned int> etSumThresholdsPassed( const unsigned int energyRoIWord1 ) const;
71  std::vector<unsigned int> etMissThresholdsPassed( const unsigned int energyRoIWord2 ) const;
73  bool mEtSigThresholdPassed( const unsigned int energyRoIWord0, const unsigned int thresh ) const;
75  bool sumEtThresholdPassed( const unsigned int energyRoIWord1, const unsigned int thresh ) const;
77  bool etMissThresholdPassed( const unsigned int energyRoIWord2, const unsigned int thresh ) const;
78 
79 
80  private:
81  unsigned int mEtSigThresholdsFlags( const unsigned int energyRoIWord0 ) const;
82  unsigned int sumEtThresholdsFlags( const unsigned int energyRoIWord1 ) const;
83  unsigned int missEtThresholdsFlags( const unsigned int energyRoIWord1 ) const;
84 
86  int decodeEnergyComponent( const unsigned int energyRoIWord ) const;
87 
89  CoordinateRange midJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const;
91  CoordinateRange leftEndJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const;
93  CoordinateRange rightEndJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const;
95  void setPhiCoords( const unsigned int jem, const unsigned int roiWord,
96  double& phiMin, double& phiMax ) const;
97  }; // class JEPRoIDecoder
98 
99 } // namespace LVL1
100 
101 #endif // TRIGT1INTERFACES_JEPROIDECODER_H
LVL1::JEPRoIDecoder::energyOverflow
bool energyOverflow(unsigned int energyRoIWord) const
returns overflow flag energy RoIWord
Definition: JEPRoIDecoder.cxx:271
LVL1::JEPRoIDecoder::mEtSigThresholdsFlags
unsigned int mEtSigThresholdsFlags(const unsigned int energyRoIWord0) const
Definition: JEPRoIDecoder.cxx:343
LVL1::JEPRoIDecoder::sumEtThresholdPassed
bool sumEtThresholdPassed(const unsigned int energyRoIWord1, const unsigned int thresh) const
returns true if thresh is passed
Definition: JEPRoIDecoder.cxx:332
LVL1::JEPRoIDecoder::fwdThresholdsPassed
const std::vector< unsigned int > fwdThresholdsPassed(const unsigned int word) const
returns a vector containing the numbers of threshold passed i.e.
Definition: JEPRoIDecoder.cxx:122
LVL1::JEPRoIDecoder::crate
unsigned int crate(const unsigned int word) const
Return hardware coordinates.
Definition: JEPRoIDecoder.cxx:79
LVL1::JEPRoIDecoder::JEPRoIDecoder
JEPRoIDecoder()
Definition: JEPRoIDecoder.cxx:23
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:36
LVL1::JEPRoIDecoder::sumEtThresholdsFlags
unsigned int sumEtThresholdsFlags(const unsigned int energyRoIWord1) const
Definition: JEPRoIDecoder.cxx:348
LVL1::JEPRoIDecoder::decodeEnergyComponent
int decodeEnergyComponent(const unsigned int energyRoIWord) const
No descriptions.
Definition: JEPRoIDecoder.cxx:358
LVL1::JEPRoIDecoder::etSumThresholdsPassed
std::vector< unsigned int > etSumThresholdsPassed(const unsigned int energyRoIWord1) const
returns a vector containing the numbers of threshold passed i.e.
Definition: JEPRoIDecoder.cxx:297
LVL1::JEPRoIDecoder::etMissThresholdsPassed
std::vector< unsigned int > etMissThresholdsPassed(const unsigned int energyRoIWord2) const
returns a vector containing the numbers of threshold passed i.e.
Definition: JEPRoIDecoder.cxx:312
LVL1::JEPRoIDecoder::midJEMCoordinate
CoordinateRange midJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const
return a CoordinateRange for the JEMs coving -2.4<eta<2.4
Definition: JEPRoIDecoder.cxx:154
LVL1::JEPRoIDecoder::energyX
int energyX(unsigned int energyRoIWord0) const
returns the (signed) Ex energy projection.
Definition: JEPRoIDecoder.cxx:250
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JEPRoIDecoder::rightEndJEMCoordinate
CoordinateRange rightEndJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const
returns a CoordinateRange for the end JEMs, i.e.
Definition: JEPRoIDecoder.cxx:207
LVL1::JEPRoIDecoder::mEtSigThresholdPassed
bool mEtSigThresholdPassed(const unsigned int energyRoIWord0, const unsigned int thresh) const
returns true if thresh is passed
Definition: JEPRoIDecoder.cxx:326
LVL1::JEPRoIDecoder::etSmall
unsigned int etSmall(const unsigned int word) const
Extract smaller cluster ET value from Jet RoI word.
Definition: JEPRoIDecoder.cxx:147
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::CoordinateRange
CoordinateRange class declaration.
Definition: CoordinateRange.h:36
LVL1::JEPRoIDecoder::thresholdsPassed
const std::vector< unsigned int > thresholdsPassed(const unsigned int word) const
returns a vector containing the numbers of threshold passed i.e.
Definition: JEPRoIDecoder.cxx:103
LVL1::JEPRoIDecoder::energyY
int energyY(unsigned int energyRoIWord1) const
returns the (signed) Ex energy projection.
Definition: JEPRoIDecoder.cxx:257
LVL1::JEPRoIDecoder::jetRoIVersion
unsigned int jetRoIVersion(unsigned int word) const
Identify Jet RoI Version.
Definition: JEPRoIDecoder.cxx:59
LVL1::JEPRoIDecoder::module
unsigned int module(const unsigned int word) const
Extract module number from Jet RoI word.
Definition: JEPRoIDecoder.cxx:84
RoIDecoder.h
LVL1::JEPRoIDecoder::setPhiCoords
void setPhiCoords(const unsigned int jem, const unsigned int roiWord, double &phiMin, double &phiMax) const
set phi coords for Jet RoI
Definition: JEPRoIDecoder.cxx:234
LVL1::JEPRoIDecoder::etMissThresholdPassed
bool etMissThresholdPassed(const unsigned int energyRoIWord2, const unsigned int thresh) const
returns true if thresh is passed
Definition: JEPRoIDecoder.cxx:338
LVL1::TrigT1CaloDefs::RoIType
RoIType
Definition: TrigT1CaloDefs.h:166
CoordinateRange.h
LVL1::JEPRoIDecoder::column
unsigned int column(const unsigned int word) const
Extract RoI column number within module from Jet RoI word.
Definition: JEPRoIDecoder.cxx:96
LVL1::JEPRoIDecoder::energyT
int energyT(unsigned int energyRoIWord2) const
returns the (signed) Ex energy projection.
Definition: JEPRoIDecoder.cxx:264
LVL1::JEPRoIDecoder::etLarge
unsigned int etLarge(const unsigned int word) const
Return ET values from Run 2 Jet RoIs.
Definition: JEPRoIDecoder.cxx:141
LVL1::JEPRoIDecoder::leftEndJEMCoordinate
CoordinateRange leftEndJEMCoordinate(const unsigned int jem, const unsigned int roiWord) const
returns a CoordinateRange for the end JEMs, i.e.
Definition: JEPRoIDecoder.cxx:179
LVL1::JEPRoIDecoder::~JEPRoIDecoder
virtual ~JEPRoIDecoder()
Definition: JEPRoIDecoder.cxx:27
LVL1::JEPRoIDecoder::coordinate
virtual CoordinateRange coordinate(const unsigned int roiWord) const override
Return eta/phi coordinate object.
Definition: JEPRoIDecoder.cxx:66
LVL1::JEPRoIDecoder::mEtSigThresholdsPassed
std::vector< unsigned int > mEtSigThresholdsPassed(const unsigned int energyRoIWord0) const
returns a vector containing the numbers of threshold passed i.e.
Definition: JEPRoIDecoder.cxx:282
LVL1::JEPRoIDecoder::row
unsigned int row(const unsigned int word) const
Extract RoI row number within module from Jet RoI word.
Definition: JEPRoIDecoder.cxx:89
LVL1::JEPRoIDecoder::roiType
TrigT1CaloDefs::RoIType roiType(unsigned int word) const
Override base method - allows us to handle both Run 1 & Run 2 data for JEP (up to a point)
Definition: JEPRoIDecoder.cxx:33
LVL1::JEPRoIDecoder::missEtThresholdsFlags
unsigned int missEtThresholdsFlags(const unsigned int energyRoIWord1) const
Definition: JEPRoIDecoder.cxx:353