ATLAS Offline Software
Functions
python.RunDependentConfig Namespace Reference

Functions

def maxNevtsPerXing (flags)
 
def runLumiListAndScaleFactorLists (flags)
 
def LumiProfileSvcCfg (flags, name="LumiProfileSvc", **kwargs)
 
def NoProfileSvcCfg (flags, name="NoProfileSvc", **kwargs)
 

Detailed Description

ComponentAccumulator run dependent service configuration

Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ LumiProfileSvcCfg()

def python.RunDependentConfig.LumiProfileSvcCfg (   flags,
  name = "LumiProfileSvc",
**  kwargs 
)

Definition at line 36 of file RunDependentConfig.py.

36 def LumiProfileSvcCfg(flags, name="LumiProfileSvc", **kwargs):
37  acc = ComponentAccumulator()
38  runLumiList, scaleFactorList = runLumiListAndScaleFactorLists(flags)
39  #clear svc properties?
40  kwargs.setdefault("RunLumiList", runLumiList)
41  kwargs.setdefault("ScaleFactorList", scaleFactorList)
42  acc.addService(CompFactory.LumiProfileSvc(name, **kwargs), primary=True)
43  return acc
44 
45 

◆ maxNevtsPerXing()

def python.RunDependentConfig.maxNevtsPerXing (   flags)
Return the largest minbias pileup value, for PileUpEvtLoopMgr caches

Definition at line 9 of file RunDependentConfig.py.

9 def maxNevtsPerXing(flags):
10  """Return the largest minbias pileup value, for PileUpEvtLoopMgr caches"""
11  # migrated from DigitizationConfig.lags.py
12  pDicts = flags.Input.RunAndLumiOverrideList
13  return max(element["mu"] for element in pDicts)
14 
15 

◆ NoProfileSvcCfg()

def python.RunDependentConfig.NoProfileSvcCfg (   flags,
  name = "NoProfileSvc",
**  kwargs 
)

Definition at line 46 of file RunDependentConfig.py.

46 def NoProfileSvcCfg(flags, name="NoProfileSvc", **kwargs):
47  acc = ComponentAccumulator()
48  acc.addService(CompFactory.NoProfileSvc(name, **kwargs), primary=True)
49  return acc

◆ runLumiListAndScaleFactorLists()

def python.RunDependentConfig.runLumiListAndScaleFactorLists (   flags)

Definition at line 16 of file RunDependentConfig.py.

17  # migrated from DigitizationConfig.lags.py
18  runLumiList = []
19  scaleFactorList = []
20  pDicts = flags.Input.RunAndLumiOverrideList
21  MaxCollisionsPerXing = maxNevtsPerXing(flags)
22  for element in pDicts:
23  run = element["run"]
24  lbk = element["lb"]
25  mu = element["mu"]
26  iovt = (run << 32) + lbk
27  runLumiList += [iovt]
28  if MaxCollisionsPerXing > 0:
29  scaleFactorList += [mu/MaxCollisionsPerXing]
30  else:
31  scaleFactorList += [1.0]
32  return runLumiList, scaleFactorList
33 
34 
35 # Config
max
#define max(a, b)
Definition: cfImp.cxx:41
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.RunDependentConfig.runLumiListAndScaleFactorLists
def runLumiListAndScaleFactorLists(flags)
Definition: RunDependentConfig.py:16
python.RunDependentConfig.maxNevtsPerXing
def maxNevtsPerXing(flags)
Definition: RunDependentConfig.py:9
python.RunDependentConfig.NoProfileSvcCfg
def NoProfileSvcCfg(flags, name="NoProfileSvc", **kwargs)
Definition: RunDependentConfig.py:46
python.RunDependentConfig.LumiProfileSvcCfg
def LumiProfileSvcCfg(flags, name="LumiProfileSvc", **kwargs)
Definition: RunDependentConfig.py:36