Go to the source code of this file.
◆ 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); \
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); \
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.