ATLAS Offline Software
CPMRoI_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: CPMRoI_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CPMROI_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CPMROI_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 CPMRoI_v1 : public SG::AuxElement{
28  public:
29  // Default constructor
30  CPMRoI_v1();
31 
33  uint32_t roiWord() const;
36 
38  int crate() const;
40  int cpm() const;
42  int chip() const;
44  int location() const;
46  int hits() const;
48  int error() const;
50  int parity() const;
52  int saturation() const;
53 
54  private:
56  static const int s_wordIdVal = 0x0;
57  // Data locations
58  static const int s_wordIdBit = 30;
59  static const int s_crateBit = 28;
60  static const int s_cpmBit = 24;
61  static const int s_chipBit = 21;
62  static const int s_locationBit = 18;
63  static const int s_parityBit = 17;
64  static const int s_saturationBit = 16;
65  static const int s_hitsBit = 0;
66  // Data masks
67  static const int s_wordIdMask = 0x3;
68  static const int s_crateMask = 0x3;
69  static const int s_cpmMask = 0xf;
70  static const int s_chipMask = 0x7;
71  static const int s_locationMask = 0x7;
72  static const int s_parityMask = 0x1;
73  static const int s_saturationMask = 0x1;
74  static const int s_hitsMask = 0xffff;
75 
76  };
77 } // namespace xAOD
78 
79 #endif // XAODTRIGL1CALO_VERSIONS_CPMROI_V1_H
xAOD::CPMRoI_v1::s_parityBit
static const int s_parityBit
Definition: CPMRoI_v1.h:63
xAOD::CPMRoI_v1::s_cpmBit
static const int s_cpmBit
Definition: CPMRoI_v1.h:60
xAOD::CPMRoI_v1::s_hitsBit
static const int s_hitsBit
Definition: CPMRoI_v1.h:65
xAOD::CPMRoI_v1::s_crateBit
static const int s_crateBit
Definition: CPMRoI_v1.h:59
xAOD::CPMRoI_v1::saturation
int saturation() const
Return saturation flag (0/1)
Definition: CPMRoI_v1.cxx: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:483
xAOD::CPMRoI_v1::parity
int parity() const
Return parity error flag (0/1)
Definition: CPMRoI_v1.cxx:62
xAOD::CPMRoI_v1::crate
int crate() const
Return crate number (0-1)
Definition: CPMRoI_v1.cxx:26
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CPMRoI_v1::hits
int hits() const
Return hit thresholds map.
Definition: CPMRoI_v1.cxx:50
xAOD::CPMRoI_v1::s_chipBit
static const int s_chipBit
Definition: CPMRoI_v1.h:61
xAOD::CPMRoI_v1::roiWord
uint32_t roiWord() const
get roiWord
xAOD::CPMRoI_v1::CPMRoI_v1
CPMRoI_v1()
Definition: CPMRoI_v1.cxx:18
xAOD::CPMRoI_v1::setRoiWord
void setRoiWord(uint32_t)
set roiWord
xAOD::CPMRoI_v1::s_crateMask
static const int s_crateMask
Definition: CPMRoI_v1.h:68
xAOD::CPMRoI_v1::s_hitsMask
static const int s_hitsMask
Definition: CPMRoI_v1.h:74
xAOD::CPMRoI_v1::cpm
int cpm() const
Return CPM number (1-14)
Definition: CPMRoI_v1.cxx:32
xAOD::CPMRoI_v1::s_wordIdMask
static const int s_wordIdMask
Definition: CPMRoI_v1.h:67
xAOD::CPMRoI_v1::location
int location() const
Return location (RoI local coords) (0-7)
Definition: CPMRoI_v1.cxx:44
xAOD::CPMRoI_v1::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition: CPMRoI_v1.h:56
xAOD::CPMRoI_v1::s_locationBit
static const int s_locationBit
Definition: CPMRoI_v1.h:62
xAOD::CPMRoI_v1::s_chipMask
static const int s_chipMask
Definition: CPMRoI_v1.h:70
xAOD::CPMRoI_v1::chip
int chip() const
Return CP chip number (0-7)
Definition: CPMRoI_v1.cxx:38
xAOD::CPMRoI_v1
Description of CPMRoI_v1.
Definition: CPMRoI_v1.h:27
xAOD::CPMRoI_v1::s_wordIdBit
static const int s_wordIdBit
Definition: CPMRoI_v1.h:58
xAOD::CPMRoI_v1::s_saturationBit
static const int s_saturationBit
Definition: CPMRoI_v1.h:64
xAOD::CPMRoI_v1::error
int error() const
Return error flags (bit 0 Saturation, bit 1 Parity)
Definition: CPMRoI_v1.cxx:56
xAOD::CPMRoI_v1::s_saturationMask
static const int s_saturationMask
Definition: CPMRoI_v1.h:73
xAOD::CPMRoI_v1::s_parityMask
static const int s_parityMask
Definition: CPMRoI_v1.h:72
xAOD::CPMRoI_v1::s_cpmMask
static const int s_cpmMask
Definition: CPMRoI_v1.h:69
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CPMRoI_v1::s_locationMask
static const int s_locationMask
Definition: CPMRoI_v1.h:71