BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RootTofQElecDataCnv.h
Go to the documentation of this file.
1// $Header:
2// /bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/cnv/RootTofQElecDataCnv.h,v 1.1
3// 2009/09/22 07:40:45 huangb Exp $
4#ifndef RootTofElecDataCnv_h
5#define RootTofElecDataCnv_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 TofElecData;
20}
21template <class TYPE> class CnvFactory;
23
24 friend class CnvFactory<RootTofElecDataCnv>;
25
26public:
27 const CLID& objType() const;
28 static const CLID& classID();
29 RootTofElecDataCnv( ISvcLocator* svc );
30
32
33 // virtual StatusCode createRoot(const std::string& fname,
34 // CalibData::CalibBase1* pTDSObj);
35
36 virtual long repSvcType() const { return CALIBROOT_StorageType; }
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, DataObject*& refpObject );
86};
87
88#endif
RootCalBaseCnv(ISvcLocator *svc, const CLID &clid)
const CLID & objType() const
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
RootTofElecDataCnv(ISvcLocator *svc)
virtual long repSvcType() const
static const CLID & classID()