ATLAS Offline Software
CMMRoI_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: CMMRoI_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CMMROI_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CMMROI_V1_H
10 
11 extern "C" {
12 # include <stdint.h>
13 }
14 
15 #include "AthLinks/ElementLink.h"
17 
18 namespace xAOD {
19 
26 
27  class CMMRoI_v1 : public SG::AuxElement{
28  public:
29  // Default constructor
30  CMMRoI_v1();
31 
36 
41 
46 
51 
55 
57  int jetEtHits() const;
59  int sumEtHits() const;
61  int missingEtHits() const;
63  int missingEtSigHits() const;
65  int ex() const;
67  int ey() const;
69  int et() const;
71  int jetEtError() const;
73  int sumEtError() const;
75  int missingEtError() const;
77  int missingEtSigError() const;
79  int exError() const;
81  int eyError() const;
83  int etError() const;
85  int parity(uint32_t roiWord) const;
87  int overflow(uint32_t roiWord) const;
88 
89  private:
90  // RoI word IDs
91  static const int s_jetEtWordIdVal = 0x5;
92  static const int s_wordIdVal0 = 0x4;
93  static const int s_wordIdVal1 = 0x6;
94  static const int s_wordIdVal2 = 0x5;
95  // Data locations
96  static const int s_jetEtWordIdBit = 29;
97  static const int s_wordIdBit = 28;
98  static const int s_jetEtHitsBit = 0;
99  static const int s_sumEtHitsBit = 16;
100  static const int s_missingEtHitsBit = 16;
101  static const int s_missingEtSigHitsBit = 16;
102  static const int s_energyBit = 0;
103  static const int s_jetEtParityBit = 28;
104  static const int s_parityBit = 27;
105  static const int s_overflowBit = 15;
106  // Data masks
107  static const int s_jetEtWordIdMask = 0x7;
108  static const int s_wordIdMask = 0xf;
109  static const int s_jetEtHitsMask = 0xf;
110  static const int s_sumEtHitsMask = 0xff;
111  static const int s_missingEtHitsMask = 0xff;
112  static const int s_missingEtSigHitsMask = 0xff;
113  static const int s_energyMask = 0x7fff;
114 
115  };
116 } // namespace xAOD
117 
118 #endif // XAODTRIGL1CALO_VERSIONS_CMMROI_V1_H
xAOD::CMMRoI_v1
Description of CMMRoI_v1.
Definition: CMMRoI_v1.h:27
xAOD::CMMRoI_v1::energyRoiWord1
uint32_t energyRoiWord1() const
get energyRoiWord1
xAOD::CMMRoI_v1::setEnergyRoiWord2
void setEnergyRoiWord2(uint32_t)
set energyRoiWord2
xAOD::CMMRoI_v1::exError
int exError() const
Return Ex error flags (bit 0 Overflow, bit 1 Parity)
Definition: CMMRoI_v1.cxx:111
xAOD::CMMRoI_v1::missingEtError
int missingEtError() const
Return Missing-ET error flag (bit 1 Parity)
Definition: CMMRoI_v1.cxx:99
xAOD::CMMRoI_v1::eyError
int eyError() const
Return Ey error flags (bit 0 Overflow, bit 1 Parity)
Definition: CMMRoI_v1.cxx:117
xAOD::CMMRoI_v1::sumEtError
int sumEtError() const
Return Sum-ET error flag (bit 1 Parity)
Definition: CMMRoI_v1.cxx:93
xAOD::CMMRoI_v1::jetEtError
int jetEtError() const
Return Jet-ET error flag (bit 1 Parity)
Definition: CMMRoI_v1.cxx:87
xAOD::CMMRoI_v1::s_sumEtHitsBit
static const int s_sumEtHitsBit
Definition: CMMRoI_v1.h:99
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CMMRoI_v1::et
int et() const
Return Et.
Definition: CMMRoI_v1.cxx:81
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::CMMRoI_v1::s_jetEtHitsMask
static const int s_jetEtHitsMask
Definition: CMMRoI_v1.h:109
xAOD::CMMRoI_v1::s_wordIdMask
static const int s_wordIdMask
Definition: CMMRoI_v1.h:108
xAOD::CMMRoI_v1::s_missingEtHitsMask
static const int s_missingEtHitsMask
Definition: CMMRoI_v1.h:111
xAOD::CMMRoI_v1::missingEtHits
int missingEtHits() const
Return Missing-ET hits.
Definition: CMMRoI_v1.cxx:57
xAOD::CMMRoI_v1::s_jetEtHitsBit
static const int s_jetEtHitsBit
Definition: CMMRoI_v1.h:98
xAOD::CMMRoI_v1::s_jetEtWordIdVal
static const int s_jetEtWordIdVal
Definition: CMMRoI_v1.h:91
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMMRoI_v1::overflow
int overflow(uint32_t roiWord) const
Return Energy overflow flag (0/1)
Definition: CMMRoI_v1.cxx:135
xAOD::CMMRoI_v1::s_missingEtSigHitsBit
static const int s_missingEtSigHitsBit
Definition: CMMRoI_v1.h:101
xAOD::CMMRoI_v1::s_wordIdVal0
static const int s_wordIdVal0
Definition: CMMRoI_v1.h:92
xAOD::CMMRoI_v1::sumEtHits
int sumEtHits() const
Return Sum-ET hits.
Definition: CMMRoI_v1.cxx:51
xAOD::CMMRoI_v1::energyRoiWord0
uint32_t energyRoiWord0() const
get energyRoiWord0
xAOD::CMMRoI_v1::s_jetEtWordIdBit
static const int s_jetEtWordIdBit
Definition: CMMRoI_v1.h:96
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::CMMRoI_v1::ey
int ey() const
Return Ey.
Definition: CMMRoI_v1.cxx:75
xAOD::CMMRoI_v1::s_parityBit
static const int s_parityBit
Definition: CMMRoI_v1.h:104
xAOD::CMMRoI_v1::energyRoiWord2
uint32_t energyRoiWord2() const
get energyRoiWord2
xAOD::CMMRoI_v1::s_missingEtSigHitsMask
static const int s_missingEtSigHitsMask
Definition: CMMRoI_v1.h:112
xAOD::CMMRoI_v1::s_missingEtHitsBit
static const int s_missingEtHitsBit
Definition: CMMRoI_v1.h:100
xAOD::CMMRoI_v1::s_energyMask
static const int s_energyMask
Definition: CMMRoI_v1.h:113
xAOD::CMMRoI_v1::s_jetEtWordIdMask
static const int s_jetEtWordIdMask
Definition: CMMRoI_v1.h:107
xAOD::CMMRoI_v1::setEnergyRoiWord0
void setEnergyRoiWord0(uint32_t)
set energyRoiWord0
xAOD::CMMRoI_v1::parity
int parity(uint32_t roiWord) const
Return Energy parity error (0/1)
Definition: CMMRoI_v1.cxx:129
xAOD::CMMRoI_v1::s_wordIdVal1
static const int s_wordIdVal1
Definition: CMMRoI_v1.h:93
xAOD::CMMRoI_v1::s_wordIdVal2
static const int s_wordIdVal2
Definition: CMMRoI_v1.h:94
xAOD::CMMRoI_v1::missingEtSigHits
int missingEtSigHits() const
Return Missing-ET-Sig hits.
Definition: CMMRoI_v1.cxx:63
xAOD::CMMRoI_v1::setJetEtRoiWord
void setJetEtRoiWord(uint32_t)
set jetEtRoiWord
xAOD::CMMRoI_v1::CMMRoI_v1
CMMRoI_v1()
Definition: CMMRoI_v1.cxx:18
xAOD::CMMRoI_v1::ex
int ex() const
Return Ex.
Definition: CMMRoI_v1.cxx:69
xAOD::CMMRoI_v1::setRoiWord
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check Internally works out the type of roiWord.
Definition: CMMRoI_v1.cxx:29
xAOD::CMMRoI_v1::s_overflowBit
static const int s_overflowBit
Definition: CMMRoI_v1.h:105
xAOD::CMMRoI_v1::etError
int etError() const
Return Et error flags (bit 0 Overflow, bit 1 Parity)
Definition: CMMRoI_v1.cxx:123
xAOD::CMMRoI_v1::s_energyBit
static const int s_energyBit
Definition: CMMRoI_v1.h:102
xAOD::CMMRoI_v1::setEnergyRoiWord1
void setEnergyRoiWord1(uint32_t)
set energyRoiWord1
xAOD::CMMRoI_v1::s_sumEtHitsMask
static const int s_sumEtHitsMask
Definition: CMMRoI_v1.h:110
xAOD::CMMRoI_v1::s_wordIdBit
static const int s_wordIdBit
Definition: CMMRoI_v1.h:97
xAOD::CMMRoI_v1::jetEtRoiWord
uint32_t jetEtRoiWord() const
get jetEtRoiWord
xAOD::CMMRoI_v1::s_jetEtParityBit
static const int s_jetEtParityBit
Definition: CMMRoI_v1.h:103
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CMMRoI_v1::missingEtSigError
int missingEtSigError() const
Return Missing-ET-Sig error flag (bit 1 Parity)
Definition: CMMRoI_v1.cxx:105
xAOD::CMMRoI_v1::jetEtHits
int jetEtHits() const
Return Jet-ET hits.
Definition: CMMRoI_v1.cxx:45