1 #ifndef GAUDIALG_TUPLE_H 2 #define GAUDIALG_TUPLE_H 1 126 virtual ~
Tuple() =
default;
134 bool valid()
const {
return static_cast<bool>( m_tuple ); }
256 template <
class ITEM>
265 const ITEM&
value()
const {
return m_value; }
275 template <
class ITEM>
284 template <
class ITEM>
293 template <
class ITEM>
299 template <
class ITEM>
305 template <
class ITEM>
311 template <
class ITEM>
322 template <
class ITEM>
323 inline Tuples::Tuple& operator<<( Tuples::Tuple& tuple, const Tuples::TupleColumn<ITEM>& item )
325 if ( !tuple.valid() )
return tuple;
326 tuple->
column( item.name(), item.value() );
334 #endif // GAUDIALG_TUPLE_H
Header file for class TupleObj.
StatusCode column(const std::string &name, float value)
Set the value for selected tuple column.
const ITEM & value() const
Return the column value.
std::shared_ptr< TupleObj > m_tuple
The (shared) tuple object.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
const std::string & name() const
Return the column name.
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.
bool valid() const
check the validity of the tuple object
Helper class which allows to extend the functionality of Tuple with possibility to use your own repre...
std::string m_name
The column name.
TupleObj * operator->() const
get the pointer to the underlying object
TupleColumn(std::string name, ITEM value)
TupleColumn< ITEM > Column(std::string name, const ITEM &item)
General namespace for Tuple properties.