| The Gaudi Framework v32r1 (f65d50dc)

RCWNTupleCnv.h
Go to the documentation of this file.
1 #ifndef ROOTHISTCNV_RCWNTCNV_H
2 #define ROOTHISTCNV_RCWNTCNV_H 1
3
4 // Include files
5 #include "GaudiKernel/Converter.h"
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
RootHistCnv::RNTupleCnv
NTuple converter class definition.
Definition: RNTupleCnv.h:23
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
RootHistCnv::RCWNTupleCnv
Converter of Column-wise NTuple into ROOT format.
Definition: RCWNTupleCnv.h:20
RootHistCnv::RCWNTupleCnv::book
StatusCode book(const std::string &desc, INTuple *pObject, TTree *&tree) override
Book the N tuple.
Definition: RCWNTupleCnv.cpp:127
RootHistCnv::RCWNTupleCnv::RCWNTupleCnv
RCWNTupleCnv(ISvcLocator *svc)
Standard constructor.
Definition: RCWNTupleCnv.h:25
std::string
STL class.
INTuple
NTuple interface class definition.
Definition: INTuple.h:81
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
RootHistCnv::RCWNTupleCnv::load
StatusCode load(TTree *tree, INTuple *&refpObject) override
Create the transient representation of an object.
Definition: RCWNTupleCnv.cpp:282
RootHistCnv
Definition: DirectoryCnv.h:17
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
RootHistCnv::RCWNTupleCnv::readData
StatusCode readData(TTree *rtree, INTuple *pObject, long ievt) override
Read N tuple data.
Definition: RCWNTupleCnv.cpp:258
RootHistCnv::RCWNTupleCnv::classID
static const CLID & classID()
Inquire class type.
Definition: RCWNTupleCnv.h:23
RNTupleCnv.h
Converter.h
RootHistCnv::RCWNTupleCnv::writeData
StatusCode writeData(TTree *rtree, INTuple *pObject) override
Write N tuple data.
Definition: RCWNTupleCnv.cpp:243