ATLAS Offline Software
CPMRoI_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: CPMRoI_v1.cxx 638578 2015-01-09 17:00:15Z morrisj $
6 
7 // System include(s):
8 #include <cmath>
9 
10 // EDM includes(s):
12 
13 // Local include(s):
15 
16 namespace xAOD{
17 
19  SG::AuxElement()
20  {
21  }
22 
24 
25 
26  int CPMRoI_v1::crate() const
27  {
28  return (roiWord() >> s_crateBit) & s_crateMask;
29  }
30 
32  int CPMRoI_v1::cpm() const
33  {
34  return (roiWord() >> s_cpmBit) & s_cpmMask;
35  }
36 
38  int CPMRoI_v1::chip() const
39  {
40  return (roiWord() >> s_chipBit) & s_chipMask;
41  }
42 
44  int CPMRoI_v1::location() const
45  {
46  return (roiWord() >> s_locationBit) & s_locationMask;
47  }
48 
50  int CPMRoI_v1::hits() const
51  {
52  return (roiWord() >> s_hitsBit) & s_hitsMask;
53  }
54 
56  int CPMRoI_v1::error() const
57  {
58  return (parity() << 1) | saturation();
59  }
60 
62  int CPMRoI_v1::parity() const
63  {
64  return (roiWord() >> s_parityBit) & s_parityMask;
65  }
66 
69  {
70  return (roiWord() >> s_saturationBit) & s_saturationMask;
71  }
72 
73 } // namespace xAOD
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
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
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::CPMRoI_v1::s_hitsBit
static const int s_hitsBit
Definition: CPMRoI_v1.h:65
xAOD::CPMRoI_v1::saturation
int saturation() const
Return saturation flag (0/1)
Definition: CPMRoI_v1.cxx:68
xAOD::int
setRawEt setRawPhi int
Definition: TrigCaloCluster_v1.cxx:33
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CPMRoI_v1::parity
int parity() const
Return parity error flag (0/1)
Definition: CPMRoI_v1.cxx:62
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::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::CPMRoI_v1::CPMRoI_v1
CPMRoI_v1()
Definition: CPMRoI_v1.cxx:18
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::location
int location() const
Return location (RoI local coords) (0-7)
Definition: CPMRoI_v1.cxx:44
xAOD::CPMRoI_v1::s_locationBit
static const int s_locationBit
Definition: CPMRoI_v1.h:62
CPMRoI_v1.h
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_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
xAOD::CPMRoI_v1::s_locationMask
static const int s_locationMask
Definition: CPMRoI_v1.h:71