BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RootEstTofCalibDataCnv.h
Go to the documentation of this file.
1// $Header:
2// /bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/cnv/RootEstTofCalibDataCnv.h,v 1.1
3// 2009/01/16 07:39:17 maqm Exp $
4#ifndef RootEstTofCalibDataCnv_h
5#define RootEstTofCalibDataCnv_h
6
7/** @class RootMdcdelt0Cnv
8
9 Base class for CAL calibration converters from ROOT files to TCDS.
10 All such converters need to do certain things, which are
11 handled here. Methods common to *all* calibrations are in the
12 base class RootCalBaseCnv
13
14 @author J. Bogart
15*/
16
17#include "RootCalBaseCnv.h"
18namespace CalibData {
19 class EstTofCalibData;
20}
21template <class TYPE> class CnvFactory;
23
25
26public:
27 const CLID& objType() const;
28 static const CLID& classID();
29 RootEstTofCalibDataCnv( ISvcLocator* svc );
30
32
33 virtual StatusCode createRoot( const std::string& fname, CalibData::CalibBase1* pTDSObj );
34
35 virtual long repSvcType() const { return CALIBROOT_StorageType; }
36
37 // virtual StatusCode finalize();
38
39 /**
40 Create the transient representation of an object, given an opaque
41 address. This and the following update method comprise the core
42 functionality of calibration converters.
43 */
44 // virtual StatusCode createObj(IOpaqueAddress* addr,
45 // DataObject*& refpObject);
46
47 // virtual StatusCode i_createObj (const DOM_Element& element,
48 // DataObject*& refpObject);
49
50 // virtual StatusCode i_processObj(DataObject* pObject,
51 //
52
53 /// Convenience routine used by most CAL calibration types, which
54 /// have a <dimension> element describing how the remainder of the
55 /// Data is laid out. Read from TDS; store information internally
56 /// in protected members.
57 // StatusCode readDimension(CalibData::CalCalibBase* pCalBase);
58
59 // Might need another one reading from Root class into protected members
60 /*
61 Not sure yet what the analogous thing to findFirstRange, findNextRange
62 ought to be..likely don't need it at all since ROOT persistent form
63 comes fully labeled with CalXtalId
64 */
65
66protected:
67 /**
68 Given a pointer to a TDS object which can be cast to "our" type, fill
69 in corresponding information in the corresponding root class
70
71 @param pTDSObj Pointer to tds object to be converted
72 @param pRootObj Pointer to destination root object
73
74 */
75 // virtual StatusCode fillRoot(CalibData::Mdct0* pTDSObj,
76 // TObject* pRootObj);
77
78 /**
79 Read in object from specified branch. Don't need tree name; it's
80 always Calib
81 */
82 // virtual StatusCode readRootObj(const std::string& branch, TObject*& pCalib);
83
84 virtual StatusCode i_createObj( const std::string& fname, DataObject*& refpObject );
85};
86
87#endif
RootCalBaseCnv(ISvcLocator *svc, const CLID &clid)
RootEstTofCalibDataCnv(ISvcLocator *svc)
virtual long repSvcType() const
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
static const CLID & classID()
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)