1 #ifndef GAUDIALG_TUPLE_H
2 #define GAUDIALG_TUPLE_H 1
30 #include "GaudiAlg/TupleObj.h"
35 template <
class ITEM>
class TupleItem ;
123 Tuple ( TupleObj* tuple ) ;
140 TupleObj* operator-> ()
const {
return tuple () ; }
143 bool valid ()
const {
return 0 != tuple () ; }
148 TupleObj* tuple()
const {
return m_tuple ; }
283 const std::string&
name ()
const {
return m_name ; }
297 inline TupleColumn<ITEM>
299 {
return TupleColumn<ITEM> ( name ,
item ) ; }
305 inline TupleColumn<const ITEM*>
307 {
return TupleColumn<const ITEM*>( name ,
item ) ; }
313 inline TupleColumn<ITEM*>
315 {
return TupleColumn<ITEM*> ( name ,
item ) ; }
318 inline TupleColumn<ITEM>
319 Column (
const std::string& name ,
const ITEM&
item )
323 inline TupleColumn<const ITEM*>
324 Column (
const std::string& name ,
const ITEM*
item )
328 inline TupleColumn<ITEM*>
329 Column (
const std::string& name , ITEM*
item )
337 template <
class ITEM>
342 if ( !tuple.valid() ) {
return tuple ; }
353 #endif // GAUDIALG_TUPLE_H
TupleColumn< ITEM > Column(const std::string &name, const ITEM &item)
const ITEM & value() const
Return the column value.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
const std::string & name() const
Return the column name.
StatusCode column(const std::string &name, const float value)
Set the value for selected tuple column.
ITEM m_value
The column value.
Helper class which allows to extend the functionality of Tuple with possibility to use your own repre...
std::string m_name
The column name.
TupleColumn< ITEM > make_column(const std::string &name, const ITEM &item)
helper function to create 'on-the-fly' the helper object Tuples::TupleColumn
General namespace for Tuple properties.