#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 13 of file RootFileHandler.cpp.
20 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 150 of file RootFileHandler.cpp.
162 TFile* tf = (TFile*) ptr;
166 }
catch (
const std::exception& Exception) {
168 <<
" file" << Exception.what()
172 m_log <<
MSG::ERROR <<
"Problems closing ROOT file \"" << tf->GetName()
MSG::Level level()
Retrieve output level.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
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 <<
")"
62 if (
n.find(
"https://") != std::string::npos ||
63 n.find(
"HTTPS://") != std::string::npos ||
64 n.find(
"http://") != std::string::npos ||
65 n.find(
"HTTP://") != std::string::npos ) {
70 <<
"requested mode is: " << f
75 if (!
m_ssl_setup && (
n.find(
"https://") != std::string::npos ||
76 n.find(
"HTTPS://") != std::string::npos )) {
80 <<
"Unable to setup TSSLSocket for ROOT TWebFile access over https"
87 tf =
new TWebFile(
n.c_str());
88 }
catch (
const std::exception& Exception) {
90 <<
" file for reading: " << Exception.what() << std::endl
91 <<
" -> file probably corrupt." <<
endmsg;
95 <<
"\": probably corrupt" <<
endmsg;
99 if (tf != 0 && tf->IsZombie()) {
101 <<
"\": file does not exist or in not accessible" <<
endmsg;
111 tf = TFile::Open(
n.c_str(),opt.c_str());
112 }
catch (
const std::exception& Exception) {
114 <<
" file for reading: " << Exception.what() << std::endl
115 <<
" -> file probably corrupt." <<
endmsg;
119 <<
"\": probably corrupt" <<
endmsg;
125 if (tf == 0 || !tf->IsOpen()) {
127 <<
"\" with options \"" << opt <<
"\"" <<
endmsg;
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.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition at line 185 of file RootFileHandler.cpp.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
bool RootFileHandler::setupSSL |
( |
| ) |
|
Definition at line 196 of file RootFileHandler.cpp.
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
MSG::Level level()
Retrieve output level.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
std::string RootFileHandler::m_certDir |
|
private |
int RootFileHandler::m_level |
|
private |
bool RootFileHandler::m_ssl_setup |
|
private |
std::string RootFileHandler::m_userProxy |
|
private |
The documentation for this class was generated from the following files: