ATLAS Offline Software
Loading...
Searching...
No Matches
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
14#include "GaudiKernel/IEvtSelector.h"
15
17
21class EventContextAthenaPool : virtual public IEvtSelector::Context {
22
23public:
25 EventContextAthenaPool(const IEvtSelector* selector);
32
34 virtual void* identifier() const;
35
36private: // data
37 const IEvtSelector* m_evtSelector;
38};
39
40inline EventContextAthenaPool::EventContextAthenaPool(const IEvtSelector* selector) :
41 IEvtSelector::Context(),
42 m_evtSelector(selector) {}
44 IEvtSelector::Context(*this),
47
49 if (&rhs != this) {
50 IEvtSelector::Context::operator=(rhs);
52 }
53 return(rhs);
54}
55
57 void* id ATLAS_THREAD_SAFE = const_cast<IEvtSelector*>(m_evtSelector);
58 return id;
59}
60#endif
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
const EventContextAthenaPool & operator=(const EventContextAthenaPool &rhs)
Assignment operator.
virtual void * identifier() const
const IEvtSelector * m_evtSelector
EventContextAthenaPool(const IEvtSelector *selector)
Constructor.
virtual ~EventContextAthenaPool()
Destructor.
This class is the EventSelector for event data.