The Gaudi Framework  v38r0 (2143aa4c)
AvalancheSchedulerSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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 #ifndef GAUDIHIVE_AVALANCHESCHEDULERSVC_H
12 #define GAUDIHIVE_AVALANCHESCHEDULERSVC_H
13 
14 // Local includes
15 #include "AlgsExecutionStates.h"
16 #include "EventSlot.h"
17 #include "PrecedenceSvc.h"
18 
19 // Framework include files
22 #include "GaudiKernel/ICondSvc.h"
24 #include "GaudiKernel/IRunable.h"
25 #include "GaudiKernel/IScheduler.h"
27 #include "GaudiKernel/Service.h"
28 
29 // C++ include files
30 #include <functional>
31 #include <queue>
32 #include <string>
33 #include <string_view>
34 #include <thread>
35 #include <unordered_map>
36 #include <vector>
37 
38 // External libs
39 #include "tbb/concurrent_priority_queue.h"
40 #include "tbb/concurrent_queue.h"
41 #include "tbb/task_arena.h"
42 
43 class IAlgorithm;
44 
45 //---------------------------------------------------------------------------
46 
112 class AvalancheSchedulerSvc : public extends<Service, IScheduler> {
113 
114  friend class AlgTask;
115 
116 public:
118  using extends::extends;
119 
121  StatusCode initialize() override;
122 
124  StatusCode finalize() override;
125 
127  StatusCode pushNewEvent( EventContext* eventContext ) override;
128 
129  // Make multiple events available to the scheduler
130  StatusCode pushNewEvents( std::vector<EventContext*>& eventContexts ) override;
131 
133  StatusCode popFinishedEvent( EventContext*& eventContext ) override;
134 
136  StatusCode tryPopFinishedEvent( EventContext*& eventContext ) override;
137 
139  unsigned int freeSlots() override;
140 
142  virtual StatusCode scheduleEventView( const EventContext* sourceContext, const std::string& nodeName,
143  std::unique_ptr<EventContext> viewContext ) override;
144 
148  virtual void recordOccupancy( int samplePeriod, std::function<void( OccupancySnapshot )> callback ) override;
149 
150 private:
153 
154  enum ActivationState { INACTIVE = 0, ACTIVE = 1, FAILURE = 2 };
155 
156  // Occupancy snapshot data
158  std::chrono::system_clock::time_point m_lastSnapshot = std::chrono::system_clock::now();
159  std::function<void( OccupancySnapshot )> m_snapshotCallback;
160 
162  this, "ThreadPoolSize", -1,
163  "Size of the global thread pool initialised by TBB; a value of -1 requests to use"
164  "all available hardware threads; -100 requests to bypass TBB executing "
165  "all algorithms in the scheduler's thread." };
166  Gaudi::Property<std::string> m_whiteboardSvcName{ this, "WhiteboardSvc", "EventDataSvc", "The whiteboard name" };
168  this, "MaxBlockingAlgosInFlight", 0, "Maximum allowed number of simultaneously running CPU-blocking algorithms" };
170  this, "SimulateExecution", false,
171  "Flag to perform single-pass simulation of execution flow before the actual execution" };
173  "The following modes are currently available: PCE, COD, DRE, E" };
174  Gaudi::Property<bool> m_dumpIntraEventDynamics{ this, "DumpIntraEventDynamics", false,
175  "Dump intra-event concurrency dynamics to csv file" };
177  this, "PreemptiveBlockingTasks", false,
178  "Enable preemptive scheduling of CPU-blocking algorithms. Blocking algorithms must be flagged accordingly." };
179  Gaudi::Property<bool> m_checkDeps{ this, "CheckDependencies", false,
180  "Runtime check of Algorithm Input Data Dependencies" };
181  Gaudi::Property<bool> m_checkOutput{ this, "CheckOutputUsage", false,
182  "Runtime check of Algorithm Output Data usage" };
184  this,
185  "CheckOutputUsageIgnoreList",
186  {},
187  "Ignore outputs of the Algorithms of this name when doing the check",
188  "OrderedSet<std::string>" };
189 
190  Gaudi::Property<std::string> m_useDataLoader{ this, "DataLoaderAlg", "",
191  "Attribute unmet input dependencies to this DataLoader Algorithm" };
192 
193  Gaudi::Property<bool> m_enableCondSvc{ this, "EnableConditions", false, "Enable ConditionsSvc" };
194 
195  Gaudi::Property<bool> m_showDataDeps{ this, "ShowDataDependencies", true,
196  "Show the INPUT and OUTPUT data dependencies of Algorithms" };
197 
198  Gaudi::Property<bool> m_showDataFlow{ this, "ShowDataFlow", false,
199  "Show the configuration of DataFlow between Algorithms" };
200 
201  Gaudi::Property<bool> m_showControlFlow{ this, "ShowControlFlow", false,
202  "Show the configuration of all Algorithms and Sequences" };
203 
204  Gaudi::Property<bool> m_verboseSubSlots{ this, "VerboseSubSlots", false, "Dump algorithm states for all sub-slots" };
205 
206  // Utils and shortcuts ----------------------------------------------------
207 
209  void activate();
210 
213 
216 
219 
221  inline unsigned int algname2index( const std::string& algoname ) { return m_algname_index_map[algoname]; };
222 
225 
227  inline const std::string& index2algname( unsigned int index ) { return m_algname_vect[index]; };
228 
231 
234 
237 
240 
242  std::atomic_int m_freeSlots{ 0 };
243 
245  tbb::concurrent_bounded_queue<EventContext*> m_finishedEvents;
246 
249 
252 
254  unsigned int m_algosInFlight = 0;
255 
257  unsigned int m_blockingAlgosInFlight = 0;
258 
259  // States management ------------------------------------------------------
260 
263 
264  // Update algorithm state and, optionally, revise states of other downstream algorithms
265  StatusCode revise( unsigned int iAlgo, EventContext* contextPtr, AState state, bool iterate = false );
266 
268  struct TaskSpec;
270  StatusCode signoff( const TaskSpec& );
271 
273  bool isStalled( const EventSlot& ) const;
275  void eventFailed( EventContext* eventContext );
276 
278  void dumpSchedulerState( int iSlot );
279 
280  // Algos Management -------------------------------------------------------
281 
284 
285  // Actions management -----------------------------------------------------
286 
288  tbb::concurrent_bounded_queue<action> m_actionsQueue;
289 
291  struct TaskSpec {
293  TaskSpec(){};
294  TaskSpec( IAlgorithm* algPtr, unsigned int algIndex, const std::string& algName, unsigned int algRank,
295  bool blocking, int slotIndex, EventContext* eventContext )
296  : algPtr( algPtr )
297  , algIndex( algIndex )
298  , algName( algName )
299  , algRank( algRank )
300  , blocking( blocking )
301  , slotIndex( slotIndex )
302  , contextPtr( eventContext ){};
304  TaskSpec( const TaskSpec& ) = default;
306  TaskSpec& operator=( const TaskSpec& ) = delete;
308  TaskSpec( TaskSpec&& ) = default;
310  TaskSpec& operator=( TaskSpec&& ) = default;
311 
312  IAlgorithm* algPtr{ nullptr };
313  unsigned int algIndex{ 0 };
314  std::string_view algName;
315  unsigned int algRank{ 0 };
316  bool blocking{ false };
317  int slotIndex{ 0 };
319  };
320 
322  struct AlgQueueSort {
323  bool operator()( const TaskSpec& i, const TaskSpec& j ) const { return ( i.algRank < j.algRank ); }
324  };
325 
327  tbb::concurrent_priority_queue<TaskSpec, AlgQueueSort> m_scheduledQueue;
328  tbb::concurrent_priority_queue<TaskSpec, AlgQueueSort> m_scheduledBlockingQueue;
330 
331  // Prompt the scheduler to call updateStates
333 
334  // ------------------------------------------------------------------------
335 
336  // Service for thread pool initialization
338  tbb::task_arena* m_arena{ nullptr };
339  size_t m_maxEventsInFlight{ 0 };
340  size_t m_maxAlgosInFlight{ 1 };
341 
342 public:
343  // get next schedule-able TaskSpec
344  bool next( TaskSpec& ts, bool blocking = false ) {
345  return blocking ? m_scheduledBlockingQueue.try_pop( ts ) : m_scheduledQueue.try_pop( ts );
346  };
347 };
348 
349 #endif // GAUDIHIVE_AVALANCHESCHEDULERSVC_H
AvalancheSchedulerSvc::m_whiteboard
SmartIF< IHiveWhiteBoard > m_whiteboard
A shortcut to the whiteboard.
Definition: AvalancheSchedulerSvc.h:236
AvalancheSchedulerSvc::TaskSpec::algPtr
IAlgorithm * algPtr
Definition: AvalancheSchedulerSvc.h:312
IAlgResourcePool.h
AvalancheSchedulerSvc::m_useDataLoader
Gaudi::Property< std::string > m_useDataLoader
Definition: AvalancheSchedulerSvc.h:190
std::string
STL class.
AvalancheSchedulerSvc::TaskSpec
Struct to hold entries in the alg queues.
Definition: AvalancheSchedulerSvc.h:291
AvalancheSchedulerSvc::finalize
StatusCode finalize() override
Finalise.
Definition: AvalancheSchedulerSvc.cpp:403
AvalancheSchedulerSvc::TaskSpec::operator=
TaskSpec & operator=(const TaskSpec &)=delete
Assignment operator.
AvalancheSchedulerSvc::m_optimizationMode
Gaudi::Property< std::string > m_optimizationMode
Definition: AvalancheSchedulerSvc.h:172
AvalancheSchedulerSvc::TaskSpec::algRank
unsigned int algRank
Definition: AvalancheSchedulerSvc.h:315
AvalancheSchedulerSvc::ACTIVE
@ ACTIVE
Definition: AvalancheSchedulerSvc.h:154
EventSlot.h
std::vector
STL class.
AvalancheSchedulerSvc::iterate
StatusCode iterate()
Loop on all slots to schedule DATAREADY algorithms and sign off ready events.
Definition: AvalancheSchedulerSvc.cpp:638
EventSlot
Class representing an event slot.
Definition: EventSlot.h:24
std::chrono::duration< int64_t, std::milli >
AvalancheSchedulerSvc::m_lastSnapshot
std::chrono::system_clock::time_point m_lastSnapshot
Definition: AvalancheSchedulerSvc.h:158
std::function
AvalancheSchedulerSvc::m_scheduledQueue
tbb::concurrent_priority_queue< TaskSpec, AlgQueueSort > m_scheduledQueue
Queues for scheduled algorithms.
Definition: AvalancheSchedulerSvc.h:327
AvalancheSchedulerSvc::schedule
StatusCode schedule(TaskSpec &&)
Definition: AvalancheSchedulerSvc.cpp:992
AvalancheSchedulerSvc::ActivationState
ActivationState
Definition: AvalancheSchedulerSvc.h:154
AvalancheSchedulerSvc::m_showControlFlow
Gaudi::Property< bool > m_showControlFlow
Definition: AvalancheSchedulerSvc.h:201
AvalancheSchedulerSvc::m_needsUpdate
std::atomic< bool > m_needsUpdate
Definition: AvalancheSchedulerSvc.h:332
std::queue
STL class.
AlgsExecutionStates.h
AvalancheSchedulerSvc::m_enableCondSvc
Gaudi::Property< bool > m_enableCondSvc
Definition: AvalancheSchedulerSvc.h:193
AvalancheSchedulerSvc::deactivate
StatusCode deactivate()
Deactivate scheduler.
Definition: AvalancheSchedulerSvc.cpp:491
AvalancheSchedulerSvc::m_eventSlots
std::vector< EventSlot > m_eventSlots
Vector of events slots.
Definition: AvalancheSchedulerSvc.h:239
AvalancheSchedulerSvc::m_arena
tbb::task_arena * m_arena
Definition: AvalancheSchedulerSvc.h:338
AvalancheSchedulerSvc::m_algExecStateSvc
SmartIF< IAlgExecStateSvc > m_algExecStateSvc
Algorithm execution state manager.
Definition: AvalancheSchedulerSvc.h:248
AvalancheSchedulerSvc::TaskSpec::algName
std::string_view algName
Definition: AvalancheSchedulerSvc.h:314
AvalancheSchedulerSvc::FAILURE
@ FAILURE
Definition: AvalancheSchedulerSvc.h:154
AvalancheSchedulerSvc::m_condSvc
SmartIF< ICondSvc > m_condSvc
A shortcut to service for Conditions handling.
Definition: AvalancheSchedulerSvc.h:251
AvalancheSchedulerSvc::eventFailed
void eventFailed(EventContext *eventContext)
Method to execute if an event failed.
Definition: AvalancheSchedulerSvc.cpp:831
AvalancheSchedulerSvc::m_threadPoolSize
Gaudi::Property< int > m_threadPoolSize
Definition: AvalancheSchedulerSvc.h:161
IScheduler.h
AvalancheSchedulerSvc::m_maxEventsInFlight
size_t m_maxEventsInFlight
Definition: AvalancheSchedulerSvc.h:339
AvalancheSchedulerSvc::TaskSpec::TaskSpec
TaskSpec()
Default constructor.
Definition: AvalancheSchedulerSvc.h:293
AvalancheSchedulerSvc::m_maxBlockingAlgosInFlight
Gaudi::Property< unsigned int > m_maxBlockingAlgosInFlight
Definition: AvalancheSchedulerSvc.h:167
StatusCode
Definition: StatusCode.h:65
std::thread
STL class.
AvalancheSchedulerSvc::TaskSpec::operator=
TaskSpec & operator=(TaskSpec &&)=default
Move assignment.
PrecedenceSvc.h
AvalancheSchedulerSvc::TaskSpec::blocking
bool blocking
Definition: AvalancheSchedulerSvc.h:316
IAlgorithm
Definition: IAlgorithm.h:38
ProduceConsume.j
j
Definition: ProduceConsume.py:101
AvalancheSchedulerSvc::AlgQueueSort::operator()
bool operator()(const TaskSpec &i, const TaskSpec &j) const
Definition: AvalancheSchedulerSvc.h:323
compareRootHistos.ts
ts
Definition: compareRootHistos.py:488
AvalancheSchedulerSvc::m_enablePreemptiveBlockingTasks
Gaudi::Property< bool > m_enablePreemptiveBlockingTasks
Definition: AvalancheSchedulerSvc.h:176
AvalancheSchedulerSvc::m_whiteboardSvcName
Gaudi::Property< std::string > m_whiteboardSvcName
Definition: AvalancheSchedulerSvc.h:166
AvalancheSchedulerSvc
Definition: AvalancheSchedulerSvc.h:112
AvalancheSchedulerSvc::m_checkOutput
Gaudi::Property< bool > m_checkOutput
Definition: AvalancheSchedulerSvc.h:181
AvalancheSchedulerSvc::TaskSpec::TaskSpec
TaskSpec(const TaskSpec &)=default
Copy constructor (to keep a lambda capturing a TaskSpec storable as a std::function value)
AvalancheSchedulerSvc::m_simulateExecution
Gaudi::Property< bool > m_simulateExecution
Definition: AvalancheSchedulerSvc.h:169
AvalancheSchedulerSvc::m_scheduledBlockingQueue
tbb::concurrent_priority_queue< TaskSpec, AlgQueueSort > m_scheduledBlockingQueue
Definition: AvalancheSchedulerSvc.h:328
AvalancheSchedulerSvc::recordOccupancy
virtual void recordOccupancy(int samplePeriod, std::function< void(OccupancySnapshot)> callback) override
Sample occupancy at fixed interval (ms) Negative value to deactivate, 0 to snapshot every change Each...
Definition: AvalancheSchedulerSvc.cpp:1142
AvalancheSchedulerSvc::index2algname
const std::string & index2algname(unsigned int index)
Convert an integer to a name.
Definition: AvalancheSchedulerSvc.h:227
AvalancheSchedulerSvc::INACTIVE
@ INACTIVE
Definition: AvalancheSchedulerSvc.h:154
SmartIF< IPrecedenceSvc >
IHiveWhiteBoard.h
AvalancheSchedulerSvc::m_algosInFlight
unsigned int m_algosInFlight
Number of algorithms presently in flight.
Definition: AvalancheSchedulerSvc.h:254
std::atomic< ActivationState >
AvalancheSchedulerSvc::tryPopFinishedEvent
StatusCode tryPopFinishedEvent(EventContext *&eventContext) override
Try to fetch an event from the scheduler.
Definition: AvalancheSchedulerSvc.cpp:618
AvalancheSchedulerSvc::scheduleEventView
virtual StatusCode scheduleEventView(const EventContext *sourceContext, const std::string &nodeName, std::unique_ptr< EventContext > viewContext) override
Method to inform the scheduler about event views.
Definition: AvalancheSchedulerSvc.cpp:1102
AvalancheSchedulerSvc::m_algResourcePool
SmartIF< IAlgResourcePool > m_algResourcePool
Cache for the algorithm resource pool.
Definition: AvalancheSchedulerSvc.h:283
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
AvalancheSchedulerSvc::freeSlots
unsigned int freeSlots() override
Get free slots number.
Definition: AvalancheSchedulerSvc.cpp:591
AvalancheSchedulerSvc::m_showDataDeps
Gaudi::Property< bool > m_showDataDeps
Definition: AvalancheSchedulerSvc.h:195
AvalancheSchedulerSvc::m_maxAlgosInFlight
size_t m_maxAlgosInFlight
Definition: AvalancheSchedulerSvc.h:340
AvalancheSchedulerSvc::initialize
StatusCode initialize() override
Initialise.
Definition: AvalancheSchedulerSvc.cpp:73
Service.h
std::chrono::duration::min
T min(T... args)
AvalancheSchedulerSvc::TaskSpec::TaskSpec
TaskSpec(TaskSpec &&)=default
Move constructor.
AvalancheSchedulerSvc::TaskSpec::contextPtr
EventContext * contextPtr
Definition: AvalancheSchedulerSvc.h:318
AvalancheSchedulerSvc::m_dumpIntraEventDynamics
Gaudi::Property< bool > m_dumpIntraEventDynamics
Definition: AvalancheSchedulerSvc.h:174
AvalancheSchedulerSvc::m_retryQueue
std::queue< TaskSpec > m_retryQueue
Definition: AvalancheSchedulerSvc.h:329
IRunable.h
AvalancheSchedulerSvc::m_snapshotInterval
std::chrono::duration< int64_t, std::milli > m_snapshotInterval
Definition: AvalancheSchedulerSvc.h:157
AvalancheSchedulerSvc::m_threadPoolSvc
SmartIF< IThreadPoolSvc > m_threadPoolSvc
Definition: AvalancheSchedulerSvc.h:337
EventContext
Definition: EventContext.h:34
AlgsExecutionStates::State
State
Execution states of the algorithms Must have contiguous integer values 0, 1...
Definition: AlgsExecutionStates.h:42
AvalancheSchedulerSvc::revise
StatusCode revise(unsigned int iAlgo, EventContext *contextPtr, AState state, bool iterate=false)
Definition: AvalancheSchedulerSvc.cpp:772
AvalancheSchedulerSvc::activate
void activate()
Activate scheduler.
Definition: AvalancheSchedulerSvc.cpp:434
AvalancheSchedulerSvc::TaskSpec::TaskSpec
TaskSpec(IAlgorithm *algPtr, unsigned int algIndex, const std::string &algName, unsigned int algRank, bool blocking, int slotIndex, EventContext *eventContext)
Definition: AvalancheSchedulerSvc.h:294
AvalancheSchedulerSvc::m_actionsQueue
tbb::concurrent_bounded_queue< action > m_actionsQueue
Queue where closures are stored and picked for execution.
Definition: AvalancheSchedulerSvc.h:288
AvalancheSchedulerSvc::m_algname_index_map
std::unordered_map< std::string, unsigned int > m_algname_index_map
Map to bookkeep the information necessary to the name2index conversion.
Definition: AvalancheSchedulerSvc.h:221
AvalancheSchedulerSvc::m_checkDeps
Gaudi::Property< bool > m_checkDeps
Definition: AvalancheSchedulerSvc.h:179
AvalancheSchedulerSvc::isStalled
bool isStalled(const EventSlot &) const
Check if scheduling in a particular slot is in a stall.
Definition: AvalancheSchedulerSvc.cpp:813
AvalancheSchedulerSvc::algname2index
unsigned int algname2index(const std::string &algoname)
Convert a name to an integer.
Definition: AvalancheSchedulerSvc.h:221
AlgTask
Definition: AlgTask.h:36
AvalancheSchedulerSvc::AlgQueueSort
Comparison operator to sort the queues.
Definition: AvalancheSchedulerSvc.h:322
AvalancheSchedulerSvc::m_thread
std::thread m_thread
The thread in which the activate function runs.
Definition: AvalancheSchedulerSvc.h:218
AvalancheSchedulerSvc::pushNewEvents
StatusCode pushNewEvents(std::vector< EventContext * > &eventContexts) override
Definition: AvalancheSchedulerSvc.cpp:580
AvalancheSchedulerSvc::m_showDataFlow
Gaudi::Property< bool > m_showDataFlow
Definition: AvalancheSchedulerSvc.h:198
AvalancheSchedulerSvc::m_checkOutputIgnoreList
Gaudi::Property< std::vector< std::string > > m_checkOutputIgnoreList
Definition: AvalancheSchedulerSvc.h:183
AvalancheSchedulerSvc::signoff
StatusCode signoff(const TaskSpec &)
The call to this method is triggered only from within the AlgTask.
Definition: AvalancheSchedulerSvc.cpp:1068
AvalancheSchedulerSvc::m_freeSlots
std::atomic_int m_freeSlots
Atomic to account for asyncronous updates by the scheduler wrt the rest.
Definition: AvalancheSchedulerSvc.h:242
compareRootHistos.state
state
Definition: compareRootHistos.py:496
AvalancheSchedulerSvc::m_blockingAlgosInFlight
unsigned int m_blockingAlgosInFlight
Number of algorithms presently in flight.
Definition: AvalancheSchedulerSvc.h:257
IAlgExecStateSvc.h
AvalancheSchedulerSvc::TaskSpec::algIndex
unsigned int algIndex
Definition: AvalancheSchedulerSvc.h:313
AvalancheSchedulerSvc::m_snapshotCallback
std::function< void(OccupancySnapshot)> m_snapshotCallback
Definition: AvalancheSchedulerSvc.h:159
AvalancheSchedulerSvc::pushNewEvent
StatusCode pushNewEvent(EventContext *eventContext) override
Make an event available to the scheduler.
Definition: AvalancheSchedulerSvc.cpp:522
AvalancheSchedulerSvc::popFinishedEvent
StatusCode popFinishedEvent(EventContext *&eventContext) override
Blocks until an event is available.
Definition: AvalancheSchedulerSvc.cpp:597
AvalancheSchedulerSvc::next
bool next(TaskSpec &ts, bool blocking=false)
Definition: AvalancheSchedulerSvc.h:344
std::unique_ptr< EventContext >
std::unordered_map< std::string, unsigned int >
AvalancheSchedulerSvc::m_precSvc
SmartIF< IPrecedenceSvc > m_precSvc
A shortcut to the Precedence Service.
Definition: AvalancheSchedulerSvc.h:233
AvalancheSchedulerSvc::m_isActive
std::atomic< ActivationState > m_isActive
Flag to track if the scheduler is active or not.
Definition: AvalancheSchedulerSvc.h:215
AvalancheSchedulerSvc::m_finishedEvents
tbb::concurrent_bounded_queue< EventContext * > m_finishedEvents
Queue of finished events.
Definition: AvalancheSchedulerSvc.h:245
AvalancheSchedulerSvc::m_algname_vect
std::vector< std::string > m_algname_vect
Vector to bookkeep the information necessary to the index2name conversion.
Definition: AvalancheSchedulerSvc.h:227
ICondSvc.h
AvalancheSchedulerSvc::dumpSchedulerState
void dumpSchedulerState(int iSlot)
Dump the state of the scheduler.
Definition: AvalancheSchedulerSvc.cpp:852
Gaudi::Property< int >
AvalancheSchedulerSvc::m_verboseSubSlots
Gaudi::Property< bool > m_verboseSubSlots
Definition: AvalancheSchedulerSvc.h:204
AvalancheSchedulerSvc::TaskSpec::slotIndex
int slotIndex
Definition: AvalancheSchedulerSvc.h:317
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39
IThreadPoolSvc.h
gaudirun.callback
callback
Definition: gaudirun.py:202
std::chrono::system_clock::now
T now(T... args)