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