RRWNTupleCnv.h
Go to the documentation of this file.00001
00002 #ifndef ROOTHISTCNV_RRWNTUPLECNV_H
00003 #define ROOTHISTCNV_RRWNTUPLECNV_H 1
00004
00005
00006 #include "RNTupleCnv.h"
00007
00008
00009 class TTree;
00010 template <class TYPE> class CnvFactory;
00011
00012 namespace RootHistCnv {
00019 class RRWNTupleCnv : public RNTupleCnv {
00020
00022 friend class CnvFactory<RRWNTupleCnv>;
00023
00024 public:
00026 static const CLID& classID() {
00027 return CLID_RowWiseTuple;
00028 }
00029
00031 RRWNTupleCnv( ISvcLocator* svc ) : RNTupleCnv(svc, classID()) {
00032 }
00034 virtual ~RRWNTupleCnv() {
00035 }
00036 protected:
00038 virtual StatusCode load(TTree* tree, INTuple*& refpObject);
00039
00041 virtual StatusCode book(const std::string& desc, INTuple* pObject, TTree*& tree);
00043 virtual StatusCode writeData(TTree* rtree, INTuple* pObject);
00045 virtual StatusCode readData(TTree* rtree, INTuple* pObject, long ievt);
00046 };
00047 }
00048
00049 #endif // RootHistCnv_RRWNTUPLECNV_H