The Gaudi Framework
v38r0 (2143aa4c)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
PersSvc.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 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
\***********************************************************************************/
11
#ifndef ROOTHISTCNV_PERSSVC_H
12
#define ROOTHISTCNV_PERSSVC_H 1
13
14
// Include files
15
#include "
GaudiKernel/ConversionSvc.h
"
16
17
// Forward declarations
18
class
TFile;
19
20
namespace
RootHistCnv
{
21
28
class
PersSvc
:
public
ConversionSvc
{
29
public
:
31
StatusCode
initialize
()
override
;
32
34
StatusCode
finalize
()
override
;
35
37
StatusCode
createRep
(
DataObject
* pObject,
IOpaqueAddress
*& refpAddress )
override
;
38
40
PersSvc
(
const
std::string
&
name
,
ISvcLocator
* svc ) :
ConversionSvc
(
name
, svc,
ROOT_StorageType
) {}
41
42
private
:
43
// undefFileName is defined in PersSvc.cpp
44
Gaudi::Property<std::string>
m_defFileName
{
this
,
"OutputFile"
, undefFileName,
"default file name"
};
45
Gaudi::Property<bool>
m_alphaIds
{
this
,
"ForceAlphaIds"
,
false
,
"force alphabetic histograms/ntuple IDs"
};
46
Gaudi::Property<bool>
m_outputEnabled
{
this
,
"OutputEnabled"
,
true
,
"Flag to enable/disable the output to file."
};
47
48
std::unique_ptr<TFile>
m_hfile
;
49
bool
m_prtWar
=
false
;
50
};
51
52
}
// namespace RootHistCnv
53
54
#endif // ROOTHISTCNV_PERSSVC_H
ConversionSvc
Definition:
ConversionSvc.h:55
RootHistCnv::PersSvc::createRep
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert a collection of transient data objects into another representation.
Definition:
PersSvc.cpp:81
std::string
STL class.
RootHistCnv::PersSvc::m_prtWar
bool m_prtWar
Already printed a Warning.
Definition:
PersSvc.h:49
IOpaqueAddress
Definition:
IOpaqueAddress.h:33
ISvcLocator
Definition:
ISvcLocator.h:46
RootHistCnv::PersSvc::m_hfile
std::unique_ptr< TFile > m_hfile
Pointer to the ROOT file.
Definition:
PersSvc.h:48
RootHistCnv
Definition:
DirectoryCnv.h:27
Service::name
const std::string & name() const override
Retrieve name of the service
Definition:
Service.cpp:332
StatusCode
Definition:
StatusCode.h:65
RootHistCnv::PersSvc::m_outputEnabled
Gaudi::Property< bool > m_outputEnabled
Definition:
PersSvc.h:46
RootHistCnv::PersSvc::finalize
StatusCode finalize() override
Finalise the service.
Definition:
PersSvc.cpp:66
RootHistCnv::PersSvc::PersSvc
PersSvc(const std::string &name, ISvcLocator *svc)
Standard constructor.
Definition:
PersSvc.h:40
ROOT_StorageType
const long ROOT_StorageType
Definition:
ClassID.h:62
RootHistCnv::PersSvc::m_alphaIds
Gaudi::Property< bool > m_alphaIds
Definition:
PersSvc.h:45
RootHistCnv::PersSvc
Definition:
PersSvc.h:28
DataObject
Definition:
DataObject.h:40
ConversionSvc.h
std::unique_ptr< TFile >
RootHistCnv::PersSvc::m_defFileName
Gaudi::Property< std::string > m_defFileName
Definition:
PersSvc.h:44
RootHistCnv::PersSvc::initialize
StatusCode initialize() override
Initialise the service.
Definition:
PersSvc.cpp:42
Gaudi::Property< std::string >
RootHistCnv
src
PersSvc.h
Generated on Thu Jan 25 2024 17:52:25 for The Gaudi Framework by
1.8.18