ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigL1Calo
Root
JEMEtSums_v2.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: JEMEtSums_v2.cxx 652807 2015-03-09 21:52:07Z morrisj $
6
7
// System include(s):
8
#include <cmath>
9
10
// EDM includes(s):
11
#include "
xAODCore/AuxStoreAccessorMacros.h
"
12
13
// Local include(s):
14
#include "
xAODTrigL1Calo/versions/JEMEtSums_v2.h
"
15
16
namespace
xAOD
{
17
18
JEMEtSums_v2::JEMEtSums_v2
() :
19
SG
::AuxElement()
20
{
21
}
22
24
void
JEMEtSums_v2::initialize
(
const
uint8_t
crate
,
const
uint8_t
module
)
25
{
26
setCrate
(
crate
);
27
setModule
(
module
);
28
}
29
31
void
JEMEtSums_v2::initialize
(
const
uint8_t
crate
,
const
uint8_t
module
,
32
const
std::vector<uint16_t>&
etVec
,
33
const
std::vector<uint16_t>&
exVec
,
34
const
std::vector<uint16_t>&
eyVec
,
35
const
uint8_t
peak
)
36
{
37
setCrate
(
crate
);
38
setModule
(
module
);
39
setEtVec
(
etVec
);
40
setExVec
(
exVec
);
41
setEyVec
(
eyVec
);
42
setPeak
(
peak
);
43
}
44
45
46
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v2
,
uint8_t
, crate , setCrate )
47
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v2
,
uint8_t
, module , setModule )
48
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v2
,
uint8_t
, peak , setPeak )
49
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v2
, std::vector<uint16_t> , etVec , setEtVec )
50
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v2
, std::vector<uint16_t> , exVec , setExVec )
51
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v2
, std::vector<uint16_t> , eyVec , setEyVec )
52
53
uint8_t
JEMEtSums_v2
::
forward
()
const
54
{
55
uint8_t
result(0);
56
uint8_t
mod =
module
();
57
if
( ((mod%8) == 0) || ((mod%8) == 7) ){
58
result = 1;
59
}
60
return
result;
61
}
62
63
uint16_t
JEMEtSums_v2::et
()
const
64
{
65
return
etVec
()[
peak
() ];
66
}
67
68
uint16_t
JEMEtSums_v2::ex
()
const
69
{
70
return
exVec
()[
peak
() ];
71
}
72
73
uint16_t
JEMEtSums_v2::ey
()
const
74
{
75
return
eyVec
()[
peak
() ];
76
}
77
78
}
// namespace xAOD
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
AUXSTORE_OBJECT_SETTER_AND_GETTER
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Definition
AuxStoreAccessorMacros.h:88
JEMEtSums_v2.h
xAOD::JEMEtSums_v2
Description of JEMEtSums_v2.
Definition
JEMEtSums_v2.h:26
xAOD::JEMEtSums_v2::setPeak
void setPeak(uint8_t)
set peak
xAOD::JEMEtSums_v2::initialize
virtual void initialize(const uint8_t crate, const uint8_t module)
initialize
Definition
JEMEtSums_v2.cxx:24
xAOD::JEMEtSums_v2::setCrate
void setCrate(uint8_t)
set crate number
xAOD::JEMEtSums_v2::et
uint16_t et() const
get et for etVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v2.cxx:63
xAOD::JEMEtSums_v2::ey
uint16_t ey() const
get ey for eyVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v2.cxx:73
xAOD::JEMEtSums_v2::module
uint8_t module() const
get module
xAOD::JEMEtSums_v2::eyVec
const std::vector< uint16_t > & eyVec() const
get eyVec - ey for all time slices
xAOD::JEMEtSums_v2::ex
uint16_t ex() const
get ex for exVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v2.cxx:68
xAOD::JEMEtSums_v2::setExVec
void setExVec(const std::vector< uint16_t > &)
set exVec - ex for all time slices
xAOD::JEMEtSums_v2::setEyVec
void setEyVec(const std::vector< uint16_t > &)
set eyVec - ey for all time slices
xAOD::JEMEtSums_v2::crate
uint8_t crate() const
get crate number
xAOD::JEMEtSums_v2::forward
uint8_t forward() const
Is this JEMEtSums forward?
Definition
JEMEtSums_v2.cxx:53
xAOD::JEMEtSums_v2::setEtVec
void setEtVec(const std::vector< uint16_t > &)
set etVec - et for all time slices
xAOD::JEMEtSums_v2::etVec
const std::vector< uint16_t > & etVec() const
Please note that in the context of JEMEtSums, et is total energy, not transverse energy For transvers...
xAOD::JEMEtSums_v2::peak
uint8_t peak() const
get peak
xAOD::JEMEtSums_v2::exVec
const std::vector< uint16_t > & exVec() const
get exVec - ex for all time slices
xAOD::JEMEtSums_v2::JEMEtSums_v2
JEMEtSums_v2()
Default constructor.
Definition
JEMEtSums_v2.cxx:18
xAOD::JEMEtSums_v2::setModule
void setModule(uint8_t)
set module
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::uint8_t
uint8_t
Definition
Muon_v1.cxx:500
xAOD::uint16_t
setWord1 uint16_t
Definition
eFexEMRoI_v1.cxx:93
Generated on
for ATLAS Offline Software by
1.17.0