ATLAS Offline Software
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 
14 #include "GaudiKernel/IEvtSelector.h"
15 
17 
21 class EventContextAthenaPool : virtual public IEvtSelector::Context {
22 
23 public:
25  EventContextAthenaPool(const IEvtSelector* selector);
29  virtual ~EventContextAthenaPool();
32 
34  virtual void* identifier() const;
35 
36 private: // data
37  const IEvtSelector* m_evtSelector;
38 };
39 
41  IEvtSelector::Context(),
42  m_evtSelector(selector) {}
44  IEvtSelector::Context(*this),
45  m_evtSelector(ctxt.m_evtSelector) {}
47 
49  if (&rhs != this) {
50  IEvtSelector::Context::operator=(rhs);
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
EventSelectorAthenaPool
This class is the EventSelector for event data.
Definition: EventSelectorAthenaPool.h:49
EventContextAthenaPool::EventContextAthenaPool
EventContextAthenaPool(const IEvtSelector *selector)
Constructor.
Definition: EventContextAthenaPool.h:40
EventContextAthenaPool
This class provides the context to access an event from POOL persistent store.
Definition: EventContextAthenaPool.h:21
EventContextAthenaPool::operator=
const EventContextAthenaPool & operator=(const EventContextAthenaPool &rhs)
Assignment operator.
Definition: EventContextAthenaPool.h:48
EventContextAthenaPool::identifier
virtual void * identifier() const
Definition: EventContextAthenaPool.h:56
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
EventContextAthenaPool::m_evtSelector
const IEvtSelector * m_evtSelector
Definition: EventContextAthenaPool.h:37
python.selector.AtlRunQuerySelectorLhcOlc.selector
selector
Definition: AtlRunQuerySelectorLhcOlc.py:611
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
checker_macros.h
Define macros for attributes used to control the static checker.
EventContextAthenaPool::~EventContextAthenaPool
virtual ~EventContextAthenaPool()
Destructor.
Definition: EventContextAthenaPool.h:46