ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Atlas::ExtendedEventContext Class Reference

#include <ExtendedEventContext.h>

Collaboration diagram for Atlas::ExtendedEventContext:

Public Member Functions

 ExtendedEventContext ()
 
 ExtendedEventContext (IProxyDict *p, EventIDBase::number_type conditionsRun=EventIDBase::UNDEFNUM, const TrigRoiDescriptor *roi=nullptr)
 
void setProxy (IProxyDict *proxy)
 
IProxyDict *proxy ATLAS_NOT_CONST_THREAD_SAFE () const
 
void setConditionsRun (EventIDBase::number_type conditionsRun)
 
EventIDBase::number_type conditionsRun () const
 
const TrigRoiDescriptorroiDescriptor () const
 Get cached pointer to View's Region of Interest Descriptor or nullptr if not describing a View. More...
 
void setThinningCache (const SG::ThinningCache *cache)
 Thread-local thinning cache. More...
 
const SG::ThinningCachethinningCache () const
 
void setMemResource (std::pmr::memory_resource *memResource)
 Memory resource. More...
 
std::pmr::memory_resource *memResource ATLAS_NOT_CONST_THREAD_SAFE () const
 

Private Attributes

IProxyDictm_proxy {nullptr}
 
EventIDBase::number_type m_conditionsRun {EventIDBase::UNDEFNUM}
 
const TrigRoiDescriptorm_roi {nullptr}
 
const SG::ThinningCachem_thinningCache {nullptr}
 
std::pmr::memory_resource * m_memResource {nullptr}
 

Detailed Description

Definition at line 23 of file ExtendedEventContext.h.

Constructor & Destructor Documentation

◆ ExtendedEventContext() [1/2]

Atlas::ExtendedEventContext::ExtendedEventContext ( )
inline

Definition at line 25 of file ExtendedEventContext.h.

25 {};

◆ ExtendedEventContext() [2/2]

Atlas::ExtendedEventContext::ExtendedEventContext ( IProxyDict p,
EventIDBase::number_type  conditionsRun = EventIDBase::UNDEFNUM,
const TrigRoiDescriptor roi = nullptr 
)
inline

Definition at line 27 of file ExtendedEventContext.h.

31  {}

Member Function Documentation

◆ ATLAS_NOT_CONST_THREAD_SAFE() [1/2]

IProxyDict* proxy Atlas::ExtendedEventContext::ATLAS_NOT_CONST_THREAD_SAFE ( ) const
inline

Definition at line 34 of file ExtendedEventContext.h.

34 { return m_proxy; }

◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/2]

std::pmr::memory_resource* memResource Atlas::ExtendedEventContext::ATLAS_NOT_CONST_THREAD_SAFE ( ) const
inline

Definition at line 73 of file ExtendedEventContext.h.

73 { return m_memResource; }

◆ conditionsRun()

EventIDBase::number_type Atlas::ExtendedEventContext::conditionsRun ( ) const
inline

Definition at line 38 of file ExtendedEventContext.h.

39  { return m_conditionsRun; }

◆ roiDescriptor()

const TrigRoiDescriptor* Atlas::ExtendedEventContext::roiDescriptor ( ) const
inline

Get cached pointer to View's Region of Interest Descriptor or nullptr if not describing a View.

If the context is describing a View within the event and that View encompasses a Region of Interest, then this method returns a cached pointer to the RoI as owned by the global context event store. This is used to perform detailed trigger monitoring via auditor.

See also
EventViewCreatorAlgorithm::execute(const EventContext&)
TrigCostSvc::processAlg(const EventContext&, const std::string&, const AuditType)

Definition at line 51 of file ExtendedEventContext.h.

51 { return m_roi; }

◆ setConditionsRun()

void Atlas::ExtendedEventContext::setConditionsRun ( EventIDBase::number_type  conditionsRun)
inline

Definition at line 36 of file ExtendedEventContext.h.

◆ setMemResource()

void Atlas::ExtendedEventContext::setMemResource ( std::pmr::memory_resource *  memResource)
inline

Memory resource.

Per-slot default memory resource to use with polymorphic_allocator in contexts where we can't specify it directly (for example, when ROOT is reading an object).

Definition at line 72 of file ExtendedEventContext.h.

72 { m_memResource = memResource; }

◆ setProxy()

void Atlas::ExtendedEventContext::setProxy ( IProxyDict proxy)
inline

Definition at line 33 of file ExtendedEventContext.h.

33 { m_proxy = proxy; }

◆ setThinningCache()

void Atlas::ExtendedEventContext::setThinningCache ( const SG::ThinningCache cache)
inline

Thread-local thinning cache.

Set when we are doing output with thinning; the cache provides information about what was thinned. This is to allow converters to get thinning information. Unfortunately, we don't have a better way of doing this without changing Gaudi interfaces.

Definition at line 62 of file ExtendedEventContext.h.

62 { m_thinningCache = cache; }

◆ thinningCache()

const SG::ThinningCache* Atlas::ExtendedEventContext::thinningCache ( ) const
inline

Definition at line 63 of file ExtendedEventContext.h.

63 { return m_thinningCache; }

Member Data Documentation

◆ m_conditionsRun

EventIDBase::number_type Atlas::ExtendedEventContext::m_conditionsRun {EventIDBase::UNDEFNUM}
private

Definition at line 78 of file ExtendedEventContext.h.

◆ m_memResource

std::pmr::memory_resource* Atlas::ExtendedEventContext::m_memResource {nullptr}
private

Definition at line 81 of file ExtendedEventContext.h.

◆ m_proxy

IProxyDict* Atlas::ExtendedEventContext::m_proxy {nullptr}
private

Definition at line 77 of file ExtendedEventContext.h.

◆ m_roi

const TrigRoiDescriptor* Atlas::ExtendedEventContext::m_roi {nullptr}
private

Definition at line 79 of file ExtendedEventContext.h.

◆ m_thinningCache

const SG::ThinningCache* Atlas::ExtendedEventContext::m_thinningCache {nullptr}
private

Definition at line 80 of file ExtendedEventContext.h.


The documentation for this class was generated from the following file:
Atlas::ExtendedEventContext::m_thinningCache
const SG::ThinningCache * m_thinningCache
Definition: ExtendedEventContext.h:80
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
Atlas::ExtendedEventContext::conditionsRun
EventIDBase::number_type conditionsRun() const
Definition: ExtendedEventContext.h:38
Atlas::ExtendedEventContext::m_conditionsRun
EventIDBase::number_type m_conditionsRun
Definition: ExtendedEventContext.h:78
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Atlas::ExtendedEventContext::m_memResource
std::pmr::memory_resource * m_memResource
Definition: ExtendedEventContext.h:81
Atlas::ExtendedEventContext::m_proxy
IProxyDict * m_proxy
Definition: ExtendedEventContext.h:77
Atlas::ExtendedEventContext::m_roi
const TrigRoiDescriptor * m_roi
Definition: ExtendedEventContext.h:79