ATLAS Offline Software
JEMRoI_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: JEMRoI_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_JEMROI_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_JEMROI_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 JEMRoI_v1 : public SG::AuxElement{
28  public:
29  // Default constructor
30  JEMRoI_v1();
31 
33  uint32_t roiWord() const;
36 
38  int crate() const;
40  int jem() const;
42  int frame() const;
44  int location() const;
46  int forward() const;
48  int hits() const;
50  int error() const;
52  int parity() const;
54  int saturation() const;
55 
56  private:
58  static const int s_wordIdVal = 0x4;
59  // Data locations
60  static const int s_wordIdBit = 29;
61  static const int s_crateBit = 28;
62  static const int s_jemBit = 24;
63  static const int s_frameBit = 21;
64  static const int s_locationBit = 19;
65  static const int s_forwardBit = 18;
66  static const int s_parityBit = 17;
67  static const int s_saturationBit = 16;
68  static const int s_forwardHitsBit = 8;
69  static const int s_mainHitsBit = 0;
70  // Data masks
71  static const int s_wordIdMask = 0x7;
72  static const int s_crateMask = 0x1;
73  static const int s_jemMask = 0xf;
74  static const int s_frameMask = 0x7;
75  static const int s_locationMask = 0x3;
76  static const int s_forwardMask = 0x1;
77  static const int s_parityMask = 0x1;
78  static const int s_saturationMask = 0x1;
79  static const int s_forwardHitsMask = 0xf;
80  static const int s_mainHitsMask = 0xff;
81 
82  };
83 } // namespace xAOD
84 #endif // XAODTRIGL1CALO_VERSIONS_JEMROI_V1_H
xAOD::JEMRoI_v1::s_crateMask
static const int s_crateMask
Definition: JEMRoI_v1.h:72
xAOD::JEMRoI_v1::forward
int forward() const
Return forward jet flag (0/1)
Definition: JEMRoI_v1.cxx:50
xAOD::JEMRoI_v1::s_parityMask
static const int s_parityMask
Definition: JEMRoI_v1.h:77
xAOD::JEMRoI_v1::setRoiWord
void setRoiWord(uint32_t)
set roiWord
xAOD::JEMRoI_v1::s_forwardHitsBit
static const int s_forwardHitsBit
Definition: JEMRoI_v1.h:68
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::JEMRoI_v1::s_mainHitsBit
static const int s_mainHitsBit
Definition: JEMRoI_v1.h:69
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::JEMRoI_v1::s_forwardHitsMask
static const int s_forwardHitsMask
Definition: JEMRoI_v1.h:79
xAOD::JEMRoI_v1::s_wordIdMask
static const int s_wordIdMask
Definition: JEMRoI_v1.h:71
xAOD::JEMRoI_v1::hits
int hits() const
Return Jet hit map (8 bits Main or 4 bits Forward)
Definition: JEMRoI_v1.cxx:56
xAOD::JEMRoI_v1::s_forwardBit
static const int s_forwardBit
Definition: JEMRoI_v1.h:65
xAOD::JEMRoI_v1::saturation
int saturation() const
Return saturation flag (0/1)
Definition: JEMRoI_v1.cxx:81
xAOD::JEMRoI_v1::s_locationMask
static const int s_locationMask
Definition: JEMRoI_v1.h:75
xAOD::JEMRoI_v1::s_wordIdBit
static const int s_wordIdBit
Definition: JEMRoI_v1.h:60
xAOD::JEMRoI_v1::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition: JEMRoI_v1.h:58
xAOD::JEMRoI_v1::s_parityBit
static const int s_parityBit
Definition: JEMRoI_v1.h:66
xAOD::JEMRoI_v1::s_saturationBit
static const int s_saturationBit
Definition: JEMRoI_v1.h:67
xAOD::JEMRoI_v1::roiWord
uint32_t roiWord() const
get roiWord
xAOD::JEMRoI_v1::s_forwardMask
static const int s_forwardMask
Definition: JEMRoI_v1.h:76
xAOD::JEMRoI_v1::s_mainHitsMask
static const int s_mainHitsMask
Definition: JEMRoI_v1.h:80
xAOD::JEMRoI_v1::JEMRoI_v1
JEMRoI_v1()
Definition: JEMRoI_v1.cxx:18
xAOD::JEMRoI_v1::parity
int parity() const
Return parity error flag (0/1)
Definition: JEMRoI_v1.cxx:75
xAOD::JEMRoI_v1::frame
int frame() const
Return RoI frame number (0-7)
Definition: JEMRoI_v1.cxx:38
xAOD::JEMRoI_v1::s_frameMask
static const int s_frameMask
Definition: JEMRoI_v1.h:74
xAOD::JEMRoI_v1::s_jemMask
static const int s_jemMask
Definition: JEMRoI_v1.h:73
xAOD::JEMRoI_v1::s_jemBit
static const int s_jemBit
Definition: JEMRoI_v1.h:62
xAOD::JEMRoI_v1::error
int error() const
Return error flags (bit 0 Saturation, bit 1 Parity)
Definition: JEMRoI_v1.cxx:69
xAOD::JEMRoI_v1::s_saturationMask
static const int s_saturationMask
Definition: JEMRoI_v1.h:78
xAOD::JEMRoI_v1::s_frameBit
static const int s_frameBit
Definition: JEMRoI_v1.h:63
xAOD::JEMRoI_v1::crate
int crate() const
Return crate number (0-1)
Definition: JEMRoI_v1.cxx:26
xAOD::JEMRoI_v1::location
int location() const
Return location (RoI local coords) (0-3)
Definition: JEMRoI_v1.cxx:44
xAOD::JEMRoI_v1
Description of JEMRoI_v1.
Definition: JEMRoI_v1.h:27
xAOD::JEMRoI_v1::s_crateBit
static const int s_crateBit
Definition: JEMRoI_v1.h:61
xAOD::JEMRoI_v1::jem
int jem() const
Return JEM number (0-15)
Definition: JEMRoI_v1.cxx:32
xAOD::JEMRoI_v1::s_locationBit
static const int s_locationBit
Definition: JEMRoI_v1.h:64
AuxElement.h
Base class for elements of a container that can have aux data.