ATLAS Offline Software
Functions | Variables
RunEBWeightsComputation Namespace Reference

Functions

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

Variables

 log
 
 parser
 
 type
 
 int
 
 help
 
 action
 
 default
 
 nargs
 
 args
 
 flags
 
 triggerConfig
 
 AtlasVersion
 
 OutputLevel
 
 doNavigationSlimming
 
 EventPrintoutInterval
 
 cfg
 
 isRunningFromAOD
 
 configKeys
 
 itemsMap
 
 smk
 
 db
 
 withDetails
 
 sc
 

Function Documentation

◆ ebComputingAlg()

def RunEBWeightsComputation.ebComputingAlg (   flags,
  itemsMap = {} 
)

Definition at line 14 of file RunEBWeightsComputation.py.

14 def 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()

def RunEBWeightsComputation.getConfigKeys (   inputFile)

Definition at line 26 of file RunEBWeightsComputation.py.

26 def 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()

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

Definition at line 35 of file RunEBWeightsComputation.py.

35 def 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

Definition at line 57 of file RunEBWeightsComputation.py.

◆ AtlasVersion

RunEBWeightsComputation.AtlasVersion

Definition at line 68 of file RunEBWeightsComputation.py.

◆ cfg

RunEBWeightsComputation.cfg

Definition at line 76 of file RunEBWeightsComputation.py.

◆ configKeys

RunEBWeightsComputation.configKeys

Definition at line 86 of file RunEBWeightsComputation.py.

◆ db

RunEBWeightsComputation.db

Definition at line 87 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

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

RunEBWeightsComputation.isRunningFromAOD

Definition at line 78 of file RunEBWeightsComputation.py.

◆ itemsMap

RunEBWeightsComputation.itemsMap

Definition at line 87 of file RunEBWeightsComputation.py.

◆ log

RunEBWeightsComputation.log

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

Definition at line 51 of file RunEBWeightsComputation.py.

◆ sc

RunEBWeightsComputation.sc

Definition at line 94 of file RunEBWeightsComputation.py.

◆ smk

RunEBWeightsComputation.smk

Definition at line 87 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.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
RunEBWeightsComputation.readHLTSeeds
def readHLTSeeds(smk=-1, db="")
Definition: RunEBWeightsComputation.py:35
python.AutoConfigFlags.GetFileMD
def GetFileMD(filenames, allowEmpty=True)
Definition: AutoConfigFlags.py:51
python.TrigConfigSvcCfg.getTrigConfFromCool
def getTrigConfFromCool(runNumber, lumiBlock)
Definition: TrigConfigSvcCfg.py:24
RunEBWeightsComputation.getConfigKeys
def getConfigKeys(inputFile)
Definition: RunEBWeightsComputation.py:26
RunEBWeightsComputation.ebComputingAlg
def ebComputingAlg(flags, itemsMap={})
Definition: RunEBWeightsComputation.py:14