The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
ThreadLocalContext.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13#include <cstddef>
14
15#include <GaudiKernel/Kernel.h>
16
17class EventContext;
18
19namespace Gaudi {
20 namespace Hive {
22 typedef std::size_t ContextIdType;
23
30
33 GAUDI_API void setCurrentContextEvt( long int evtN );
34 GAUDI_API void setCurrentContextId( ContextIdType newId, long int evtN );
36 GAUDI_API void setCurrentContext( const EventContext* ctx );
37 GAUDI_API void setCurrentContext( const EventContext& ctx );
38 } // namespace Hive
39} // namespace Gaudi
#define GAUDI_API
Definition Kernel.h:49
This class represents an entry point to all the event specific data.
GAUDI_API void setCurrentContextId(ContextIdType newId)
Used by the framework to change the value of the current context id.
GAUDI_API void setCurrentContextEvt(long int evtN)
std::size_t ContextIdType
Internal type used for the ContextId.
GAUDI_API void setCurrentContext(const EventContext *ctx)
GAUDI_API ContextIdType currentContextId()
Return the current context id.
GAUDI_API ContextIdType currentContextEvt()
GAUDI_API const EventContext & currentContext()
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1