Skip to content
Snippets Groups Projects

[Futurev4] fix failing tests

Merged Michal Mazurek requested to merge Futurev3_fix_failing_tests into Futurev4
All threads resolved!
2 files
+ 50
15
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -9,15 +9,51 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from Gaudi.Configuration import *
# This is a very specific configuration in order to trigger a debug message
# with a shortened name of the sensitive detector. In order to do so, in
# Gauss-on-Gaussino it will only be triggered by running construct() on the
# GiGaSensDetTracker. This happens usually in Geo services or directly in the
# detector construction factory in Gaussino, so the configuration had to be
# extended.
from Configurables import GiGaMT
from multiprocessing import cpu_count
giga = GiGaMT()
# choose default detector construction factory
from Configurables import GiGaMTDetectorConstructionFAC
giga.DetectorConstruction = "GiGaMTDetectorConstructionFAC"
dettool = giga.addTool(GiGaMTDetectorConstructionFAC,
"GiGaMTDetectorConstructionFAC")
# in order to print a debug message
from Gaudi.Configuration import DEBUG
dettool.OutputLevel = DEBUG
# Add the test tracker factory with an empty list of volumes
# just to invoke the debug message
from Configurables import GiGaSensDetTracker
from GaudiPython.Bindings import AppMgr
import cppyy
sensdet = GiGaSensDetTracker( 'ToolSvc.Hello', OutputLevel = -10)
bye = sensdet.addTool(GiGaSensDetTracker, 'Bye')
bye.OutputLevel = -10
gaudi = AppMgr()
blub = gaudi.toolSvc().create('GiGaSensDetTracker', 'Hello')
blub = gaudi.toolSvc().create('GiGaSensDetTracker', 'Hello.Bye')
gaudi.initialize()
dettool.SensDetVolumeMap = {'GiGaSensDetTracker/Hello': [] }
dettool.addTool(GiGaSensDetTracker, 'Hello')
# All the rest provides a minimum, the fastest working example
# for this test
from Configurables import GiGaMT
giga = GiGaMT()
giga.NumberOfWorkerThreads = cpu_count()
from Configurables import Gaussino
Gaussino().EvtMax = 1
# select a simple Geo service from Gaussino
# not relevant for the test, but needed for detector FAC
from Configurables import IronBoxGeo
dettool.GiGaMTGeoSvc = "IronBoxGeo"
from Configurables import ApplicationMgr
ApplicationMgr().ExtSvc += [IronBoxGeo()]
from Gaussino.Generation import GenPhase
GenPhase().ParticleGun = True
from GaudiPython import AppMgr
AppMgr().initialize()
Loading