ATLAS Offline Software
Loading...
Searching...
No Matches
CPMTobRoI_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: CPMTobRoI_v1.cxx 687286 2015-08-04 11:20:22Z amazurov $
6
7// EDM includes(s):
9
10// Local include(s):
12
13namespace xAOD{
14
19
21
22 void CPMTobRoI_v1::initialize(int crate, int cpm, int chip, int location,
23 int type, int energy, int isol) {
27 roiWord |= (cpm & s_cpmMask) << s_cpmBit;
30 roiWord |= (isol & s_isolMask) << s_isolBit;
32
34 }
35
36
39 {
40 return (roiWord() >> s_crateBit) & s_crateMask;
41 }
42
45 {
46 return (roiWord() >> s_cpmBit) & s_cpmMask;
47 }
48
51 {
52 return (roiWord() >> s_chipBit) & s_chipMask;
53 }
54
57 {
58 return (roiWord() >> s_locationBit) & s_locationMask;
59 }
60
63 {
64 return (roiWord() >> s_wordIdBit) & s_typeMask;
65 }
66
69 {
70 return (roiWord() >> s_energyBit) & s_energyMask;
71 }
72
75 {
76 return (roiWord() >> s_isolBit) & s_isolMask;
77 }
78
79} // namespace xAOD
80
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Description of CPMTobRoI_v1.
uint32_t roiWord() const
get roiWord
virtual void initialize(int crate, int cpm, int chip, int location, int type, int energy, int isol)
static const int s_isolMask
static const int s_energyBit
static const int s_typeMask
int crate() const
Return crate number (0-1)
static const int s_chipMask
int cpm() const
Return CPM number (1-14)
static const int s_cpmMask
static const int s_chipBit
static const int s_energyMask
static const int s_cpmBit
static const int s_crateBit
int location() const
Return location (RoI local coords) (0-7)
CPMTobRoI_v1()
Default constructor.
int energy() const
Return energy.
static const int s_wordIdBit
static const int s_locationBit
static const int s_wordIdVal
RoI word ID.
int chip() const
Return CP chip number (0-7)
static const int s_isolBit
static const int s_crateMask
void setRoiWord(uint32_t)
set roiWord
int isolation() const
Return isolation.
static const int s_locationMask
int type() const
Return type em/tau (0/1)
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t