The Gaudi Framework
master (9ef1c226)
Loading...
Searching...
No Matches
RootFileHandler.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2026 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
* );
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
private
:
38
MsgStream
m_log
;
39
int
m_level
;
40
};
IFileMgr.h
IMessageSvc.h
MsgStream.h
IMessageSvc
The IMessage is the interface implemented by the message service.
Definition
IMessageSvc.h:34
Io::IoFlags
Definition
IFileMgr.h:43
MsgStream
Definition of the MsgStream class used to transmit messages.
Definition
MsgStream.h:29
RootFileHandler::reopenRootFile
Io::reopen_t reopenRootFile(void *, const Io::IoFlags &)
Definition
RootFileHandler.cpp:112
RootFileHandler::RootFileHandler
RootFileHandler(IMessageSvc *)
Definition
RootFileHandler.cpp:19
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:27
RootFileHandler::closeRootFile
Io::close_t closeRootFile(void *ptr)
Definition
RootFileHandler.cpp:85
RootFileHandler::m_level
int m_level
Definition
RootFileHandler.h:39
RootFileHandler::m_log
MsgStream m_log
Definition
RootFileHandler.h:38
Io::reopen_t
int reopen_t
Definition
IFileMgr.h:232
Io::Fd
int Fd
Definition
IFileMgr.h:158
Io::close_t
int close_t
Definition
IFileMgr.h:231
Io::open_t
int open_t
Definition
IFileMgr.h:230
GaudiSvc
src
FileMgr
RootFileHandler.h
Generated on Mon Jun 1 2026 10:20:57 for The Gaudi Framework by
1.13.1