All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 // ============================================================================
9 #include "GaudiAlg/ITupleTool.h"
10 // ============================================================================
11 
18 class TupleTool : public GaudiTupleTool ,
19  virtual public ITupleTool
20 {
21 public:
22  typedef Tuples::Tuple Tuple ;
24 
34  TupleTool( const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
37 
39  ~TupleTool() override = default;
40 
41 public:
42 
62  Tuple nTuple
63  ( const std::string& title ,
64  const CLID& clid = CLID_ColumnWiseTuple ) const override
65  { return GaudiTupleTool::nTuple ( title , clid ) ; }
66 
67 
68  Tuple nTuple
69  ( const TupleID& ID ,
70  const std::string& title = "" ,
71  const CLID& clid = CLID_ColumnWiseTuple ) const override
72  { return GaudiTupleTool::nTuple ( ID , title , clid ) ; }
73 
74  Tuple evtCol
75  ( const std::string& title ,
76  const CLID& clid = CLID_RowWiseTuple ) const override
77  { return GaudiTupleTool::evtCol ( title , clid ) ; }
78 
79  Tuple evtCol
80  ( const TupleID& ID ,
81  const std::string& title = "" ,
82  const CLID& clid = CLID_RowWiseTuple ) const override
83  { return GaudiTupleTool::evtCol ( ID , title , clid ) ; }
84 
85  TupleTool() = delete;
86  TupleTool ( const TupleTool& ) = delete;
87  TupleTool& operator=( const TupleTool& ) = delete;
88 
89 };
90 #endif // GAUDIALG_TUPLETOOL_H
~TupleTool() override=default
destructor: virtual and protected
virtual const std::string & type() const =0
The type of an AlgTool, meaning the concrete AlgTool class.
Tuples::Tuple Tuple
Definition: TupleTool.h:22
TupleTool & operator=(const TupleTool &)=delete
Tuple evtCol(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an Event Tag Collection object (book on-demand) with unique identifier.
STL class.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
Definition: Tuple.h:116
Definition of the basic interface.
Definition: IInterface.h:234
Tuple nTuple(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an N-Tuple object (book on-demand) with unique identifier.
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
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:63
TupleTool()=delete
GaudiAlg::TupleID TupleID
Definition: TupleTool.h:23
Tuple evtCol(const std::string &title, const CLID &clid=CLID_RowWiseTuple) const override
Definition: TupleTool.h:75
Simple class to extend the functionality of class GaudiHistoTool.
virtual const IInterface * parent() const =0
The parent of the concrete AlgTool.
ID class for Histogram and Ntuples.
Definition: GaudiHistoID.h:44
virtual const std::string & name() const =0
Retrieve the name of the instance.