#include <src/FileMgr/RootFileHandler.h>
Definition at line 17 of file RootFileHandler.h.
RootFileHandler::RootFileHandler |
( |
IMessageSvc * |
msg, |
|
|
const std::string & |
userProxy, |
|
|
const std::string & |
certDir |
|
) |
| |
Definition at line 15 of file RootFileHandler.cpp.
21 static TROOT
root(
"root",
"ROOT I/O");
virtual int outputLevel() const =0
Retrieve the current output level threshold.
Io::close_t RootFileHandler::closeRootFile |
( |
void * |
ptr | ) |
|
Definition at line 142 of file RootFileHandler.cpp.
154 TFile* tf =
static_cast<TFile*
>(ptr);
158 }
catch (
const std::exception& Exception) {
160 <<
" file" << Exception.what()
164 m_log <<
MSG::ERROR <<
"Problems closing ROOT file \"" << tf->GetName()
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MSG::Level level()
Retrieve output level.
Io::open_t RootFileHandler::openRootFile |
( |
const std::string & |
n, |
|
|
const Io::IoFlags & |
f, |
|
|
const std::string & |
desc, |
|
|
Io::Fd & |
fd, |
|
|
void *& |
ptr |
|
) |
| |
Definition at line 30 of file RootFileHandler.cpp.
37 << f <<
"," << desc <<
")"
60 std::unique_ptr<TFile> tf;
62 if (ba::starts_with(
n,
"https://",ba::is_iequal{}) ||
63 ba::starts_with(
n,
"http://",ba::is_iequal{})) {
68 <<
"requested mode is: " << f
73 if (!
m_ssl_setup && ba::starts_with(
n,
"https://",ba::is_iequal{}) ) {
77 <<
"Unable to setup TSSLSocket for ROOT TWebFile access over https"
84 tf.reset(
new TWebFile(
n.c_str()));
85 }
catch (
const std::exception& Exception) {
87 <<
" file for reading: " << Exception.what() << std::endl
88 <<
" -> file probably corrupt." <<
endmsg;
92 <<
"\": probably corrupt" <<
endmsg;
96 if (tf && tf->IsZombie()) {
98 <<
"\": file does not exist or in not accessible" <<
endmsg;
107 tf.reset( TFile::Open(
n.c_str(),opt.c_str()) );
108 }
catch (
const std::exception& Exception) {
110 <<
" file for reading: " << Exception.what() << std::endl
111 <<
" -> file probably corrupt." <<
endmsg;
115 <<
"\": probably corrupt" <<
endmsg;
121 if (!tf || !tf->IsOpen()) {
123 <<
"\" with options \"" << opt <<
"\"" <<
endmsg;
134 m_log <<
MSG::DEBUG <<
"opened TFile " << ptr <<
" Fd: " << fd << endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MSG::Level level()
Retrieve output level.
string opt
print 'Summary: %32s [s] d d steps'%(summary.protocol,summary.type,summary.nevt,len(summary.data),)
void setLevel(int level)
Update outputlevel.
Definition at line 177 of file RootFileHandler.cpp.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
bool RootFileHandler::setupSSL |
( |
| ) |
|
Definition at line 187 of file RootFileHandler.cpp.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MSG::Level level()
Retrieve output level.
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
std::string RootFileHandler::m_certDir |
|
private |
int RootFileHandler::m_level |
|
private |
bool RootFileHandler::m_ssl_setup = false |
|
private |
std::string RootFileHandler::m_userProxy |
|
private |
The documentation for this class was generated from the following files: