5 from AthenaCommon.Logging
import logging
6 mlog = logging.getLogger(
'FastCaloSimFactory::configure:')
8 from AthenaCommon.AppMgr
import ToolSvc
10 mlog.info(
"now configure the non-interacting propagator...")
11 from TrkExSTEP_Propagator.TrkExSTEP_PropagatorConf
import Trk__STEP_Propagator
12 niPropagator = Trk__STEP_Propagator()
13 niPropagator.MaterialEffects =
False
14 ToolSvc += niPropagator
15 mlog.info(
"configure nono-interacting propagator finished")
17 from AthenaCommon.AlgSequence
import AthSequencer
22 from TrkExTools.TimedExtrapolator
import getNINavigator
23 navigator = getNINavigator (name=
"FCSNavigator")
26 mlog.info(
"now configure the TimedExtrapolator...")
27 from TrkExTools.TimedExtrapolator
import TimedExtrapolator
28 timedExtrapolator = TimedExtrapolator()
29 timedExtrapolator.STEP_Propagator = niPropagator
30 timedExtrapolator.Navigator = navigator
31 timedExtrapolator.ApplyMaterialEffects =
False
32 ToolSvc += timedExtrapolator
33 mlog.info(
"configure TimedExtrapolator finished")
35 if not hasattr(condSeq,
'CellInfoContainerCondAlg'):
36 from FastCaloSim.FastCaloSimConf
import CellInfoContainerCondAlg
37 condSeq += CellInfoContainerCondAlg(
"CellInfoContainerCondAlg")
39 from TrkDetDescrSvc.TrkDetDescrJobProperties
import TrkDetFlags
41 kwargs.setdefault(
"CaloEntrance", TrkDetFlags.InDetContainerName())
42 kwargs.setdefault(
"Extrapolator", timedExtrapolator)
44 from FastCaloSim.FastCaloSimConf
import FastShowerCellBuilderTool
45 theFastShowerCellBuilderTool = FastShowerCellBuilderTool(name, **kwargs)
48 ParticleParametrizationFileName = theFastShowerCellBuilderTool.ParticleParametrizationFileName
50 ParticleParametrizationFileName =
""
52 if ParticleParametrizationFileName ==
"" and len(theFastShowerCellBuilderTool.AdditionalParticleParametrizationFileNames) == 0:
53 ParticleParametrizationFileName =
"FastCaloSim/v1/ParticleEnergyParametrization.root"
55 theFastShowerCellBuilderTool.ParticleParametrizationFileName = ParticleParametrizationFileName
56 mlog.info(
"ParticleParametrizationFile=%s",
57 ParticleParametrizationFileName)
59 mlog.info(
"all values:")
60 mlog.info(theFastShowerCellBuilderTool)
62 return theFastShowerCellBuilderTool