ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigL1Calo
Root
JEMTobRoI_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: JEMTobRoI_v1.cxx 685662 2015-07-27 10:30:15Z amazurov $
6
7
// EDM includes(s):
8
#include "
xAODCore/AuxStoreAccessorMacros.h
"
9
10
// Local include(s):
11
#include "
xAODTrigL1Calo/versions/JEMTobRoI_v1.h
"
12
13
namespace
xAOD
{
14
15
JEMTobRoI_v1::JEMTobRoI_v1
() :
16
SG
::AuxElement()
17
{
18
}
19
20
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMTobRoI_v1
,
uint32_t
,
roiWord
, setRoiWord )
21
22
23
void
JEMTobRoI_v1
::
initialize
(
const
int
crate
,
const
int
jem
,
const
int
frame
,
24
const
int
location
,
const
int
energyLarge
,
const
int
energySmall
) {
25
uint32_t
roiWord
=
s_wordIdVal
<<
s_wordIdBit
;
26
roiWord
|= (
crate
&
s_crateMask
) <<
s_crateBit
;
27
roiWord
|= (
jem
&
s_jemMask
) <<
s_jemBit
;
28
roiWord
|= (
frame
&
s_frameMask
) <<
s_frameBit
;
29
roiWord
|= (
location
&
s_locationMask
) <<
s_locationBit
;
30
roiWord
|= (
energySmall
&
s_energySmallMask
) <<
s_energySmallBit
;
31
roiWord
|= (
energyLarge
&
s_energyLargeMask
) <<
s_energyLargeBit
;
32
33
setRoiWord
(
roiWord
);
34
}
35
37
int
JEMTobRoI_v1::crate
()
const
38
{
39
return
(
roiWord
() >>
s_crateBit
) &
s_crateMask
;
40
}
41
43
int
JEMTobRoI_v1::jem
()
const
44
{
45
return
(
roiWord
() >>
s_jemBit
) &
s_jemMask
;
46
}
47
49
int
JEMTobRoI_v1::frame
()
const
50
{
51
return
(
roiWord
() >>
s_frameBit
) &
s_frameMask
;
52
}
53
55
int
JEMTobRoI_v1::location
()
const
56
{
57
return
(
roiWord
() >>
s_locationBit
) &
s_locationMask
;
58
}
59
61
int
JEMTobRoI_v1::energyLarge
()
const
62
{
63
return
(
roiWord
() >>
s_energyLargeBit
) &
s_energyLargeMask
;
64
}
65
67
int
JEMTobRoI_v1::energySmall
()
const
68
{
69
return
(
roiWord
() >>
s_energySmallBit
) &
s_energySmallMask
;
70
}
71
72
73
std::ostream &
operator<<
(std::ostream &os,
const
xAOD::JEMTobRoI_v1
&el)
74
{
75
os <<
"xAOD::JEMTobRoI crate="
<<
int
(el.crate())
76
<<
" jem="
<< el.jem()
77
<<
" frame="
<< el.frame()
78
<<
" location="
<< el.location()
79
<<
" energyLarge="
<< el.energyLarge()
80
<<
" energySmall="
<< el.energySmall();
81
return
os;
82
}
83
84
85
}
// namespace xAOD
86
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
JEMTobRoI_v1.h
xAOD::JEMTobRoI_v1
Description of JEMTobRoI_v1.
Definition
JEMTobRoI_v1.h:25
xAOD::JEMTobRoI_v1::JEMTobRoI_v1
JEMTobRoI_v1()
Default constructor.
Definition
JEMTobRoI_v1.cxx:15
xAOD::JEMTobRoI_v1::s_locationBit
static const int s_locationBit
Definition
JEMTobRoI_v1.h:62
xAOD::JEMTobRoI_v1::s_wordIdBit
static const int s_wordIdBit
Definition
JEMTobRoI_v1.h:58
xAOD::JEMTobRoI_v1::s_jemBit
static const int s_jemBit
Definition
JEMTobRoI_v1.h:60
xAOD::JEMTobRoI_v1::s_energySmallBit
static const int s_energySmallBit
Definition
JEMTobRoI_v1.h:63
xAOD::JEMTobRoI_v1::s_energyLargeBit
static const int s_energyLargeBit
Definition
JEMTobRoI_v1.h:64
xAOD::JEMTobRoI_v1::s_jemMask
static const int s_jemMask
Definition
JEMTobRoI_v1.h:68
xAOD::JEMTobRoI_v1::roiWord
uint32_t roiWord() const
get roiWord
xAOD::JEMTobRoI_v1::s_energyLargeMask
static const int s_energyLargeMask
Definition
JEMTobRoI_v1.h:72
xAOD::JEMTobRoI_v1::frame
int frame() const
Return RoI frame number (0-7).
Definition
JEMTobRoI_v1.cxx:49
xAOD::JEMTobRoI_v1::setRoiWord
void setRoiWord(uint32_t)
set roiWord
xAOD::JEMTobRoI_v1::energyLarge
int energyLarge() const
Return energy large window size.
Definition
JEMTobRoI_v1.cxx:61
xAOD::JEMTobRoI_v1::s_crateMask
static const int s_crateMask
Definition
JEMTobRoI_v1.h:67
xAOD::JEMTobRoI_v1::crate
int crate() const
Return crate number (0-1).
Definition
JEMTobRoI_v1.cxx:37
xAOD::JEMTobRoI_v1::s_energySmallMask
static const int s_energySmallMask
Definition
JEMTobRoI_v1.h:71
xAOD::JEMTobRoI_v1::energySmall
int energySmall() const
Return energy small window size.
Definition
JEMTobRoI_v1.cxx:67
xAOD::JEMTobRoI_v1::s_frameMask
static const int s_frameMask
Definition
JEMTobRoI_v1.h:69
xAOD::JEMTobRoI_v1::s_frameBit
static const int s_frameBit
Definition
JEMTobRoI_v1.h:61
xAOD::JEMTobRoI_v1::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition
JEMTobRoI_v1.h:56
xAOD::JEMTobRoI_v1::jem
int jem() const
Return JEM number (0-15).
Definition
JEMTobRoI_v1.cxx:43
xAOD::JEMTobRoI_v1::location
int location() const
Return location (RoI local coords) (0-3).
Definition
JEMTobRoI_v1.cxx:55
xAOD::JEMTobRoI_v1::s_crateBit
static const int s_crateBit
Definition
JEMTobRoI_v1.h:59
xAOD::JEMTobRoI_v1::initialize
virtual void initialize(const int crate, const int jem, const int frame, const int location, const int energyLarge, const int energySmall)
Definition
JEMTobRoI_v1.cxx:23
xAOD::JEMTobRoI_v1::s_locationMask
static const int s_locationMask
Definition
JEMTobRoI_v1.h:70
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::roiWord
roiWord
Definition
TrigMissingET_v1.cxx:36
xAOD::int
setRawEt setRawPhi int
Definition
TrigCaloCluster_v1.cxx:33
xAOD::operator<<
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
Definition
RDataSource.cxx:53
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0