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

Functions

 ebComputingAlg (flags, itemsMap={})
 getConfigKeys (inputFile)
 readHLTSeeds (smk=-1, db="")

Variables

 log = logging.getLogger('RunEBWeightsComputation.py')
 parser = ArgumentParser()
 type
 int
 help
 action
 default
 nargs
 args = parser.parse_args()
 flags = initConfigFlags()
 triggerConfig
 AtlasVersion
 OutputLevel
 doNavigationSlimming
 EventPrintoutInterval
 cfg = MainServicesCfg(flags)
bool isRunningFromAOD = True if len(flags.Input.Collections) else False
 configKeys = getConfigKeys(flags.Input.Files)
dict itemsMap = {} if args.skipHLTSeeds else readHLTSeeds(smk = configKeys["SMK"], db = configKeys["DB"])
 withDetails
 sc = cfg.run(args.maxEvents)

Function Documentation

◆ ebComputingAlg()

RunEBWeightsComputation.ebComputingAlg ( flags,
itemsMap = {} )

Definition at line 14 of file RunEBWeightsComputation.py.

14def ebComputingAlg(flags, itemsMap = {}):
15 acc = ComponentAccumulator()
16
17 ebAlg = CompFactory.EnhancedBiasWeightCompAlg()
18 ebAlg.ChainToItemMap = itemsMap
19 ebAlg.OutputLevel = flags.Exec.OutputLevel
20 acc.addEventAlgo(ebAlg)
21
22 return acc
23
24
25# Read the keys from the COOL database

◆ getConfigKeys()

RunEBWeightsComputation.getConfigKeys ( inputFile)

Definition at line 26 of file RunEBWeightsComputation.py.

26def getConfigKeys(inputFile):
27 run = GetFileMD(inputFile)['runNumbers'][0]
28 lb = GetFileMD(inputFile)['lumiBlockNumbers'][0]
29
30 from TrigConfigSvc.TrigConfigSvcCfg import getTrigConfFromCool
31 return getTrigConfFromCool(run, lb)
32
33
34# Read the seeds of low and medium chain, not available in the menu (they are hlt seeded)

◆ readHLTSeeds()

RunEBWeightsComputation.readHLTSeeds ( smk = -1,
db = "" )

Definition at line 35 of file RunEBWeightsComputation.py.

35def readHLTSeeds(smk=-1, db=""):
36 from TrigConfIO.HLTTriggerConfigAccess import HLTJobOptionsAccess
37 joData = HLTJobOptionsAccess(dbalias = db, smkey = smk)
38
39 import ast
40
41 chainToItem = {}
42 chainToItem["HLT_eb_low_L1RD2_FILLED"] = ast.literal_eval(joData.properties("EnhancedBiasHypo.HLT_eb_low_L1RD2_FILLED")["L1ItemNames"])
43 chainToItem["HLT_eb_medium_L1RD2_FILLED"] = ast.literal_eval(joData.properties("EnhancedBiasHypo.HLT_eb_medium_L1RD2_FILLED")["L1ItemNames"])
44
45 return chainToItem
46
47

Variable Documentation

◆ action

RunEBWeightsComputation.action

Definition at line 54 of file RunEBWeightsComputation.py.

◆ args

RunEBWeightsComputation.args = parser.parse_args()

Definition at line 57 of file RunEBWeightsComputation.py.

◆ AtlasVersion

RunEBWeightsComputation.AtlasVersion

Definition at line 68 of file RunEBWeightsComputation.py.

◆ cfg

RunEBWeightsComputation.cfg = MainServicesCfg(flags)

Definition at line 76 of file RunEBWeightsComputation.py.

◆ configKeys

RunEBWeightsComputation.configKeys = getConfigKeys(flags.Input.Files)

Definition at line 86 of file RunEBWeightsComputation.py.

◆ default

RunEBWeightsComputation.default

Definition at line 55 of file RunEBWeightsComputation.py.

◆ doNavigationSlimming

RunEBWeightsComputation.doNavigationSlimming

Definition at line 70 of file RunEBWeightsComputation.py.

◆ EventPrintoutInterval

RunEBWeightsComputation.EventPrintoutInterval

Definition at line 71 of file RunEBWeightsComputation.py.

◆ flags

RunEBWeightsComputation.flags = initConfigFlags()

Definition at line 65 of file RunEBWeightsComputation.py.

◆ help

RunEBWeightsComputation.help

Definition at line 52 of file RunEBWeightsComputation.py.

◆ int

RunEBWeightsComputation.int

Definition at line 52 of file RunEBWeightsComputation.py.

◆ isRunningFromAOD

bool RunEBWeightsComputation.isRunningFromAOD = True if len(flags.Input.Collections) else False

Definition at line 78 of file RunEBWeightsComputation.py.

◆ itemsMap

dict RunEBWeightsComputation.itemsMap = {} if args.skipHLTSeeds else readHLTSeeds(smk = configKeys["SMK"], db = configKeys["DB"])

Definition at line 87 of file RunEBWeightsComputation.py.

◆ log

RunEBWeightsComputation.log = logging.getLogger('RunEBWeightsComputation.py')

Definition at line 11 of file RunEBWeightsComputation.py.

◆ nargs

RunEBWeightsComputation.nargs

Definition at line 56 of file RunEBWeightsComputation.py.

◆ OutputLevel

RunEBWeightsComputation.OutputLevel

Definition at line 69 of file RunEBWeightsComputation.py.

◆ parser

RunEBWeightsComputation.parser = ArgumentParser()

Definition at line 51 of file RunEBWeightsComputation.py.

◆ sc

RunEBWeightsComputation.sc = cfg.run(args.maxEvents)

Definition at line 94 of file RunEBWeightsComputation.py.

◆ triggerConfig

RunEBWeightsComputation.triggerConfig

Definition at line 67 of file RunEBWeightsComputation.py.

◆ type

RunEBWeightsComputation.type

Definition at line 52 of file RunEBWeightsComputation.py.

◆ withDetails

RunEBWeightsComputation.withDetails

Definition at line 92 of file RunEBWeightsComputation.py.