The Gaudi Framework
master (d98a2936)
RootFileHandler.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
12
// RootFileHandler.h
13
// Provides open/close/reopen functions for ROOT files
14
//
15
// Author: C.Leggett
17
18
#pragma once
19
20
#include <
GaudiKernel/IFileMgr.h
>
21
#include <
GaudiKernel/IMessageSvc.h
>
22
#include <
GaudiKernel/MsgStream.h
>
23
24
#include <string>
25
26
class
RootFileHandler
{
27
28
public
:
29
RootFileHandler
(
IMessageSvc
*,
const
std::string& userProxy,
const
std::string& certDir );
30
31
Io::open_t
openRootFile
(
const
std::string&
n
,
const
Io::IoFlags
& f,
const
std::string& desc,
Io::Fd
&
fd
,
32
void
*& ptr );
33
34
Io::close_t
closeRootFile
(
void
* ptr );
35
Io::reopen_t
reopenRootFile
(
void
*,
const
Io::IoFlags
& );
36
37
bool
setupSSL
();
38
39
private
:
40
MsgStream
m_log
;
41
int
m_level
;
42
43
std::string
m_userProxy
,
m_certDir
;
44
bool
m_ssl_setup
=
false
;
45
};
IMessageSvc
Definition:
IMessageSvc.h:34
RootFileHandler::m_log
MsgStream m_log
Definition:
RootFileHandler.h:40
Io::open_t
int open_t
Definition:
IFileMgr.h:230
RootFileHandler::m_ssl_setup
bool m_ssl_setup
Definition:
RootFileHandler.h:44
gaudirun.fd
fd
Definition:
gaudirun.py:630
RootFileHandler::RootFileHandler
RootFileHandler(IMessageSvc *, const std::string &userProxy, const std::string &certDir)
Definition:
RootFileHandler.cpp:25
RootFileHandler::reopenRootFile
Io::reopen_t reopenRootFile(void *, const Io::IoFlags &)
Definition:
RootFileHandler.cpp:119
IFileMgr.h
IMessageSvc.h
Io::reopen_t
int reopen_t
Definition:
IFileMgr.h:232
RootFileHandler::m_userProxy
std::string m_userProxy
Definition:
RootFileHandler.h:43
RootFileHandler::m_level
int m_level
Definition:
RootFileHandler.h:41
RootFileHandler::setupSSL
bool setupSSL()
Definition:
RootFileHandler.cpp:127
RootFileHandler::openRootFile
Io::open_t openRootFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
Definition:
RootFileHandler.cpp:34
RootFileHandler::closeRootFile
Io::close_t closeRootFile(void *ptr)
Definition:
RootFileHandler.cpp:92
Io::Fd
int Fd
Definition:
IFileMgr.h:158
Io::close_t
int close_t
Definition:
IFileMgr.h:231
MsgStream
Definition:
MsgStream.h:29
cpluginsvc.n
n
Definition:
cpluginsvc.py:234
RootFileHandler::m_certDir
std::string m_certDir
Definition:
RootFileHandler.h:43
RootFileHandler
Definition:
RootFileHandler.h:26
Io::IoFlags
Definition:
IFileMgr.h:43
MsgStream.h
GaudiSvc
src
FileMgr
RootFileHandler.h
Generated on Wed Aug 13 2025 09:05:05 for The Gaudi Framework by
1.8.18