The Gaudi Framework  v36r11 (bdb84f5f)
Tuple.h File Reference
#include <string>
#include "GaudiAlg/TupleObj.h"
#include "GaudiKernel/SmartIF.h"
Include dependency graph for Tuple.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Tuples::TupleItem< ITEM >
 
class  Tuples::Tuple
 A simple wrapper class over standard Gaudi NTuple::Tuple facility. More...
 
class  Tuples::TupleColumn< ITEM >
 

Namespaces

 Tuples
 

Functions

template<class ITEM >
TupleColumn< ITEM > Tuples::make_column (std::string name, const ITEM &item)
 helper function to create 'on-the-fly' the helper object Tuples::TupleColumn More...
 
template<class ITEM >
TupleColumn< const ITEM * > Tuples::make_column (std::string name, const ITEM *item)
 helper function to create 'on-the-fly' the helper object Tuples::TupleColumn More...
 
template<class ITEM >
TupleColumn< ITEM * > Tuples::make_column (std::string name, ITEM *item)
 helper function to create 'on-the-fly' the helper object Tuples::TupleColumn More...
 
template<class ITEM >
TupleColumn< ITEM > Tuples::Column (std::string name, const ITEM &item)
 
template<class ITEM >
TupleColumn< const ITEM * > Tuples::Column (std::string name, const ITEM *item)
 
template<class ITEM >
TupleColumn< ITEM * > Tuples::Column (std::string name, ITEM *item)
 
template<class ITEM >
Tuples::Tupleoperator<< (Tuples::Tuple &tuple, const Tuples::TupleColumn< ITEM > &item)
 helper operator to feed Tuple with the data, see Tuples::TupleColumn More...
 

Detailed Description

Header file for class : Tuple

Date
2002-10-30
Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru

Definition in file Tuple.h.

Function Documentation

◆ operator<<()

template<class ITEM >
Tuples::Tuple& operator<< ( Tuples::Tuple tuple,
const Tuples::TupleColumn< ITEM > &  item 
)
inline

helper operator to feed Tuple with the data, see Tuples::TupleColumn

Definition at line 324 of file Tuple.h.

324  {
325  if ( !tuple.valid() ) return tuple; // no action for invalid tuple
326  tuple->column( item.name(), item.value() )
327  .orThrow( "Failed to fill the tuple", "operator<<( Tuples::Tuple&, ...)" )
328  .ignore();
329  return tuple;
330 }
Tuples::TupleObj::column
StatusCode column(std::string_view name, float value)
Set the value for selected tuple column.
Definition: TupleObj.cpp:267
StatusCode::orThrow
const StatusCode & orThrow(std::string_view message, std::string_view tag) const
Throw a GaudiException in case of failures.
Definition: StatusCode.h:206
Tuples::TupleColumn::name
const std::string & name() const
Return the column name.
Definition: Tuple.h:270
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
Tuples::Tuple::valid
bool valid() const
check the validity of the tuple object
Definition: Tuple.h:142
Tuples::TupleColumn::value
const ITEM & value() const
Return the column value.
Definition: Tuple.h:272