The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Configuration.py
Go to the documentation of this file.
11"""
12Module with the ConfigurablesUser for the common configuration in the examples.
13
14@author Marco Clemencic <marco.clemencic@cern.ch>
15"""
16
17from Gaudi.Configuration import INFO
18from GaudiKernel.Configurable import ConfigurableUser, SuperAlgorithm
19
20
22 """Enable common configuration for GaudiTestSuite tests."""
23
24 __slots__ = {"OutputLevel": INFO, "DummyEvents": -1}
25
27 from Configurables import ApplicationMgr, AuditorSvc, ChronoAuditor, MessageSvc
28
29 AuditorSvc().Auditors.append(ChronoAuditor())
30 appmgr = ApplicationMgr()
31 self.propagateProperties(others=MessageSvc())
32 if self.getProp("DummyEvents") >= 0:
33 appmgr.EvtMax = self.getProp("DummyEvents")
34 appmgr.EvtSel = "NONE"
35
36
38 """
39 Example implementation of a SuperAlgorithm specialization.
40 """
41
42 def _initGraph(self):
43 """
44 Prepare the graph represented by the SuperAlgorithm.
45 """
46 from Configurables import Gaudi__TestSuite__EventCounter as EventCounter
47 from Configurables import Gaudi__TestSuite__Prescaler as Prescaler
48 from Configurables import HelloWorld
49
50 p = self._makeAlg(Prescaler, name="Prescaler", PercentPass=50.0)
51 h = self._makeAlg(HelloWorld, name="HW")
52 c = self._makeAlg(EventCounter, name="Counter")
53 return p & h & c
The Application Manager class.
This service manages Auditors.
Definition AuditorSvc.h:22
Monitors the cpu time usage of each algorithm.
propagateProperties(self, names=None, others=None, force=True)