ATLAS Offline Software
Functions
LArNoisyROSummaryConfig Namespace Reference

Functions

def LArNoisyROSummaryCfg (configFlags, **kwargs)
 

Function Documentation

◆ LArNoisyROSummaryCfg()

def LArNoisyROSummaryConfig.LArNoisyROSummaryCfg (   configFlags,
**  kwargs 
)

Definition at line 8 of file LArNoisyROSummaryConfig.py.

8 def LArNoisyROSummaryCfg(configFlags, **kwargs):
9 
10  result=ComponentAccumulator()
11 
12  isMC=configFlags.Input.isMC
13 
14  if not isMC:
15  result.merge(LArKnownBadFebCfg(configFlags))
16  result.merge(LArKnownMNBFebCfg(configFlags))
17  result.addEventAlgo(CompFactory.LArHVlineMapAlg(keyOutput="LArHVNcells"))
18 
19  # now configure the algorithm
20  LArNoisyROAlg,LArNoisyROTool=CompFactory.getComps("LArNoisyROAlg","LArNoisyROTool")
21  if configFlags.Common.ProductionStep in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
22  kwargs.setdefault('EventInfoKey', f"{configFlags.Overlay.BkgPrefix}EventInfo")
23 
24  theLArNoisyROTool=LArNoisyROTool(CellQualityCut=configFlags.LAr.NoisyRO.CellQuality,
25  BadChanPerFEB=configFlags.LAr.NoisyRO.BadChanPerFEB,
26  BadFEBCut=configFlags.LAr.NoisyRO.BadFEBCut,
27  MNBLooseCut=configFlags.LAr.NoisyRO.MNBLooseCut,
28  MNBTightCut=configFlags.LAr.NoisyRO.MNBTightCut,
29  MNBTight_PsVetoCut=configFlags.LAr.NoisyRO.MNBTight_PsVetoCut,
30  BadHVCut=configFlags.LAr.NoisyRO.BadHVCut,
31  BadChanFracPerHVline=configFlags.LAr.NoisyRO.BadHVlineFrac,
32  DoHVflag=not isMC
33  )
34 
35  theLArNoisyROAlg=LArNoisyROAlg(isMC=isMC,Tool=theLArNoisyROTool)
36  if not isMC:
37  theLArNoisyROAlg.HVMapKey="LArHVNcells"
38  result.addEventAlgo(theLArNoisyROAlg)
39 
40  toStore="LArNoisyROSummary#LArNoisyROSummary"
41  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
42  result.merge(addToESD(configFlags,toStore))
43  result.merge(addToAOD(configFlags,toStore))
44 
45 
46  return result
47 
python.LArBadFebsConfig.LArKnownMNBFebCfg
def LArKnownMNBFebCfg(configFlags, tag=None)
Definition: LArBadFebsConfig.py:25
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArNoisyROAlg
Find list of suspicious preamplifiers and Front End Boards from cell collection.
Definition: LArNoisyROAlg.h:39
python.LArBadFebsConfig.LArKnownBadFebCfg
def LArKnownBadFebCfg(configFlags, tag=None)
Definition: LArBadFebsConfig.py:11
LArNoisyROTool
Definition: LArNoisyROTool.h:45
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
LArNoisyROSummaryConfig.LArNoisyROSummaryCfg
def LArNoisyROSummaryCfg(configFlags, **kwargs)
Definition: LArNoisyROSummaryConfig.py:8
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142