ATLAS Offline Software
Loading...
Searching...
No Matches
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):
9
10
11
12namespace xAOD {
13
18
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 )
28
29
31 linkAcc( "HIsubEventLink" );
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
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
double area(double R)
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
AuxElement()
Default constructor.
HIEventShape_v1()
Default constructor.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
JetConstituentVector::iterator iterator
setRawEt setRawPhi nCells
static const SG::AuxElement::Accessor< std::vector< ElementLink< EventInfoContainer_v1 > > > linkAcc("subEventLink")