14 #include <TSSLSocket.h>
19 #include <boost/algorithm/string.hpp>
21 namespace ba = boost::algorithm;
26 : m_log(
msg,
"RootFileHandler" ), m_userProxy( p ), m_certDir(
c ) {
28 if ( !gROOT ) {
static TROOT
root(
"root",
"ROOT I/O" ); }
29 m_level =
msg->outputLevel(
"RootFileHandler" );
60 std::unique_ptr<TFile> tf;
63 tf.reset( TFile::Open(
n.c_str(), opt.c_str() ) );
64 }
catch (
const std::exception& Exception ) {
66 <<
" file for reading: " << Exception.what() << std::endl
67 <<
" -> file probably corrupt." <<
endmsg;
74 if ( !tf || !tf->IsOpen() ) {
75 m_log <<
MSG::ERROR <<
"Unable to open ROOT file \"" <<
n <<
"\" with options \"" << opt <<
"\"" <<
endmsg;
101 TFile* tf =
static_cast<TFile*
>( ptr );
105 }
catch (
const std::exception& Exception ) {
107 <<
" file" << Exception.what() <<
endmsg;