ATLAS Offline Software
Loading...
Searching...
No Matches
python.Lvl1SimulationConfig Namespace Reference

Functions

 Lvl1SimulationCfg (flags, seqName=None)
 this function sets up the top L1 simulation sequence

Variables

 exist_ok
 flags = initConfigFlags()
 Files
 MaxEvents
 NumThreads
 triggerMenuSetup
 GlobalTag
 doHLT
 acc = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 printDefaults

Function Documentation

◆ Lvl1SimulationCfg()

python.Lvl1SimulationConfig.Lvl1SimulationCfg ( flags,
seqName = None )

this function sets up the top L1 simulation sequence

it covers the two cases of running L1 in the MC simulation and for rerunning on data

Definition at line 8 of file Lvl1SimulationConfig.py.

8def Lvl1SimulationCfg(flags, seqName = None):
9 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
10 from AthenaCommon.CFElements import parOR
11 if seqName:
12 acc = ComponentAccumulator(sequence=parOR(seqName))
13 else:
14 acc = ComponentAccumulator()
15
16 from AthenaCommon.CFElements import seqAND
17 acc.addSequence(seqAND('L1SimSeq'))
18
19 if flags.Trigger.enableL1CaloLegacy:
20 acc.addSequence(seqAND('L1CaloLegacySimSeq'), parentName='L1SimSeq')
21 from TrigT1CaloSim.TrigT1CaloSimRun2Config import L1CaloLegacySimCfg
22 acc.merge(L1CaloLegacySimCfg(flags), sequenceName='L1CaloLegacySimSeq')
23
24 acc.addSequence(seqAND('L1CaloSimSeq'), parentName='L1SimSeq')
25
26 if flags.Trigger.enableL1CaloPhase1:
27 from L1CaloFEXSim.L1CaloFEXSimCfg import L1CaloFEXSimCfg
28 acc.merge(L1CaloFEXSimCfg(flags), sequenceName = 'L1CaloSimSeq')
29
30 if flags.Trigger.enableL0Muon:
31 acc.addSequence(seqAND('L0MuonSimSeq'), parentName='L1SimSeq')
32 from TriggerJobOpts.L0MuonSimulationConfig import L0MuonSimulationCfg
33 acc.merge(L0MuonSimulationCfg(flags), sequenceName='L0MuonSimSeq')
34 elif flags.Trigger.enableL1MuonPhase1:
35 acc.addSequence(seqAND('L1MuonSimSeq'), parentName='L1SimSeq')
36 from TriggerJobOpts.Lvl1MuonSimulationConfig import Lvl1MuonSimulationCfg
37 acc.merge(Lvl1MuonSimulationCfg(flags), sequenceName='L1MuonSimSeq')
38
39 if flags.Trigger.L1.doTopo:
40 acc.addSequence(seqAND('L1TopoSimSeq'), parentName='L1SimSeq')
41 from L1TopoSimulation.L1TopoSimulationConfig import L1TopoSimulationCfg
42 acc.merge(L1TopoSimulationCfg(flags), sequenceName='L1TopoSimSeq')
43
44 if flags.Trigger.L1.doGlobal:
45 globalSimSeqName = 'L0GlobalSimSeq'
46 acc.addSequence(parOR(globalSimSeqName), parentName='L1SimSeq')
47 from GlobalSimulation.GlobalL1TopoSimulation import GlobalL1TopoSimulationCfg
48 acc.merge(GlobalL1TopoSimulationCfg(flags), sequenceName=globalSimSeqName)
49
50 if flags.Trigger.doZDC:
51 acc.addSequence(seqAND('L1ZDCSimSeq'),parentName='L1SimSeq')
52 from TrigT1ZDC.TrigT1ZDCConfig import L1ZDCSimCfg
53 acc.merge(L1ZDCSimCfg(flags), sequenceName = 'L1ZDCSimSeq')
54
55 if flags.Trigger.doTRT:
56 acc.addSequence(seqAND('L1TRTSimSeq'),parentName='L1SimSeq')
57 from TrigT1TRT.TrigT1TRTConfig import L1TRTSimCfg
58 acc.merge(L1TRTSimCfg(flags), sequenceName = 'L1TRTSimSeq')
59
60
61 acc.addSequence(seqAND('L1CTPSimSeq'), parentName='L1SimSeq')
62 from TrigT1CTP.CTPSimulationConfig import CTPSimulationCfg
63 acc.merge(CTPSimulationCfg(flags), sequenceName="L1CTPSimSeq")
64
65
66 return acc
67

Variable Documentation

◆ acc

python.Lvl1SimulationConfig.acc = MainServicesCfg(flags)

Definition at line 87 of file Lvl1SimulationConfig.py.

◆ doHLT

python.Lvl1SimulationConfig.doHLT

Definition at line 82 of file Lvl1SimulationConfig.py.

◆ exist_ok

python.Lvl1SimulationConfig.exist_ok

Definition at line 74 of file Lvl1SimulationConfig.py.

◆ Files

python.Lvl1SimulationConfig.Files

Definition at line 77 of file Lvl1SimulationConfig.py.

◆ flags

python.Lvl1SimulationConfig.flags = initConfigFlags()

Definition at line 76 of file Lvl1SimulationConfig.py.

◆ GlobalTag

python.Lvl1SimulationConfig.GlobalTag

Definition at line 81 of file Lvl1SimulationConfig.py.

◆ MaxEvents

python.Lvl1SimulationConfig.MaxEvents

Definition at line 78 of file Lvl1SimulationConfig.py.

◆ NumThreads

python.Lvl1SimulationConfig.NumThreads

Definition at line 79 of file Lvl1SimulationConfig.py.

◆ printDefaults

python.Lvl1SimulationConfig.printDefaults

Definition at line 97 of file Lvl1SimulationConfig.py.

◆ summariseProps

python.Lvl1SimulationConfig.summariseProps

Definition at line 97 of file Lvl1SimulationConfig.py.

◆ triggerMenuSetup

python.Lvl1SimulationConfig.triggerMenuSetup

Definition at line 80 of file Lvl1SimulationConfig.py.

◆ True

python.Lvl1SimulationConfig.True

Definition at line 97 of file Lvl1SimulationConfig.py.

◆ withDetails

python.Lvl1SimulationConfig.withDetails

Definition at line 97 of file Lvl1SimulationConfig.py.