The Gaudi Framework  v31r0 (aeb156f0)
RCWNTupleCnv.h
Go to the documentation of this file.
1 #ifndef ROOTHISTCNV_RCWNTCNV_H
2 #define ROOTHISTCNV_RCWNTCNV_H 1
3 
4 // Include files
6 #include "RNTupleCnv.h"
7 #include <string>
8 
9 #include "TFile.h"
10 #include "TTree.h"
11 
12 namespace RootHistCnv {
13 
20  class RCWNTupleCnv : public RNTupleCnv {
21  public:
23  static const CLID& classID() { return CLID_ColumnWiseTuple; }
25  RCWNTupleCnv( ISvcLocator* svc ) : RNTupleCnv( svc, classID() ) {}
26 
27  protected:
29  StatusCode load( TTree* tree, INTuple*& refpObject ) override;
31  StatusCode book( const std::string& desc, INTuple* pObject, TTree*& tree ) override;
33  StatusCode writeData( TTree* rtree, INTuple* pObject ) override;
35  StatusCode readData( TTree* rtree, INTuple* pObject, long ievt ) override;
36  };
37 } // namespace RootHistCnv
38 
39 #endif // ROOTHISTCNV_RCWNTCNV_H
NTuple converter class definition.
Definition: RNTupleCnv.h:23
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Converter of Column-wise NTuple into ROOT format.
Definition: RCWNTupleCnv.h:20
StatusCode book(const std::string &desc, INTuple *pObject, TTree *&tree) override
Book the N tuple.
RCWNTupleCnv(ISvcLocator *svc)
Standard constructor.
Definition: RCWNTupleCnv.h:25
STL class.
NTuple interface class definition.
Definition: INTuple.h:81
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
StatusCode load(TTree *tree, INTuple *&refpObject) override
Create the transient representation of an object.
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
StatusCode readData(TTree *rtree, INTuple *pObject, long ievt) override
Read N tuple data.
static const CLID & classID()
Inquire class type.
Definition: RCWNTupleCnv.h:23
StatusCode writeData(TTree *rtree, INTuple *pObject) override
Write N tuple data.