| The Gaudi Framework v32r1 (f65d50dc)

TupleTool.h
Go to the documentation of this file.
1 #ifndef GAUDIALG_TUPLETOOL_H
2 #define GAUDIALG_TUPLETOOL_H 1
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 // Gaudi
7 // ============================================================================
8 #include "GaudiAlg/GaudiTupleTool.h"
9 #include "GaudiAlg/ITupleTool.h"
10 // ============================================================================
11
18 class TupleTool : public GaudiTupleTool, virtual public ITupleTool {
19 public:
20 typedef Tuples::Tuple Tuple;
21 typedef GaudiAlg::TupleID TupleID;
22
32 TupleTool( const std::string& type, const std::string& name, const IInterface* parent );
33
34 public:
54 Tuple nTuple( const std::string& title, const CLID& clid = CLID_ColumnWiseTuple ) const override {
55 return GaudiTupleTool::nTuple( title, clid );
56 }
57
58 Tuple nTuple( const TupleID& ID, const std::string& title = "",
59 const CLID& clid = CLID_ColumnWiseTuple ) const override {
60 return GaudiTupleTool::nTuple( ID, title, clid );
61 }
62
63 Tuple evtCol( const std::string& title, const CLID& clid = CLID_RowWiseTuple ) const override {
64 return GaudiTupleTool::evtCol( title, clid );
65 }
66
67 Tuple evtCol( const TupleID& ID, const std::string& title = "",
68 const CLID& clid = CLID_RowWiseTuple ) const override {
69 return GaudiTupleTool::evtCol( ID, title, clid );
70 }
71
72 TupleTool() = delete;
73 TupleTool( const TupleTool& ) = delete;
74 TupleTool& operator=( const TupleTool& ) = delete;
75 };
76 #endif // GAUDIALG_TUPLETOOL_H
TupleTool::evtCol
Tuple evtCol(const TupleID &ID, const std::string &title="", const CLID &clid=CLID_RowWiseTuple) const override
Definition: TupleTool.h:67
TupleTool::nTuple
Tuple nTuple(const TupleID &ID, const std::string &title="", const CLID &clid=CLID_ColumnWiseTuple) const override
Definition: TupleTool.h:58
TupleTool::nTuple
Tuple nTuple(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const override
get N-tuple object ( book on-demand ) with unique identidier
Definition: TupleTool.h:54
TupleTool::Tuple
Tuples::Tuple Tuple
Definition: TupleTool.h:20
TupleTool::operator=
TupleTool & operator=(const TupleTool &)=delete
TupleTool
Definition: TupleTool.h:18
INamedInterface::name
virtual const std::string & name() const =0
Retrieve the name of the instance.
std::string
STL class.
Tuples::Tuple
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
Definition: Tuple.h:116
GaudiTuples< GaudiHistoTool >::nTuple
Tuple nTuple(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an N-Tuple object (book on-demand) with unique identifier.
Definition: GaudiTuples.icpp:107
TupleTool::evtCol
Tuple evtCol(const std::string &title, const CLID &clid=CLID_RowWiseTuple) const override
Definition: TupleTool.h:63
GaudiTupleTool
Simple class to extend the functionality of class GaudiHistoTool.
Definition: GaudiTupleTool.h:41
IInterface
Definition of the basic interface.
Definition: IInterface.h:244
ITupleTool
Definition: ITupleTool.h:30
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
IAlgTool::type
virtual const std::string & type() const =0
The type of an AlgTool, meaning the concrete AlgTool class.
IAlgTool::parent
virtual const IInterface * parent() const =0
The parent of the concrete AlgTool.
TupleTool::TupleTool
TupleTool()=delete
GaudiTuples< GaudiHistoTool >::evtCol
Tuple evtCol(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an Event Tag Collection object (book on-demand) with unique identifier.
Definition: GaudiTuples.icpp:140
TupleTool::TupleID
GaudiAlg::TupleID TupleID
Definition: TupleTool.h:21
GaudiTupleTool.h
ITupleTool.h
GaudiAlg::ID
ID class for Histogram and Ntuples.
Definition: GaudiHistoID.h:43