CGEM BOSS 6.6.5.f
BESIII Offline Software System
|
#include <RootEmcCalibDataCnv.h>
Public Member Functions | |
const CLID & | objType () const |
RootEmcCalibDataCnv (ISvcLocator *svc) | |
virtual | ~RootEmcCalibDataCnv () |
virtual StatusCode | createRoot (const std::string &fname, CalibData::CalibBase1 *pTDSObj) |
virtual long | repSvcType () const |
Public Member Functions inherited from RootCalBaseCnv | |
virtual | ~RootCalBaseCnv () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
virtual StatusCode | createObj (IOpaqueAddress *addr, DataObject *&refpObject) |
ICalibRootSvc * | getCalibRootSvc () |
RootCalBaseCnv (ISvcLocator *svc, const CLID &clid) | |
virtual StatusCode | createRoot (const std::string &fname, CalibData::CalibBase1 *pTDSObj) |
virtual StatusCode | readRootObj (const std::string &treename, const std::string &branch, TObject *&pCalib, unsigned index=0) |
virtual StatusCode | readRootObj (TTree *tree, const std::string &branch, TObject *&pCalib, unsigned index=0) |
Public Member Functions inherited from Converter< Ty1, Ty2 > | |
destination * | operator (const source &) const |
destination * | operator (const source &) const |
Static Public Member Functions | |
static const CLID & | classID () |
Static Public Member Functions inherited from RootCalBaseCnv | |
static const unsigned char | storageType () |
Protected Member Functions | |
virtual StatusCode | i_createObj (const std::string &fname, DataObject *&refpObject) |
Protected Member Functions inherited from RootCalBaseCnv | |
virtual StatusCode | internalCreateObj (const std::string &fname, DataObject *&refpObject, IOpaqueAddress *address) |
virtual StatusCode | i_createObj (const std::string &fname, DataObject *&refpObject) |
virtual StatusCode | i_processObj (DataObject *pObject, IOpaqueAddress *address) |
In case there is additional work to do on the created object. | |
virtual StatusCode | fillRoot (CalibData::CalibBase *pTDSObj, TObject *pRootObj) |
virtual StatusCode | openWrite (const std::string &fname) |
StatusCode | closeWrite () |
StatusCode | openRead (const std::string &fname) |
StatusCode | closeRead () |
void | setBaseInfo (CalibData::CalibBase1 *pObj) |
Another utility for derived classes to use. | |
Protected Member Functions inherited from Converter< Ty1, Ty2 > | |
virtual destination * | convert (const source &) const =0 |
virtual destination * | convert (const source &) const =0 |
Friends | |
class | CnvFactory< RootEmcCalibDataCnv > |
Additional Inherited Members | |
Public Types inherited from Converter< Ty1, Ty2 > | |
typedef Ty1 | source |
typedef Ty2 | destination |
typedef Ty1 | source |
typedef Ty2 | destination |
Protected Attributes inherited from RootCalBaseCnv | |
ICalibRootSvc * | m_rootSvc |
ICalibMetaCnvSvc * | m_metaSvc |
IInstrumentName * | m_instrSvc |
int | m_serNo |
ITime * | m_vstart |
ITime * | m_vend |
int | m_runfrm |
int | m_runto |
TFile * | m_outFile |
TTree * | m_ttree |
TFile * | m_inFile |
TDirectory * | m_saveDir |
Base class for CAL calibration converters from ROOT files to TCDS. All such converters need to do certain things, which are handled here. Methods common to all calibrations are in the base class RootCalBaseCnv
Definition at line 21 of file RootEmcCalibDataCnv.h.
RootEmcCalibDataCnv::RootEmcCalibDataCnv | ( | ISvcLocator * | svc | ) |
Definition at line 31 of file RootEmcCalibDataCnv.cxx.
|
inlinevirtual |
Definition at line 30 of file RootEmcCalibDataCnv.h.
|
static |
Definition at line 41 of file RootEmcCalibDataCnv.cxx.
|
virtual |
Create ROOT file corresponding to TDS object input.
Default implementation is to return an error. Must be separately implemented for each calibration type.
fname | Filename for output file |
pTDSObj | Pointer to tds object to be converted |
Reimplemented from RootCalBaseCnv.
Definition at line 82 of file RootEmcCalibDataCnv.cxx.
|
protectedvirtual |
This creates the transient representation of an object from the corresponding ROOT object. This actually does the "new" operation and deals with the attributes of the node. This base class implementation does nothing; it should not normally be called because it doesn't correspond to any TCDS class. Instead, i_createObj of some derived class will be called.
fname | The ROOT file to be read in to be used to builds the object |
refpObject | the object to be built |
Reimplemented from RootCalBaseCnv.
Definition at line 45 of file RootEmcCalibDataCnv.cxx.
const CLID & RootEmcCalibDataCnv::objType | ( | ) | const |
Definition at line 37 of file RootEmcCalibDataCnv.cxx.
|
inlinevirtual |
Definition at line 34 of file RootEmcCalibDataCnv.h.
|
friend |
Definition at line 1 of file RootEmcCalibDataCnv.h.