ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
EventSelectorAthenaPool
src
EventContextAthenaPool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EVENTCONTEXTATHENAPOOL_H
6
#define EVENTCONTEXTATHENAPOOL_H
7
12
13
#include "
CxxUtils/checker_macros.h
"
14
#include "GaudiKernel/IEvtSelector.h"
15
16
class
EventSelectorAthenaPool
;
17
21
class
EventContextAthenaPool
:
virtual
public
IEvtSelector::Context {
22
23
public
:
25
EventContextAthenaPool
(
const
IEvtSelector* selector);
27
EventContextAthenaPool
(
const
EventContextAthenaPool
& ctxt);
29
virtual
~EventContextAthenaPool
();
31
const
EventContextAthenaPool
&
operator=
(
const
EventContextAthenaPool
& rhs);
32
34
virtual
void
*
identifier
()
const
;
35
36
private
:
// data
37
const
IEvtSelector*
m_evtSelector
;
38
};
39
40
inline
EventContextAthenaPool::EventContextAthenaPool
(
const
IEvtSelector* selector) :
41
IEvtSelector::Context(),
42
m_evtSelector
(selector) {}
43
inline
EventContextAthenaPool::EventContextAthenaPool
(
const
EventContextAthenaPool
& ctxt) :
44
IEvtSelector::Context(*this),
45
m_evtSelector
(ctxt.
m_evtSelector
) {}
46
inline
EventContextAthenaPool::~EventContextAthenaPool
() {}
47
48
inline
const
EventContextAthenaPool
&
EventContextAthenaPool::operator=
(
const
EventContextAthenaPool
& rhs) {
49
if
(&rhs !=
this
) {
50
IEvtSelector::Context::operator=(rhs);
51
m_evtSelector
= rhs.
m_evtSelector
;
52
}
53
return
(rhs);
54
}
55
56
inline
void
*
EventContextAthenaPool::identifier
()
const
{
57
void
*
id
ATLAS_THREAD_SAFE
=
const_cast<
IEvtSelector*
>
(
m_evtSelector
);
58
return
id;
59
}
60
#endif
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
EventContextAthenaPool::operator=
const EventContextAthenaPool & operator=(const EventContextAthenaPool &rhs)
Assignment operator.
Definition
EventContextAthenaPool.h:48
EventContextAthenaPool::identifier
virtual void * identifier() const
Definition
EventContextAthenaPool.h:56
EventContextAthenaPool::m_evtSelector
const IEvtSelector * m_evtSelector
Definition
EventContextAthenaPool.h:37
EventContextAthenaPool::EventContextAthenaPool
EventContextAthenaPool(const IEvtSelector *selector)
Constructor.
Definition
EventContextAthenaPool.h:40
EventContextAthenaPool::~EventContextAthenaPool
virtual ~EventContextAthenaPool()
Destructor.
Definition
EventContextAthenaPool.h:46
EventSelectorAthenaPool
This class is the EventSelector for event data.
Definition
EventSelectorAthenaPool.h:53
Generated on
for ATLAS Offline Software by
1.17.0