2#ifndef RootCalBaseCnv_h
3#define RootCalBaseCnv_h
13#include "GaudiKernel/Converter.h"
14#include "GaudiKernel/CnvFactory.h"
17#include "CalibDataSvc/ICalibRootSvc.h"
55 virtual StatusCode
createObj(IOpaqueAddress* addr,
56 DataObject*& refpObject);
82 virtual StatusCode
createRoot(
const std::string& fname,
88 virtual StatusCode
readRootObj(
const std::string& treename,
89 const std::string& branch, TObject*& pCalib,
93 const std::string& branch, TObject*& pCalib,
112 DataObject*& refpObject,
126 virtual StatusCode
i_createObj (
const std::string& fname,
127 DataObject*& refpObject);
157 virtual StatusCode
openWrite(
const std::string& fname);
178 StatusCode
openRead(
const std::string& fname);
unsigned const char CALIBROOT_StorageType
Simple interface to keep track of which instrument (LAT, EM, etc.) the process is concerned with....
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
static const unsigned char storageType()
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
StatusCode openRead(const std::string &fname)
IInstrumentName * m_instrSvc
virtual StatusCode i_processObj(DataObject *pObject, IOpaqueAddress *address)
In case there is additional work to do on the created object.
virtual StatusCode finalize()
virtual StatusCode createObj(IOpaqueAddress *addr, DataObject *&refpObject)
virtual StatusCode readRootObj(const std::string &treename, const std::string &branch, TObject *&pCalib, unsigned index=0)
ICalibRootSvc * getCalibRootSvc()
virtual StatusCode internalCreateObj(const std::string &fname, DataObject *&refpObject, IOpaqueAddress *address)
ICalibMetaCnvSvc * m_metaSvc
virtual StatusCode initialize()
virtual StatusCode fillRoot(CalibData::CalibBase *pTDSObj, TObject *pRootObj)
virtual ~RootCalBaseCnv()
ICalibRootSvc * m_rootSvc
virtual StatusCode openWrite(const std::string &fname)
void setBaseInfo(CalibData::CalibBase1 *pObj)
Another utility for derived classes to use.