44 const unsigned long* ipars = pAddr->
ipar();
45 const string* spars = pAddr->
par();
46 char mode = char( ipars[1] );
47 string fname = spars[0];
48 auto oname = pReg->
name();
49 bool recrea = mode ==
'R';
50 bool create = mode ==
'N';
51 bool update = mode ==
'U';
52 bool read = mode ==
'O';
58 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
60 log() <<
MSG::INFO <<
"Opened NEW Database file:" << fname <<
" as " << oname <<
endmsg;
62 }
else if ( update ) {
64 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
66 log() <<
MSG::INFO <<
"Connect to existing Database file:" << fname <<
" as " << oname <<
" for UPDATE"
72 log() <<
MSG::INFO <<
"Connect to existing Database file:" << fname <<
" as " << oname <<
" for READ" <<
endmsg;
74 }
else if ( recrea ) {
76 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
unsigned int CLID
Class ID definition.
const long ROOT_StorageType
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT_WITH_ID(type, id)
const CLID & objType() const override
Retrieve the class type of objects the converter produces.
A DataObject is the base class of any identifiable object on any data store.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
Concrete implementation of the IDataConnection interface to access ROOT files.
Statistics file converter class definition.
const std::string containerName(IRegistry *) const override
Retrieve the name of the container a given object is placed into.
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj) override
Converter overrides: Create transient object from persistent data.
RootDatabaseCnv(long typ, const CLID &, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
RootDirectoryCnv(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
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.
MsgStream & log() const
Helper to use mesage logger.
Opaque address interface definition.
virtual const unsigned long * ipar() const =0
Access to generic link parameters.
virtual const std::string * par() const =0
Retrieve String parameters.
virtual IRegistry * registry() const =0
Update branch name.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
virtual const name_type & name() const =0
Name of the directory (or key)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Small class representing an N tuple file in the transient store.
void setOpen(bool flag)
Set "open" flag.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...