|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #define DEFINE_ACCESSOR( NAME ) \
15 case xAOD::EventShape_v1::NAME: \
17 static const SG::AuxElement::Accessor< float > a( #NAME ); \
40 std::cerr <<
"eventShapeAccessor ERROR Received unknown "
41 <<
"xAOD::EventShape::EventShapeID (" <<
id <<
")" << std::endl;
58 std::cerr <<
"eventDensityAccessor ERROR Received unknown "
59 <<
"xAOD::EventShape::EventDensityID (" <<
id <<
")"
68 if(
acc &&
acc->isAvailable( es ) ) {
81 return ( *
acc )( es );
83 throw std::runtime_error(
"Asked for unknown xAOD::EventShape "
115 return getAttribute( eventShapeAccessor(
id ), *
this,
v );
120 return getAttribute( eventShapeAccessor(
id ), *
this );
125 return setAttribute( eventShapeAccessor(
id ), *
this,
v );
137 return getAttribute( eventDensityAccessor(
id ), *
this,
v );
142 return getAttribute( eventDensityAccessor(
id ), *
this );
147 return setAttribute( eventDensityAccessor(
id ), *
this,
v );
bool getDensity(EventDensityID id, double &v) const
Get a density variable from the object.
Helper class to provide type-safe access to aux data.
bool getShape(EventShapeID id, double &v) const
Get a shape variable from the object.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define DEFINE_ACCESSOR(NAME)
Helper macro for managing EventShape Accessor objects.
EventDensityID
Event density variable types.
Data class for event shapes.
EventShape_v1()
Default constructor.
EventShapeID
Event shape variable types.
bool setDensity(EventDensityID id, double v)
Set a density variable on the object.
bool setShape(EventShapeID id, double v)
Set a shape variable on the object.