ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigger
Root
JetRoI_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
6
// xAOD include(s):
7
#include "
xAODCore/AuxStoreAccessorMacros.h
"
8
9
// Local include(s):
10
#include "
xAODTrigger/versions/JetRoI_v1.h
"
11
12
namespace
xAOD
{
13
14
JetRoI_v1::JetRoI_v1
()
15
:
SG
::AuxElement() {
16
17
}
18
19
void
JetRoI_v1::initialize
(
uint32_t
roiword,
float
eta
,
float
phi
) {
20
21
setRoIWord
( roiword );
22
setEta
(
eta
);
23
setPhi
(
phi
);
24
25
return
;
26
}
27
28
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JetRoI_v1
,
float
,
eta
, setEta )
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JetRoI_v1
,
float
,
phi
, setPhi )
30
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JetRoI_v1
,
uint32_t
,
roiWord
,
31
setRoIWord )
32
33
36
uint32_t
JetRoI_v1::thrPattern
()
const
{
37
38
return
(
roiWord
() & 0xfff );
39
}
40
41
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
( JetRoI_v1,
float
, et4x4, setEt4x4 )
42
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
( JetRoI_v1,
float
, et6x6, setEt6x6 )
43
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
( JetRoI_v1,
float
, et8x8, setEt8x8 )
44
45
46
static
const
SG::AuxElement::Accessor< std::vector< std::string > >
47
names
(
"thrNames"
);
49
static
const
SG::AuxElement::Accessor< std::vector< float > >
50
values
(
"thrValues"
);
51
55
void
JetRoI_v1::addThreshold
(
const
std::string&
name
,
float
value ) {
56
57
names
( *this ).push_back(
name
);
58
values
( *this ).push_back( value );
59
60
return
;
61
}
62
66
void
JetRoI_v1::clearThresholds
() {
67
68
names
( *this ).clear();
69
values
( *this ).clear();
70
71
return
;
72
}
73
74
AUXSTORE_OBJECT_GETTER
(
JetRoI_v1
, std::vector< std::string >, thrNames )
75
AUXSTORE_OBJECT_GETTER
(
JetRoI_v1
, std::vector< float >, thrValues )
76
77
}
// namespace xAOD
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
AuxStoreAccessorMacros.h
AUXSTORE_OBJECT_GETTER
#define AUXSTORE_OBJECT_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a complex auxiliary property.
Definition
AuxStoreAccessorMacros.h:165
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
JetRoI_v1.h
xAOD::JetRoI_v1
Class describing a LVL1 jet region of interest.
Definition
JetRoI_v1.h:35
xAOD::JetRoI_v1::eta
float eta() const
The pseudorapidity ( ) of the jet candidate.
xAOD::JetRoI_v1::thrPattern
uint32_t thrPattern() const
The pattern describing which thresholds were passed by the jet.
xAOD::JetRoI_v1::phi
float phi() const
The azimuthal angle ( ) of the jet candidate.
xAOD::JetRoI_v1::setRoIWord
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the jet candidate.
xAOD::JetRoI_v1::initialize
void initialize(uint32_t roiword, float eta, float phi)
Initialise the object with its most important properties.
Definition
JetRoI_v1.cxx:19
xAOD::JetRoI_v1::roiWord
uint32_t roiWord() const
The "raw" RoI word describing the jet candidate.
xAOD::JetRoI_v1::clearThresholds
void clearThresholds()
Remove all the passed thresholds from the RoI.
Definition
JetRoI_v1.cxx:66
xAOD::JetRoI_v1::JetRoI_v1
JetRoI_v1()
Default constructor.
Definition
JetRoI_v1.cxx:14
xAOD::JetRoI_v1::setPhi
void setPhi(float v)
Set the azimuthal angle of the jet candidate.
xAOD::JetRoI_v1::setEta
void setEta(float v)
Set the pseudorapidity of the jet candidate.
xAOD::JetRoI_v1::addThreshold
void addThreshold(const std::string &name, float value)
Add a new threshold that was passed by the RoI.
Definition
JetRoI_v1.cxx:55
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::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::roiWord
roiWord
Definition
TrigMissingET_v1.cxx:36
xAOD::names
static const EventInfo_v1::Accessor< std::vector< std::string > > names("streamTagNames")
xAOD::phi
setEt phi
Definition
TrigEMCluster_v1.cxx:29
xAOD::values
static AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(EmTauRoI_v1, uint32_t, roiWord, setRoIWord) uint32_t EmTauRoI_v1 const SG::AuxElement::Accessor< std::vector< float > > values("thrValues")
This is a convenience function for accessing the threshold pattern part of the RoI.
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0