ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODHIEvent
Root
HIEventShape_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
// Local include(s):
6
#include "
xAODHIEvent/versions/HIEventShape_v1.h
"
7
#include "
xAODHIEvent/versions/HIEventShapeContainer_v1.h
"
8
#include "
xAODCore/AuxStoreAccessorMacros.h
"
9
10
11
12
namespace
xAOD
{
13
14
HIEventShape_v1::HIEventShape_v1
()
15
:
SG
::AuxElement() {
16
17
}
18
19
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
float
, Et, setEt )
20
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
float
,
area
, setArea )
21
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
float
, rho, setRho )
22
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
int
,
nCells
, setNcells )
23
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
HIEventShape_v1
, std::vector<float>, Et_cos, setEt_cos )
24
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
HIEventShape_v1
, std::vector<float>, Et_sin, setEt_sin )
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
float
, etaMin, setEtaMin )
26
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
float
,
etaMax
, setEtaMax )
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
HIEventShape_v1
,
int
, layer, setLayer )
28
29
30
static
const
SG::AuxElement::Accessor< std::vector< ElementLink< HIEventShapeContainer_v1 > > >
31
linkAcc
(
"HIsubEventLink"
);
32
void
HIEventShape_v1::toPersistent
() {
33
34
// Check if the ElementLink variable is available, and writable:
35
if
(
linkAcc
.isAvailableWritable( *
this
) ) {
36
// Prepare the ElementLink objects for ROOT I/O:
37
std::vector< ElementLink< HIEventShapeContainer_v1 > >
::iterator
38
el_itr =
linkAcc
( *this ).begin();
39
std::vector< ElementLink< HIEventShapeContainer_v1 > >
::iterator
40
el_end =
linkAcc
( *this ).end();
41
for
( ; el_itr != el_end; ++el_itr ) {
42
el_itr->toPersistent();
43
}
44
}
45
46
return
;
47
}
48
49
50
51
}
// namespace xAOD
52
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
area
double area(double R)
Definition
ConvertStaveServices.cxx:42
HIEventShapeContainer_v1.h
HIEventShape_v1.h
xAOD::HIEventShape_v1
Definition
HIEventShape_v1.h:22
xAOD::HIEventShape_v1::toPersistent
void toPersistent()
Definition
HIEventShape_v1.cxx:32
xAOD::HIEventShape_v1::HIEventShape_v1
HIEventShape_v1()
Default constructor.
Definition
HIEventShape_v1.cxx:14
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::etaMax
etaMax
Definition
HIEventShape_v2.cxx:46
xAOD::linkAcc
static const SG::AuxElement::Accessor< std::vector< ElementLink< EventInfoContainer_v1 > > > linkAcc("subEventLink")
xAOD::iterator
JetConstituentVector::iterator iterator
Definition
JetConstituentVector.cxx:68
xAOD::nCells
setRawEt setRawPhi nCells
Definition
TrigCaloCluster_v1.cxx:33
Generated on
for ATLAS Offline Software by
1.17.0