The Gaudi Framework  master (37c0b60a)
AlgToolsClone.py
Go to the documentation of this file.
1 
14 from Configurables import (
15  AlgResourcePool,
16  GaudiTestSuiteCommonConf,
17  HiveSlimEventLoopMgr,
18  HiveWhiteBoard,
19  MyAlgorithm,
20  ToolSvc,
21 )
22 from Gaudi.Configuration import *
23 
24 GaudiTestSuiteCommonConf()
25 
26 myalg = MyAlgorithm(
27  "MyAlg",
28  PrivateToolsOnly=True,
29  Cardinality=20,
30  # this is needed because by default (for testing)
31  # MyAlgorithm default configuration is meant to fail
32  InvalidToolHandle="",
33 )
34 
35 ToolSvc(OutputLevel=INFO)
36 
37 algResourcePool = AlgResourcePool(OutputLevel=INFO)
38 slimeventloopmgr = HiveSlimEventLoopMgr(
39  SchedulerName="AvalancheSchedulerSvc", OutputLevel=INFO
40 )
41 whiteboard = HiveWhiteBoard("EventDataSvc")
42 
44  EvtMax=1,
45  EvtSel="NONE",
46  HistogramPersistency="NONE",
47  EventLoop=slimeventloopmgr,
48  ExtSvc=[algResourcePool, whiteboard],
49  TopAlg=[myalg],
50 )
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57