22 using namespace Gaudi;
42 const unsigned long* ipars = pAddr->
ipar();
43 const string* spars = pAddr->
par();
44 char mode = char(ipars[1]);
45 string fname = spars[0];
46 string oname = pReg->
name();
47 bool recrea = mode ==
'R';
48 bool create = mode ==
'N';
50 bool read = mode ==
'O';
56 status =
saveDescription(fname, cntName,
"File containing statistics results.",
"", clid);
59 << fname <<
" as " << oname <<
endmsg;
64 status =
saveDescription(fname, cntName,
"File containing statistics results.",
"", clid);
66 log() <<
MSG::INFO <<
"Connect to existing Database file:"
67 << fname <<
" as " << oname <<
" for UPDATE" <<
endmsg;
73 log() <<
MSG::INFO <<
"Connect to existing Database file:"
74 << fname <<
" as " << oname <<
" for READ" <<
endmsg;
79 status =
saveDescription(fname, cntName,
"File containing statistics results.",
"", clid);
MsgStream & log() const
Helper to use mesage logger.
#define DECLARE_COMPONENT_WITH_ID(type, id)
virtual const std::string * par() const =0
Retrieve String parameters.
void setOpen(bool flag)
Set "open" flag.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
bool isSuccess() const
Test for a status code of SUCCESS.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
virtual const name_type & name() const =0
Name of the directory (or key)
virtual ~RootDatabaseCnv()
Standard destructor.
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
virtual const std::string containerName(IRegistry *) const
Retrieve the name of the container a given object is placed into.
virtual const CLID & objType() const
Retrieve the class type of objects the converter produces.
virtual IRegistry * registry() const =0
Update branch name.
This class is used for returning status codes from appropriate routines.
Statistics file converter class definition.
StatusCode saveDescription(const std::string &path, const std::string &ident, const std::string &desc, const std::string &opt, const CLID &clid)
Save statistics object description.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj)
Converter overrides: Create transient object from persistent data.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
const long ROOT_StorageType
unsigned int CLID
Class ID definition.
Description: NTuple directory converter class definition Definition of the converter to manage the di...
RootDatabaseCnv(long typ, const CLID &, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
Opaque address interface definition.
This is a number of static methods for bootstrapping the Gaudi framework.
A DataObject is the base class of any identifiable object on any data store.
Concrete implementation of the IDataConnection interface to access ROOT files.
virtual const unsigned long * ipar() const =0
Access to generic link parameters.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Small class representing an N tuple file in the transient store.