ATLAS Offline Software
Functions | Variables
python.LumiBlockMuWriterConfig Namespace Reference

Functions

def LumiBlockMuWriterCfg (flags, name='LumiBlockMuWriter', seqName="AthAlgSeq")
 

Variables

 flags1 = initConfigFlags()
 
 Files
 
def acc1 = LumiBlockMuWriterCfg (flags1)
 
 summariseProps
 
 flags2 = initConfigFlags()
 
 Type
 
def acc2 = LumiBlockMuWriterCfg (flags2)
 

Function Documentation

◆ LumiBlockMuWriterCfg()

def python.LumiBlockMuWriterConfig.LumiBlockMuWriterCfg (   flags,
  name = 'LumiBlockMuWriter',
  seqName = "AthAlgSeq" 
)

Definition at line 14 of file LumiBlockMuWriterConfig.py.

14 def LumiBlockMuWriterCfg (flags, name = 'LumiBlockMuWriter', seqName="AthAlgSeq"):
15  result = ComponentAccumulator(seqName)
16 
17  if flags.Beam.Type is BeamType.Cosmics or flags.Input.isMC:
18  condkey = ''
19  else:
20  from LumiBlockComps.LuminosityCondAlgConfig import LuminosityCondAlgCfg
21  result.merge (LuminosityCondAlgCfg (flags))
22  condkey = result.getCondAlgo ('LuminosityCondAlg').LuminosityOutputKey
23 
24  from AthenaConfiguration.Enums import ProductionStep
25  kwargs={}
26  if flags.Common.ProductionStep in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
27  actualLumiKey=f"{flags.Overlay.BkgPrefix}EventInfo.actualInteractionsPerCrossing"
28  averageLumiKey=f"{flags.Overlay.BkgPrefix}EventInfo.averageInteractionsPerCrossing"
29 
30  kwargs.update({"actualInteractionsPerCrossingKey" : actualLumiKey,
31  "averageInteractionsPerCrossingKey": averageLumiKey})
32 
33  LumiBlockMuWriter = CompFactory.LumiBlockMuWriter # LumiBlockComps
34  alg = LumiBlockMuWriter (name,
35  LumiDataKey = condkey,
36  **kwargs)
37  #In the HLT we want to run LumiBlockMuWriter as a normal EventAlgo, but in a pre-event sequence (HLTBeginSeq)
38  if flags.Trigger.doHLT:
39  result.addEventAlgo(alg)
40  #For offline and particularly serial athena, add LumiBlockMuWriter to AthCondSeq to ensure it runs first (ATR-24721)
41  else:
42  result.addCondAlgo(alg)
43  return result
44 
45 

Variable Documentation

◆ acc1

def python.LumiBlockMuWriterConfig.acc1 = LumiBlockMuWriterCfg (flags1)

Definition at line 54 of file LumiBlockMuWriterConfig.py.

◆ acc2

def python.LumiBlockMuWriterConfig.acc2 = LumiBlockMuWriterCfg (flags2)

Definition at line 63 of file LumiBlockMuWriterConfig.py.

◆ Files

python.LumiBlockMuWriterConfig.Files

Definition at line 52 of file LumiBlockMuWriterConfig.py.

◆ flags1

python.LumiBlockMuWriterConfig.flags1 = initConfigFlags()

Definition at line 51 of file LumiBlockMuWriterConfig.py.

◆ flags2

python.LumiBlockMuWriterConfig.flags2 = initConfigFlags()

Definition at line 59 of file LumiBlockMuWriterConfig.py.

◆ summariseProps

python.LumiBlockMuWriterConfig.summariseProps

Definition at line 55 of file LumiBlockMuWriterConfig.py.

◆ Type

python.LumiBlockMuWriterConfig.Type

Definition at line 61 of file LumiBlockMuWriterConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LumiBlockMuWriterConfig.LumiBlockMuWriterCfg
def LumiBlockMuWriterCfg(flags, name='LumiBlockMuWriter', seqName="AthAlgSeq")
Definition: LumiBlockMuWriterConfig.py:14