1 #ifndef GAUDIALG_TUPLE_H
2 #define GAUDIALG_TUPLE_H 1
30 #include "GaudiKernel/SmartIF.h"
31 #include "GaudiAlg/TupleObj.h"
132 Tuple (
const Tuple& ) =
default;
135 virtual ~Tuple() =
default;
141 Tuple& operator=(
const Tuple& ) =
default;
146 TupleObj* operator-> ()
const {
return tuple () ; }
149 bool valid ()
const {
return tuple () ; }
305 inline TupleColumn<const ITEM*>
313 inline TupleColumn<ITEM*>
318 inline TupleColumn<ITEM>
320 {
return make_column ( std::move(name) , item ) ; }
323 inline TupleColumn<const ITEM*>
325 {
return make_column ( std::move(name) , item ) ; }
328 inline TupleColumn<ITEM*>
330 {
return make_column ( std::move(name) , item ) ; }
337 template <
class ITEM>
342 if ( !tuple.
valid() ) {
return tuple ; }
353 #endif // GAUDIALG_TUPLE_H
TupleColumn< ITEM > Column(std::string name, const ITEM &item)
Small smart pointer class with automatic reference counting for IInterface.
StatusCode column(const std::string &name, float value)
Set the value for selected tuple column.
const ITEM & value() const
Return the column value.
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.
SmartIF< TupleObj > m_tuple
The tuple object.
const std::string & name() const
Return the column name.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
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...
TupleObj * tuple() const
Return the underlying tuple object.
std::string m_name
The column name.
TupleColumn(std::string name, ITEM value)
General namespace for Tuple properties.