10def Run2TriggerTowerMakerCfg(flags, name='Run2TriggerTowerMaker25ns'):
11 '''
12 Basic setup of tower maker cfg for new JO
13 WARNING: need to add dependencies on digi flags (as above) that are missing as of now
14 '''
15
16 acc = ComponentAccumulator()
17
18
19
20
21
22 from CaloConditions.CaloConditionsConfig import CaloTTIdMapCfg
23 from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
24 acc.merge(CaloTTIdMapCfg(flags))
25 acc.merge(TileInfoLoaderCfg(flags))
26
27 from TrigT1CaloCondSvc.L1CaloCondConfig import L1CaloCondAlgCfg
28 acc.merge(L1CaloCondAlgCfg(flags,Physics=True, Calib1=False, Calib2=False))
29
30
31
32 if flags.Input.Format is Format.POOL:
33 ttl1Containers = [
34 ('LArTTL1Container', 'LArTTL1EM'),
35 ('LArTTL1Container', 'LArTTL1HAD'),
36 ('TileTTL1Container', 'TileTTL1Cnt'),
37 ]
38 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
39 acc.merge(SGInputLoaderCfg(flags, Load=ttl1Containers))
40
41
42 from TrigConfigSvc.TrigConfigSvcCfg import L1ConfigSvcCfg
43 acc.merge(L1ConfigSvcCfg(flags))
44
45
46 from LumiBlockComps.LumiBlockMuWriterConfig import LumiBlockMuWriterCfg
47 acc.merge(LumiBlockMuWriterCfg(flags))
48
49 condalgo = acc.getCondAlgo("L1CaloCondAlg")
50 alg = CompFactory.LVL1.Run2TriggerTowerMaker(name,
51 DigiEngine = "{}_Digitization".format(name),
52
53 CellType = 3,
54 inputTTLocation = 'unused',
55 TriggerTowerLocationRerun = 'also_unused',
56 ZeroSuppress = True,
57 ChanCalibFolderKey = condalgo.OutputKeyPPr,
58 ChanDefaultsFolderKey = condalgo.OutputKeyDef,
59 DisabledTowersFolderKey = condalgo.OutputKeyDisTowers,
60 DeadChannelsFolderKey = condalgo.OutputKeyPpmDeadChannels,
61 TTTool = CompFactory.LVL1.L1TriggerTowerTool("L1TriggerTowerTool",
62 InputKeyRunParameters=condalgo.OutputKeyRunParameters,
63 InputKeyPprConditionsRun2=condalgo.OutputKeyPprConditionsRun2,
64 InputKeyDisabledChannelRun2=condalgo.OutputKeyDisabledChannelRun2,
65 InputKeyTimeRefs=condalgo.OutputKeyTimeRefs)
66
67 )
68 acc.addEventAlgo(alg)
69
70 return acc
71
72
73