BOSS 7.0.7
BESIII Offline Software System
|
#include <TreeCalBaseCnv.h>
Public Member Functions | |
virtual | ~TreeCalBaseCnv () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
virtual StatusCode | createObj (IOpaqueAddress *addr, DataObject *&refpObject) |
ICalibTreeSvc * | getCalibTreeSvc () |
TreeCalBaseCnv (ISvcLocator *svc, const CLID &clid) | |
virtual StatusCode | createRoot (const std::string &fname, CalibData::CalibBase1 *pTDSObj) |
Public Member Functions inherited from Converter< Ty1, Ty2 > | |
destination * | operator (const source &) const |
Static Public Member Functions | |
static const unsigned char | storageType () |
Protected Member Functions | |
virtual StatusCode | internalCreateObj (DataObject *&refpObject, IOpaqueAddress *address) |
virtual StatusCode | i_createObj (IOpaqueAddress *address, 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) |
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 |
Protected Attributes | |
ICalibTreeSvc * | m_treeSvc |
ICalibMetaCnvSvc * | m_metaSvc |
IInstrumentName * | m_instrSvc |
int | m_serNo |
int | m_runfrm |
int | m_runto |
TFile * | m_outFile |
TTree * | m_ttree |
TFile * | m_inFile |
TDirectory * | m_saveDir |
Additional Inherited Members | |
Public Types inherited from Converter< Ty1, Ty2 > | |
typedef Ty1 | source |
typedef Ty2 | destination |
Base class for calibration converters from Trees to TCDS. All such converters need to do certain things, which are handled here.
Definition at line 39 of file TreeCalBaseCnv.h.
|
virtual |
@file TreeCalBaseCnv.cxx
Implementation file for Root calibration converter base class
Definition at line 32 of file TreeCalBaseCnv.cxx.
TreeCalBaseCnv::TreeCalBaseCnv | ( | ISvcLocator * | svc, |
const CLID & | clid | ||
) |
Constructor for this converter
svc | a ISvcLocator interface to find services |
clid | the type of object the converter is able to convert |
Definition at line 42 of file TreeCalBaseCnv.cxx.
|
virtual |
Create the transient representation of an object, given an opaque address. This and the following update method comprise the core functionality of calibration converters.
Definition at line 111 of file TreeCalBaseCnv.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 |
Definition at line 89 of file TreeCalBaseCnv.cxx.
|
protectedvirtual |
Given a pointer to a TDS object which can be cast to "our" type, fill in corresponding information in the corresponding root class
pTDSObj | Pointer to tds object to be converted |
pRootObj | Pointer to destination root object |
...maybe don't need pRootObj argument; keep this as the (protected) data member m_rootObj. Or else this routine could set the protected member to this passed-in value
Definition at line 100 of file TreeCalBaseCnv.cxx.
|
virtual |
Definition at line 82 of file TreeCalBaseCnv.cxx.
|
inline |
Definition at line 58 of file TreeCalBaseCnv.h.
|
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 in TreeCorrectedETSCnv, TreeDedxCalibDataCnv, TreeDedxSimDataCnv, TreeEmcCalibDataCnv, TreeEsTimeCalibDataCnv, TreeEstTofCalibDataCnv, TreeInjSigIntervalCnv, TreeInjSigTimeCnv, TreeMdcAlignDataCnv, TreeMdcCalibDataCnv, TreeMdcDataConstCnv, TreeMucCalibDataCnv, TreeOffEvtFilterCnv, TreeTofCalibDataCnv, TreeTofElecDataCnv, and TreeTofSimDataCnv.
Definition at line 184 of file TreeCalBaseCnv.cxx.
Referenced by internalCreateObj().
|
protectedvirtual |
In case there is additional work to do on the created object.
Definition at line 190 of file TreeCalBaseCnv.cxx.
Referenced by internalCreateObj().
|
virtual |
Definition at line 46 of file TreeCalBaseCnv.cxx.
|
protectedvirtual |
Read in object (by default the first) from specified branch. This creates the transient representation of an object from the corresponding ROOT object it, then fills it and process it. This implementation actually only calls the i_* methods of the "right" converter to do the job; so the very first thing it does is get a pointer to the appropriate derived converter. Converters typically don't need to override this method but only to override/implement some of the i_* methods.
pRootObj | pointer to the ROOT object |
refpObject | the object to be built |
address | the opaque address for this object |
Definition at line 131 of file TreeCalBaseCnv.cxx.
Referenced by createObj().
|
protected |
Another utility for derived classes to use.
Utility used by derived converters to start writing a ROOT file (open TFile, make a TTree, give it a branch)
fname | Name for new file |
className | Name of class for object specified in next parameter; used to name branch as well) |
pCalib | pointer to object used to create the branch Finish up writing file opened with openWrite: fill the tree write the file close the file Delete TFile (causes associated Tree to be deleted) Utility for "leaf" converters to call @param Root file to open for read |
Name | of branch to be read in |
ref. | to pCalib pointer which will be set to address of read-in object Clean up when we've finished reading in Another convenience for derived classes: sets information belonging to the calibration base class, namely validity interval and serial number. |
Definition at line 196 of file TreeCalBaseCnv.cxx.
Referenced by internalCreateObj().
|
inlinestatic |
Definition at line 62 of file TreeCalBaseCnv.h.
|
protected |
Definition at line 212 of file TreeCalBaseCnv.h.
|
protected |
Definition at line 202 of file TreeCalBaseCnv.h.
Referenced by initialize().
|
protected |
Definition at line 201 of file TreeCalBaseCnv.h.
Referenced by initialize().
|
protected |
Definition at line 209 of file TreeCalBaseCnv.h.
|
protected |
Definition at line 205 of file TreeCalBaseCnv.h.
Referenced by internalCreateObj(), and setBaseInfo().
|
protected |
Definition at line 206 of file TreeCalBaseCnv.h.
Referenced by internalCreateObj(), and setBaseInfo().
|
protected |
Definition at line 214 of file TreeCalBaseCnv.h.
|
protected |
Definition at line 204 of file TreeCalBaseCnv.h.
|
protected |
Definition at line 200 of file TreeCalBaseCnv.h.
Referenced by getCalibTreeSvc(), and initialize().
|
protected |
Definition at line 210 of file TreeCalBaseCnv.h.