ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigL1Calo
Root
JEMEtSums_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: JEMEtSums_v1.cxx 638578 2015-01-09 17:00:15Z 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_v1.h
"
15
16
namespace
xAOD
{
17
18
JEMEtSums_v1::JEMEtSums_v1
() :
19
SG
::AuxElement()
20
{
21
}
22
23
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v1
,
int
, crate , setCrate )
24
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v1
,
int
, module , setModule )
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
JEMEtSums_v1
,
int
, peak , setPeak )
26
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v1
, std::vector<unsigned int> , etVec , setEtVec )
27
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v1
, std::vector<unsigned int> , exVec , setExVec )
28
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
JEMEtSums_v1
, std::vector<unsigned int> , eyVec , setEyVec )
29
30
unsigned
int
JEMEtSums_v1
::
forward
()
const
31
{
32
unsigned
int
result(0);
33
int
mod =
module
();
34
if
( ((mod%8) == 0) || ((mod%8) == 7) ){
35
result = 1;
36
}
37
return
result;
38
}
39
40
unsigned
int
JEMEtSums_v1::et
()
const
41
{
42
return
etVec
()[
peak
() ];
43
}
44
45
unsigned
int
JEMEtSums_v1::ex
()
const
46
{
47
return
exVec
()[
peak
() ];
48
}
49
50
unsigned
int
JEMEtSums_v1::ey
()
const
51
{
52
return
eyVec
()[
peak
() ];
53
}
54
55
}
// 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_v1.h
xAOD::JEMEtSums_v1
Description of JEMEtSums_v1.
Definition
JEMEtSums_v1.h:23
xAOD::JEMEtSums_v1::peak
int peak() const
get peak
xAOD::JEMEtSums_v1::et
unsigned int et() const
get et for etVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v1.cxx:40
xAOD::JEMEtSums_v1::ey
unsigned int ey() const
get ey for eyVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v1.cxx:50
xAOD::JEMEtSums_v1::forward
unsigned int forward() const
Is this JEMEtSums forward?
Definition
JEMEtSums_v1.cxx:30
xAOD::JEMEtSums_v1::etVec
const std::vector< unsigned int > & etVec() const
Please note that in the context of JEMEtSums, et is total energy, not transverse energy For transvers...
xAOD::JEMEtSums_v1::module
int module() const
get module
xAOD::JEMEtSums_v1::JEMEtSums_v1
JEMEtSums_v1()
Definition
JEMEtSums_v1.cxx:18
xAOD::JEMEtSums_v1::ex
unsigned int ex() const
get ex for exVec[peak] - time slice that (hopefully) contains the collision
Definition
JEMEtSums_v1.cxx:45
xAOD::JEMEtSums_v1::eyVec
const std::vector< unsigned int > & eyVec() const
get eyVec - ey for all time slices
xAOD::JEMEtSums_v1::exVec
const std::vector< unsigned int > & exVec() const
get exVec - ex for all time slices
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::unsigned
unsigned
Definition
RingSetConf_v1.cxx:656
Generated on
for ATLAS Offline Software by
1.17.0