ATLAS Offline Software
Classes | Namespaces | Macros
xAODHelpers.h File Reference
#include "AthContainers/AuxElement.h"
Include dependency graph for xAODHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xAOD::Helpers::_importHelper
 

Namespaces

 xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 
 xAOD::Helpers
 

Macros

#define GET_VAL(FUNCNAME, VALTYPE, PERSVALTYPE)
 
#define SET_VAL(FUNCNAME, VALTYPE, PERSVALTYPE)
 Access to get a variable of the different types. More...
 
#define DECO_VAL(FUNCNAME, VALTYPE, PERSVALTYPE)
 Set a variable of the different types. More...
 

Macro Definition Documentation

◆ DECO_VAL

#define DECO_VAL (   FUNCNAME,
  VALTYPE,
  PERSVALTYPE 
)
Value:
inline bool FUNCNAME( const SG::AuxElement& auxEle, const std::string& varName, VALTYPE val ) { \
SG::AuxElement::Decorator<PERSVALTYPE> deco(varName); \
if ( deco.isAvailable(auxEle) && !(deco.isAvailableWritable(auxEle)) ) { \
return false; \
} \
deco(auxEle) = static_cast<PERSVALTYPE>(val); \
return true; \
}

Set a variable of the different types.

Definition at line 78 of file xAODHelpers.h.

◆ GET_VAL

#define GET_VAL (   FUNCNAME,
  VALTYPE,
  PERSVALTYPE 
)
Value:
inline bool FUNCNAME( const SG::AuxElement& auxEle, const std::string& varName ) { \
SG::AuxElement::ConstAccessor<PERSVALTYPE> acc(varName); \
return static_cast<VALTYPE>( acc(auxEle) ); \
}

Definition at line 42 of file xAODHelpers.h.

◆ SET_VAL

#define SET_VAL (   FUNCNAME,
  VALTYPE,
  PERSVALTYPE 
)
Value:
inline bool FUNCNAME( SG::AuxElement& auxEle, const std::string& varName, VALTYPE val ) { \
SG::AuxElement::Accessor<PERSVALTYPE> acc(varName); \
if ( acc.isAvailable(auxEle) && !(acc.isAvailableWritable(auxEle)) ) { \
return false; \
} \
acc(auxEle) = static_cast<PERSVALTYPE>(val); \
return true; \
}

Access to get a variable of the different types.

Definition at line 58 of file xAODHelpers.h.

SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
PixelAthClusterMonAlgCfg.varName
string varName
end cluster ToT and charge
Definition: PixelAthClusterMonAlgCfg.py:117
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14