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