ATLAS Offline Software
Namespaces | Macros
SGNTUPProxyLoader.cxx File Reference
#include "ExpressionEvaluation/SGNTUPProxyLoader.h"
Include dependency graph for SGNTUPProxyLoader.cxx:

Go to the source code of this file.

Namespaces

 ExpressionParsing
 Namespace holding all the expression evaluation code.
 

Macros

#define SG_GET_SCALAR(RETTYPE, TRYTYPE)
 
#define SG_GET_VECTOR(RETTYPE, TRYTYPE)
 

Macro Definition Documentation

◆ SG_GET_SCALAR

#define SG_GET_SCALAR (   RETTYPE,
  TRYTYPE 
)
Value:
do { if (m_evtStore->contains<TRYTYPE>(varname)) { \
const TRYTYPE *val = nullptr; \
StatusCode sc = m_evtStore->retrieve<TRYTYPE>((const TRYTYPE*&)val, varname); \
if (sc.isFailure()) { \
throw std::runtime_error("Couldn't retrieve (" #TRYTYPE ") " + varname); \
} \
return (RETTYPE)(*val); \
} } while (0)

Definition at line 15 of file SGNTUPProxyLoader.cxx.

◆ SG_GET_VECTOR

#define SG_GET_VECTOR (   RETTYPE,
  TRYTYPE 
)
Value:
do { if (m_evtStore->contains<std::vector<TRYTYPE> >(varname)) { \
const std::vector<TRYTYPE> *val = nullptr; \
StatusCode sc = m_evtStore->retrieve<std::vector<TRYTYPE> >((const std::vector<TRYTYPE>*&)val, varname); \
if (sc.isFailure()) { \
throw std::runtime_error("Couldn't retrieve (std::vector<" #TRYTYPE ">) " + varname); \
} \
std::vector<RETTYPE> temp; \
for (std::vector<TRYTYPE>::const_iterator it = val->begin(); it != val->end(); ++it) { \
temp.push_back((RETTYPE)(*it)); \
} \
return temp; \
} } while (0)

Definition at line 24 of file SGNTUPProxyLoader.cxx.

skel.it
it
Definition: skel.GENtoEVGEN.py:423
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
LArG4AODNtuplePlotter.varname
def varname(hname)
Definition: LArG4AODNtuplePlotter.py:37
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14