The Gaudi Framework  v33r1 (b1225454)
TupleTool.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIALG_TUPLETOOL_H
12 #define GAUDIALG_TUPLETOOL_H 1
13 // ============================================================================
14 // Include files
15 // ============================================================================
16 // Gaudi
17 // ============================================================================
19 #include "GaudiAlg/ITupleTool.h"
20 // ============================================================================
21 
28 class TupleTool : public GaudiTupleTool, virtual public ITupleTool {
29 public:
32 
42  TupleTool( const std::string& type, const std::string& name, const IInterface* parent );
43 
44 public:
64  Tuple nTuple( const std::string& title, const CLID& clid = CLID_ColumnWiseTuple ) const override {
65  return GaudiTupleTool::nTuple( title, clid );
66  }
67 
68  Tuple nTuple( const TupleID& ID, const std::string& title = "",
69  const CLID& clid = CLID_ColumnWiseTuple ) const override {
70  return GaudiTupleTool::nTuple( ID, title, clid );
71  }
72 
73  Tuple evtCol( const std::string& title, const CLID& clid = CLID_RowWiseTuple ) const override {
74  return GaudiTupleTool::evtCol( title, clid );
75  }
76 
77  Tuple evtCol( const TupleID& ID, const std::string& title = "",
78  const CLID& clid = CLID_RowWiseTuple ) const override {
79  return GaudiTupleTool::evtCol( ID, title, clid );
80  }
81 
82  TupleTool() = delete;
83  TupleTool( const TupleTool& ) = delete;
84  TupleTool& operator=( const TupleTool& ) = delete;
85 };
86 #endif // GAUDIALG_TUPLETOOL_H
Tuple evtCol(const TupleID &ID, const std::string &title="", const CLID &clid=CLID_RowWiseTuple) const override
Definition: TupleTool.h:77
Tuple nTuple(const TupleID &ID, const std::string &title="", const CLID &clid=CLID_ColumnWiseTuple) const override
Definition: TupleTool.h:68
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:64
Tuples::Tuple Tuple
Definition: TupleTool.h:30
TupleTool & operator=(const TupleTool &)=delete
virtual const std::string & name() const =0
Retrieve the name of the instance.
STL class.
A simple wrapper class over standard Gaudi NTuple::Tuple facility.
Definition: Tuple.h:126
Tuple nTuple(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an N-Tuple object (book on-demand) with unique identifier.
Tuple evtCol(const std::string &title, const CLID &clid=CLID_RowWiseTuple) const override
Definition: TupleTool.h:73
Simple class to extend the functionality of class GaudiHistoTool.
Definition of the basic interface.
Definition: IInterface.h:254
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
virtual const std::string & type() const =0
The type of an AlgTool, meaning the concrete AlgTool class.
virtual const IInterface * parent() const =0
The parent of the concrete AlgTool.
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.
GaudiAlg::TupleID TupleID
Definition: TupleTool.h:31
ID class for Histogram and Ntuples.
Definition: GaudiHistoID.h:53