28 from AthenaCommon.Logging
import logging
29 msg = logging.getLogger(
"ForwardTransportSvcCfg")
33 if twiss_beam1
is None or twiss_beam2
is None:
34 msg.info(
"Attempting to build TwissFileBeam paths manually")
40 kwargs.setdefault(
"TwissFile1", twiss_beam1)
41 kwargs.setdefault(
"TwissFile2", twiss_beam2)
42 kwargs.setdefault(
"PositionC1", 149)
43 kwargs.setdefault(
"PositionC2", 184)
44 kwargs.setdefault(
"ApertureC1", 999)
45 kwargs.setdefault(
"ApertureC2", 999)
46 if flags.Detector.GeometryALFA
or flags.Detector.GeometryAFP:
48 if flags.Detector.GeometryZDC:
49 return ZDCForwardTransportSvcCfg (name, **kwargs)
50 msg.warning(
"ALFA and ZDC are deactivated.")