|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODJET_JETACCESSSORMAP_V1_H
8 #define XAODJET_JETACCESSSORMAP_V1_H
26 #define JET_DEFINE_ATT_ACCESSOR( NAME ) \
27 case xAOD::JetAttribute::NAME: \
29 const static AccessorWrapper< T > a( #NAME ); \
36 #define JET_DEFINE_ASSO_ACCESSOR( NAME ) \
37 case xAOD::JetAttribute::NAME: \
39 const static VectorIParticleAccessor_t a( #NAME ); \
44 #define JET_DEFINE_ASSOBJ_ACCESSOR( NAME ) \
45 case xAOD::JetAttribute::NAME: \
47 const static ObjectAccessorWrapper< T > a( #NAME ); \
56 namespace JetAttributeAccessor {
203 std::cerr <<
"xAOD::Jet_v1 ERROR Unknown attribute ("
204 << moment <<
") requested. (Did you ask the wrong type ?)" << std::endl;
225 std::cerr <<
"xAOD::Jet_v1 ERROR Unknown associated particles ("
226 <<
id <<
") requested" << std::endl;
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define JET_DEFINE_ATT_ACCESSOR(NAME)
This header defines functions to map an Attribute enum to a static accessor object for the correspond...
bool PSFrac(const xAOD::TauJet &tau, double &out)
static const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID moment)
static const ObjectAccessorWrapper< T > * accessor(xAOD::JetAttribute::AssoParticlesID id)
std::string assoName_v1(xAOD::JetAttribute::AssoParticlesID id)
Returns a name given the AssoParticlesID.
std::string name_v1(xAOD::JetAttribute::AttributeID id)
Returns a name given the AttributeID.
Define a template struct.
#define JET_DEFINE_ASSOBJ_ACCESSOR(NAME)
This header defines wrapper classes around SG::AuxElement::Accessor used internally in the Jet EDM.
Base class for elements of a container that can have aux data.