1 #ifndef GAUDIALG_TUPLE_H 2 #define GAUDIALG_TUPLE_H 1 124 virtual ~
Tuple() =
default;
132 bool valid()
const {
return static_cast<bool>( m_tuple ); }
254 template <
class ITEM>
272 template <
class ITEM>
280 template <
class ITEM>
288 template <
class ITEM>
293 template <
class ITEM>
298 template <
class ITEM>
303 template <
class ITEM>
313 template <
class ITEM>
315 if ( !tuple.
valid() )
return tuple;
324 #endif // GAUDIALG_TUPLE_H
Header file for class TupleObj.
StatusCode column(const std::string &name, float value)
Set the value for selected tuple column.
std::shared_ptr< TupleObj > m_tuple
The (shared) tuple object.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
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
ITEM m_value
The column 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
Helper class which allows to extend the functionality of Tuple with possibility to use your own repre...
bool valid() const
check the validity of the tuple object
std::string m_name
The column name.
TupleColumn(std::string name, ITEM value)
TupleColumn< ITEM > Column(std::string name, const ITEM &item)
const ITEM & value() const
Return the column value.
TupleObj * operator->() const
get the pointer to the underlying object
General namespace for Tuple properties.