The Gaudi Framework  v30r3 (a5ef0a68)
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 {
14 
21  class RCWNTupleCnv : public RNTupleCnv
22  {
23  public:
25  static const CLID& classID() { return CLID_ColumnWiseTuple; }
27  RCWNTupleCnv( ISvcLocator* svc ) : RNTupleCnv( svc, classID() ) {}
28 
29  protected:
31  StatusCode load( TTree* tree, INTuple*& refpObject ) override;
33  StatusCode book( const std::string& desc, INTuple* pObject, TTree*& tree ) override;
35  StatusCode writeData( TTree* rtree, INTuple* pObject ) override;
37  StatusCode readData( TTree* rtree, INTuple* pObject, long ievt ) override;
38  };
39 } // namespace RootHistCnv
40 
41 #endif // ROOTHISTCNV_RCWNTCNV_H
NTuple converter class definition.
Definition: RNTupleCnv.h:24
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:21
StatusCode book(const std::string &desc, INTuple *pObject, TTree *&tree) override
Book the N tuple.
RCWNTupleCnv(ISvcLocator *svc)
Standard constructor.
Definition: RCWNTupleCnv.h:27
STL class.
NTuple interface class definition.
Definition: INTuple.h:82
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
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:25
StatusCode writeData(TTree *rtree, INTuple *pObject) override
Write N tuple data.