ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolCnvSvc
src
AthenaRootSharedWriterSvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHENAROOTSHAREDWRITERSVC_H
6
#define ATHENAROOTSHAREDWRITERSVC_H
7
12
13
#include "
AthenaBaseComps/AthService.h
"
14
#include "
AthenaKernel/IAthenaSharedWriterSvc.h
"
15
#include "
AthenaPoolSharedIOCnvSvc.h
"
16
17
#include "THashTable.h"
18
#include <unordered_map>
19
20
class
TServerSocket;
21
class
TMonitor;
22
26
class
AthenaRootSharedWriterSvc
:
public
extends<AthService, IAthenaSharedWriterSvc> {
27
// Allow the factory class access to the constructor
28
friend
class
SvcFactory
<
AthenaRootSharedWriterSvc
>;
29
30
public
:
// Constructor and Destructor
32
AthenaRootSharedWriterSvc
(
const
std::string& name, ISvcLocator* pSvcLocator);
34
virtual
~AthenaRootSharedWriterSvc
() =
default
;
35
36
public
:
38
virtual
StatusCode
initialize
()
override
;
39
virtual
StatusCode
stop
()
override
;
40
virtual
StatusCode
finalize
()
override
;
41
42
virtual
StatusCode
share
(
int
numClients = 0,
bool
motherClient =
false
)
override
;
43
44
private
:
45
ServiceHandle<AthenaPoolSharedIOCnvSvc>
m_cnvSvc
{
this
,
"AthenaPoolSharedIOCnvSvc"
,
"AthenaPoolSharedIOCnvSvc"
};
46
47
TServerSocket*
m_rootServerSocket
;
48
TMonitor*
m_rootMonitor
;
49
THashTable
m_rootMergers
;
50
std::unordered_map<TClass*, void*>
m_dummyCache
;
51
int
m_rootClientIndex
;
52
int
m_rootClientCount
;
53
int
m_numberOfStreams
;
54
};
55
56
#endif
AthService.h
AthenaPoolSharedIOCnvSvc.h
This file contains the class definition for the AthenaPoolSharedIOCnvSvc class.
IAthenaSharedWriterSvc.h
AthenaRootSharedWriterSvc::stop
virtual StatusCode stop() override
Definition
AthenaRootSharedWriterSvc.cxx:312
AthenaRootSharedWriterSvc::m_rootMonitor
TMonitor * m_rootMonitor
Definition
AthenaRootSharedWriterSvc.h:48
AthenaRootSharedWriterSvc::finalize
virtual StatusCode finalize() override
Definition
AthenaRootSharedWriterSvc.cxx:317
AthenaRootSharedWriterSvc::share
virtual StatusCode share(int numClients=0, bool motherClient=false) override
Definition
AthenaRootSharedWriterSvc.cxx:214
AthenaRootSharedWriterSvc::m_numberOfStreams
int m_numberOfStreams
Definition
AthenaRootSharedWriterSvc.h:53
AthenaRootSharedWriterSvc::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition
AthenaRootSharedWriterSvc.cxx:155
AthenaRootSharedWriterSvc::m_rootClientCount
int m_rootClientCount
Definition
AthenaRootSharedWriterSvc.h:52
AthenaRootSharedWriterSvc::m_dummyCache
std::unordered_map< TClass *, void * > m_dummyCache
Definition
AthenaRootSharedWriterSvc.h:50
AthenaRootSharedWriterSvc::m_rootClientIndex
int m_rootClientIndex
Definition
AthenaRootSharedWriterSvc.h:51
AthenaRootSharedWriterSvc::m_rootMergers
THashTable m_rootMergers
Definition
AthenaRootSharedWriterSvc.h:49
AthenaRootSharedWriterSvc::AthenaRootSharedWriterSvc
AthenaRootSharedWriterSvc(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition
AthenaRootSharedWriterSvc.cxx:150
AthenaRootSharedWriterSvc::m_rootServerSocket
TServerSocket * m_rootServerSocket
Definition
AthenaRootSharedWriterSvc.h:47
AthenaRootSharedWriterSvc::~AthenaRootSharedWriterSvc
virtual ~AthenaRootSharedWriterSvc()=default
Destructor.
AthenaRootSharedWriterSvc::m_cnvSvc
ServiceHandle< AthenaPoolSharedIOCnvSvc > m_cnvSvc
Definition
AthenaRootSharedWriterSvc.h:45
ServiceHandle
Definition
ClusterMakerTool.h:36
SvcFactory
Definition
AthCnvSvc.h:28
Generated on
for ATLAS Offline Software by
1.17.0