1 #ifndef GAUDIALG_TUPLEDETAIL_H
2 #define GAUDIALG_TUPLEDETAIL_H 1
6 #include "GaudiAlg/Tuples.h"
7 #include "GaudiAlg/Tuple.h"
8 #include "GaudiAlg/TupleObj.h"
77 template<
class HANDLER1,
class HANDLER2>
78 class TupleObjImp:
public TupleObj
91 const std::string&
name ,
93 const CLID&
clid = CLID_ColumnWiseTuple ,
102 (
const std::string&
msg ,
107 (
const std::string& msg ,
147 template<
class HANDLER1,
class HANDLER2>
149 ( HANDLER1 handler1 ,
151 const std::string&
name ,
153 const CLID& clid = CLID_ColumnWiseTuple ,
156 return new TupleObjImp<HANDLER1,HANDLER2>
157 ( handler1 , handler2 ,
171 template <
class OBJECT,
class FUNCTION>
183 const size_t mp = 10 )
const
214 template <
class OBJECT,
class FUNCTION>
215 inline ErrorHandler<OBJECT,FUNCTION>
218 {
return ErrorHandler<OBJECT,FUNCTION>( object , function ); }
240 template <
class OWNER>
242 (
const OWNER* owner ,
243 const std::string&
name ,
245 const CLID& clid = CLID_ColumnWiseTuple ,
251 name , tuple , clid ,
type ) ;
261 #endif // GAUDIALG_TUPLEDETAIL_H
TupleObj * createTupleObj(const OWNER *owner, 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...
const NTuple::Tuple * tuple() const
provide the access to underlying Gaudi N-tuple
~TupleObjImp() override=default
empty protected destructor
TupleObj()=delete
delete the default/copy constructor and assignment
StatusCode Error(const std::string &msg, const StatusCode sc=StatusCode::FAILURE) const override
TupleObj.h GaudiAlg/TupleObj.h namespace with few technical implementations.
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.
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...
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
double fun(const std::vector< double > &x)
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
TupleObj * 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...
StatusCode Warning(const std::string &msg, const StatusCode sc=StatusCode::FAILURE) const override
General namespace for Tuple properties.