1 #ifndef GAUDIALG_TUPLEDETAIL_H 2 #define GAUDIALG_TUPLEDETAIL_H 1 77 template <
class HANDLER1,
class HANDLER2>
141 template <
class HANDLER1,
class HANDLER2>
145 return std::make_unique<TupleObjImp<HANDLER1, HANDLER2>>( handler1, handler2,
name,
tuple,
clid,
type );
158 template <
class OBJECT,
class FUNCTION>
169 return ( m_obj->*m_fun )(
msg, sc, mp );
200 template <
class OBJECT,
class FUNCTION>
225 template <
class OWNER>
238 #endif // GAUDIALG_TUPLEDETAIL_H constexpr static const auto FAILURE
const NTuple::Tuple * tuple() const
provide the access to underlying Gaudi N-tuple
ErrorHandler(const OBJECT *obj, FUNCTION fun)
constructor
Header file for class TupleObj.
auto createTupleObj(HANDLER1 handler1, HANDLER2 handler2, const std::string &name, NTuple::Tuple *tuple, const CLID &clid=CLID_ColumnWiseTuple, const Tuples::Type type=Tuples::NTUPLE)
Templated helper functions allow to avoid heavy semantics of dealing with explicit type of class Tupl...
The simplest concrete implementation of class TupleObj with 3 arbitrary error handlers Any types (cla...
TupleObj.h GaudiAlg/TupleObj.h namespace with few technical implementations.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
TupleObjImp(HANDLER1 handler1, HANDLER2 handler2, const std::string &name, NTuple::Tuple *tuple, const CLID &clid=CLID_ColumnWiseTuple, const Tuples::Type type=Tuples::NTUPLE)
constructor
This class is used for returning status codes from appropriate routines.
unsigned int CLID
Class ID definition.
Abstract base class which allows the user to interact with the actual N tuple implementation.
StatusCode Error(const std::string &msg, const StatusCode sc=StatusCode::FAILURE) const override
StatusCode operator()(const std::string &msg, const StatusCode sc, const size_t mp=10) const
the only one 'useful' method
Tuples::Type type() const
accessor to the N-Tuple type
ErrorHandler< OBJECT, FUNCTION > make_handler(const OBJECT *object, FUNCTION function)
Templated helper functions allow to avoid heavy semantics of dealing with explicit type of class Erro...
double fun(const std::vector< double > &x)
StatusCode Warning(const std::string &msg, const StatusCode sc=StatusCode::FAILURE) const override
const CLID & clid() const
accessor to the N-Tuple CLID
A DataObject is the base class of any identifiable object on any data store.
Type
the list of available types for ntuples
const std::string & name() const
get the name
Header file for class : Tuple.
Concrete error handlers for dealing with classes, which supports member functions Error...
General namespace for Tuple properties.