BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
RootDedxCalibDataCnv.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/cnv/RootDedxCalibDataCnv.h,v 1.1.1.1 2006/04/03 03:03:27 maqm Exp $
2#ifndef RootDedxCalibDataCnv_h
3#define RootDedxCalibDataCnv_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 MdcCalConst;
18}
19template <class TYPE> class CnvFactory;
21
22 friend class CnvFactory<RootDedxCalibDataCnv>;
23
24public:
25 const CLID& objType() const;
26 static const CLID& classID();
27 RootDedxCalibDataCnv(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
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,
85 DataObject*& refpObject);
86};
87
88#endif
virtual long repSvcType() const
const CLID & objType() const
static const CLID & classID()
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)