Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
11 #ifndef GAUDIALG_TUPLE_H
12 #define GAUDIALG_TUPLE_H 1
142 bool valid()
const {
return static_cast<bool>( m_tuple ); }
264 template <
class ITEM>
282 template <
class ITEM>
290 template <
class ITEM>
298 template <
class ITEM>
303 template <
class ITEM>
308 template <
class ITEM>
313 template <
class ITEM>
323 template <
class ITEM>
325 if ( !tuple.
valid() )
return tuple;
327 .
orThrow(
"Failed to fill the tuple",
"operator<<( Tuples::Tuple&, ...)" )
336 #endif // GAUDIALG_TUPLE_H
StatusCode column(std::string_view name, float value)
Set the value for selected tuple column.
const StatusCode & orThrow(std::string_view message, std::string_view tag) const
Throw a GaudiException in case of failures.
std::shared_ptr< TupleObj > m_tuple
The (shared) tuple object.
Tuple(std::shared_ptr< TupleObj > tuple)
standard constructor
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
TupleColumn< ITEM > make_column(std::string name, const ITEM &item)
helper function to create 'on-the-fly' the helper object Tuples::TupleColumn
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
TupleColumn(std::string name, ITEM value)
const std::string & name() const
Return the column name.
Tuples::Tuple & operator<<(Tuples::Tuple &tuple, const Tuples::TupleColumn< ITEM > &item)
helper operator to feed Tuple with the data, see Tuples::TupleColumn
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
bool valid() const
check the validity of the tuple object
TupleObj * operator->() const
get the pointer to the underlying object
std::string m_name
The column name.
ITEM m_value
The column value.
TupleColumn< ITEM > Column(std::string name, const ITEM &item)
const ITEM & value() const
Return the column value.