3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from ForwardRegionProperties.ForwardRegionPropertiesConfig
import resolveTwissBeamFilePath, buildTwissFilePath
8 flags.Sim.TwissFileBeam1=
"3.5TeV/0000.55m/nominal/v01/beam1.tfs"
9 flags.Sim.TwissFileBeam2=
"3.5TeV/0000.55m/nominal/v01/beam2.tfs"
11 flags.Beam.Energy=3.5*TeV
12 flags.Sim.TwissFileBeta=0.55*m
13 flags.Sim.TwissFileNomReal=
'nominal'
14 flags.Sim.TwissFileVersion=
"v01"
18 flags.Sim.TwissFileBeam1=
"3.5TeV/0090.00m/nominal/v02/beam1.tfs"
19 flags.Sim.TwissFileBeam2=
"3.5TeV/0090.00m/nominal/v02/beam2.tfs"
21 flags.Beam.Energy=3.5*TeV
22 flags.Sim.TwissFileBeta=90.*m
23 flags.Sim.TwissFileNomReal=
'nominal'
24 flags.Sim.TwissFileVersion=
"v02"
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.")
56 kwargs.setdefault(
"EndMarker", 236.888)
57 kwargs.setdefault(
"TransportFlag", 1)
58 kwargs.setdefault(
"EtaCut", 7.5)
59 kwargs.setdefault(
"XiCut", 0.8)
60 result.addService(CompFactory.ForwardTransportSvc(name,**kwargs), create=
True, primary=
True)
66 kwargs.setdefault(
"EndMarker", 141.580)
67 kwargs.setdefault(
"TransportFlag", 0)
68 kwargs.setdefault(
"EtaCut", 7.5)
69 kwargs.setdefault(
"XiCut", 0)
70 result.addService(CompFactory.ForwardTransportSvc(name,**kwargs), create=
True, primary=
True)