ATLAS Offline Software
Loading...
Searching...
No Matches
FexEmulatedTowersConfig Namespace Reference

Functions

 gFexEmulatedTowersCfg (flags, name="L1_gFexEmulatedTowers", writeKey="L1_gFexEmulatedTowers")
 jFexEmulatedTowersCfg (flags, name="jFexEmulatedTowerMaker", writeKey="L1_jFexEmulatedTowers", SCin="", OfflineCaloCell="")
 eFexEmulatedTowersCfg (flags, name, writeKey="L1_eFexEmulatedTowers")
 addEDM (edmType, edmName)

Variables

 parser
 type
 int
 default
 help
 nargs
 required
 choices
 True
 args = parser.parse_args()
 log = logging.getLogger('FexEmulatedTowersConfig')
 algLogLevel = getattr(Constants,args.outputLevel)
 flags = initConfigFlags()
 triggerConfig
 OutputLevel
 MaxEvents
 Files
 NumThreads
 NumConcurrentEvents
 AtlasVersion
 s = args.filesInput[0].replace('*','').replace('.data','')
 AODFileName
 EDMVersion
 doLVL1
 enableL1CaloPhase1
 acc = MainServicesCfg(flags)
list decoderTools = []
list outputEDM = []
list maybeMissingRobs = []
 inputjFexTool = acc.popToolsAndMerge(jFexInputByteStreamToolCfg(flags, 'jFexInputBSDecoder'))
 inputeFexTool
 decoderAlg
 sequenceName
 PropagateInput

Function Documentation

◆ addEDM()

FexEmulatedTowersConfig.addEDM ( edmType,
edmName )

Definition at line 130 of file FexEmulatedTowersConfig.py.

130 def addEDM(edmType, edmName):
131 auxType = edmType.replace('Container','AuxContainer')
132 return [f'{edmType}#{edmName}',
133 f'{auxType}#{edmName}Aux.']
134
135

◆ eFexEmulatedTowersCfg()

FexEmulatedTowersConfig.eFexEmulatedTowersCfg ( flags,
name,
writeKey = "L1_eFexEmulatedTowers" )
Config for emulating eFex input data from LATOME readout

Definition at line 46 of file FexEmulatedTowersConfig.py.

46def eFexEmulatedTowersCfg(flags, name, writeKey = "L1_eFexEmulatedTowers"):
47 """
48 Config for emulating eFex input data from LATOME readout
49 """
50 acc=ComponentAccumulator()
51
52 emulator = CompFactory.LVL1.eFexTowerBuilder(name,ApplyMasking=not flags.Input.isMC)
53 emulator.eFexContainerWriteKey = writeKey
54 acc.addEventAlgo(emulator)
55
56 return acc
57
58

◆ gFexEmulatedTowersCfg()

FexEmulatedTowersConfig.gFexEmulatedTowersCfg ( flags,
name = "L1_gFexEmulatedTowers",
writeKey = "L1_gFexEmulatedTowers" )
Config for emulating gFex input data from LATOME readout

Definition at line 9 of file FexEmulatedTowersConfig.py.

9def gFexEmulatedTowersCfg(flags, name="L1_gFexEmulatedTowers", writeKey="L1_gFexEmulatedTowers"):
10 """
11 Config for emulating gFex input data from LATOME readout
12 """
13 acc=ComponentAccumulator()
14
15 acc.addEventAlgo( CompFactory.LVL1.gFexTowerBuilder(name=name,
16 SCell=flags.Trigger.L1.L1CaloSuperCellContainerName,
17 gTowersWriteKey = writeKey,
18 isDATA = not flags.Input.isMC,
19 gFEX2SCmapping = "Run3L1CaloSimulation/L1CaloFEXAlgos/gFEX/gCaloTowers_to_scells_v1.txt",
20 gFEX2Tilemapping = "Run3L1CaloSimulation/L1CaloFEXAlgos/gFEX/gCaloTowers_to_tile_v1.txt",
21 gFexFiberTowerMapping = "Run3L1CaloSimulation/L1CaloFEXAlgos/gFEX/gFex_gCaloTowerMap_weighted_v1.txt") )
22 return acc
23

◆ jFexEmulatedTowersCfg()

FexEmulatedTowersConfig.jFexEmulatedTowersCfg ( flags,
name = "jFexEmulatedTowerMaker",
writeKey = "L1_jFexEmulatedTowers",
SCin = "",
OfflineCaloCell = "" )
Config for emulating jFex input data from LATOME readout
Supply SCin to build from non-standard SCell container
Supply OfflineCaloCell e.g. AllCalo to add offline cell energy decoration

Definition at line 24 of file FexEmulatedTowersConfig.py.

24def jFexEmulatedTowersCfg(flags, name="jFexEmulatedTowerMaker", writeKey="L1_jFexEmulatedTowers", SCin="", OfflineCaloCell=""):
25 """
26 Config for emulating jFex input data from LATOME readout
27 Supply SCin to build from non-standard SCell container
28 Supply OfflineCaloCell e.g. AllCalo to add offline cell energy decoration
29 """
30 acc=ComponentAccumulator()
31
32 emulator = CompFactory.LVL1.jFexEmulatedTowers(name)
33 emulator.SCell = flags.Trigger.L1.L1CaloSuperCellContainerName if not SCin else SCin
34 emulator.jTowersWriteKey = writeKey
35 emulator.isDATA = not flags.Input.isMC
36 # only set the necessary containers, tools, decorations for non empty OfflineCaloCell
37 emulator.CaloCell = OfflineCaloCell
38 emulator.CaloSuperCellIDTool = "CaloSuperCellIDTool" if OfflineCaloCell else ""
39 emulator.TileOfflineETKey = "CaloCellETByLayer" if (OfflineCaloCell and not flags.Input.isMC) else ""
40 emulator.CaloCellSumEtdecorKey = "CaloCellSumEt" if OfflineCaloCell else ""
41
42 acc.addEventAlgo(emulator)
43
44 return acc
45

Variable Documentation

◆ acc

FexEmulatedTowersConfig.acc = MainServicesCfg(flags)

Definition at line 115 of file FexEmulatedTowersConfig.py.

◆ algLogLevel

FexEmulatedTowersConfig.algLogLevel = getattr(Constants,args.outputLevel)

Definition at line 80 of file FexEmulatedTowersConfig.py.

◆ AODFileName

FexEmulatedTowersConfig.AODFileName

Definition at line 98 of file FexEmulatedTowersConfig.py.

◆ args

FexEmulatedTowersConfig.args = parser.parse_args()

Definition at line 73 of file FexEmulatedTowersConfig.py.

◆ AtlasVersion

FexEmulatedTowersConfig.AtlasVersion

Definition at line 94 of file FexEmulatedTowersConfig.py.

◆ choices

FexEmulatedTowersConfig.choices

Definition at line 71 of file FexEmulatedTowersConfig.py.

◆ decoderAlg

FexEmulatedTowersConfig.decoderAlg
Initial value:
1= CompFactory.L1TriggerByteStreamDecoderAlg(name="L1TriggerByteStreamDecoder",
2 DecoderTools=decoderTools, OutputLevel=algLogLevel,
3 MaybeMissingROBs=maybeMissingRobs)

Definition at line 184 of file FexEmulatedTowersConfig.py.

◆ decoderTools

list FexEmulatedTowersConfig.decoderTools = []

Definition at line 126 of file FexEmulatedTowersConfig.py.

◆ default

FexEmulatedTowersConfig.default

Definition at line 69 of file FexEmulatedTowersConfig.py.

◆ doLVL1

FexEmulatedTowersConfig.doLVL1

Definition at line 103 of file FexEmulatedTowersConfig.py.

◆ EDMVersion

FexEmulatedTowersConfig.EDMVersion

Definition at line 102 of file FexEmulatedTowersConfig.py.

◆ enableL1CaloPhase1

FexEmulatedTowersConfig.enableL1CaloPhase1

Definition at line 104 of file FexEmulatedTowersConfig.py.

◆ Files

FexEmulatedTowersConfig.Files

Definition at line 88 of file FexEmulatedTowersConfig.py.

◆ flags

FexEmulatedTowersConfig.flags = initConfigFlags()

Definition at line 82 of file FexEmulatedTowersConfig.py.

◆ help

FexEmulatedTowersConfig.help

Definition at line 69 of file FexEmulatedTowersConfig.py.

◆ inputeFexTool

FexEmulatedTowersConfig.inputeFexTool
Initial value:
1= acc.popToolsAndMerge(eFexByteStreamToolCfg(
2 flags,'eFexBSDecoder',TOBs=False,xTOBs=False,decodeInputs=True))

Definition at line 174 of file FexEmulatedTowersConfig.py.

◆ inputjFexTool

FexEmulatedTowersConfig.inputjFexTool = acc.popToolsAndMerge(jFexInputByteStreamToolCfg(flags, 'jFexInputBSDecoder'))

Definition at line 157 of file FexEmulatedTowersConfig.py.

◆ int

FexEmulatedTowersConfig.int

Definition at line 69 of file FexEmulatedTowersConfig.py.

◆ log

FexEmulatedTowersConfig.log = logging.getLogger('FexEmulatedTowersConfig')

Definition at line 76 of file FexEmulatedTowersConfig.py.

◆ MaxEvents

FexEmulatedTowersConfig.MaxEvents

Definition at line 87 of file FexEmulatedTowersConfig.py.

◆ maybeMissingRobs

list FexEmulatedTowersConfig.maybeMissingRobs = []

Definition at line 128 of file FexEmulatedTowersConfig.py.

◆ nargs

FexEmulatedTowersConfig.nargs

Definition at line 70 of file FexEmulatedTowersConfig.py.

◆ NumConcurrentEvents

FexEmulatedTowersConfig.NumConcurrentEvents

Definition at line 90 of file FexEmulatedTowersConfig.py.

◆ NumThreads

FexEmulatedTowersConfig.NumThreads

Definition at line 89 of file FexEmulatedTowersConfig.py.

◆ outputEDM

list FexEmulatedTowersConfig.outputEDM = []

Definition at line 127 of file FexEmulatedTowersConfig.py.

◆ OutputLevel

FexEmulatedTowersConfig.OutputLevel

Definition at line 86 of file FexEmulatedTowersConfig.py.

◆ parser

FexEmulatedTowersConfig.parser
Initial value:
1= argparse.ArgumentParser(prog='python -m L1CaloFEXAlgos.FexEmulatedTowersConfig',
2 description=)

Definition at line 66 of file FexEmulatedTowersConfig.py.

◆ PropagateInput

FexEmulatedTowersConfig.PropagateInput

Definition at line 196 of file FexEmulatedTowersConfig.py.

◆ required

FexEmulatedTowersConfig.required

Definition at line 70 of file FexEmulatedTowersConfig.py.

◆ s

FexEmulatedTowersConfig.s = args.filesInput[0].replace('*','').replace('.data','')

Definition at line 97 of file FexEmulatedTowersConfig.py.

◆ sequenceName

FexEmulatedTowersConfig.sequenceName

Definition at line 188 of file FexEmulatedTowersConfig.py.

◆ triggerConfig

FexEmulatedTowersConfig.triggerConfig

Definition at line 84 of file FexEmulatedTowersConfig.py.

◆ True

FexEmulatedTowersConfig.True

Definition at line 71 of file FexEmulatedTowersConfig.py.

◆ type

FexEmulatedTowersConfig.type

Definition at line 69 of file FexEmulatedTowersConfig.py.