Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
LArNoisyROSummaryConfig Namespace Reference

Functions

def LArNoisyROSummaryCfg (configFlags, **kwargs)
 

Function Documentation

◆ LArNoisyROSummaryCfg()

def LArNoisyROSummaryConfig.LArNoisyROSummaryCfg (   configFlags,
**  kwargs 
)

Definition at line 9 of file LArNoisyROSummaryConfig.py.

9 def LArNoisyROSummaryCfg(configFlags, **kwargs):
10 
11  result=ComponentAccumulator()
12 
13  isMC=configFlags.Input.isMC
14 
15  if not isMC:
16  result.merge(LArKnownBadFebCfg(configFlags))
17  result.merge(LArKnownMNBFebCfg(configFlags))
18  if not configFlags.Common.isOnline:
19  result.merge(LArHVCablingCfg(configFlags))
20  result.addEventAlgo(CompFactory.LArHVlineMapAlg(keyOutput="LArHVNcells"))
21 
22  # now configure the algorithm
23  LArNoisyROAlg,LArNoisyROTool=CompFactory.getComps("LArNoisyROAlg","LArNoisyROTool")
24  if configFlags.Common.ProductionStep in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
25  kwargs.setdefault('EventInfoKey', f"{configFlags.Overlay.BkgPrefix}EventInfo")
26 
27  theLArNoisyROTool=LArNoisyROTool(CellQualityCut=configFlags.LAr.NoisyRO.CellQuality,
28  BadChanPerFEB=configFlags.LAr.NoisyRO.BadChanPerFEB,
29  BadFEBCut=configFlags.LAr.NoisyRO.BadFEBCut,
30  MNBLooseCut=configFlags.LAr.NoisyRO.MNBLooseCut,
31  MNBTightCut=configFlags.LAr.NoisyRO.MNBTightCut,
32  MNBTight_PsVetoCut=configFlags.LAr.NoisyRO.MNBTight_PsVetoCut,
33  BadHVCut=configFlags.LAr.NoisyRO.BadHVCut,
34  BadChanFracPerHVline=configFlags.LAr.NoisyRO.BadHVlineFrac,
35  DoHVflag=not (isMC or configFlags.Common.isOnline)
36  )
37 
38  theLArNoisyROAlg=LArNoisyROAlg(isMC=isMC,Tool=theLArNoisyROTool, **kwargs)
39  if not isMC and not configFlags.Common.isOnline:
40  theLArNoisyROAlg.LArHVIdMapping="LArHVIdMap"
41  theLArNoisyROAlg.HVMapKey="LArHVNcells"
42  result.addEventAlgo(theLArNoisyROAlg)
43 
44  toStore="LArNoisyROSummary#LArNoisyROSummary"
45  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
46  result.merge(addToESD(configFlags,toStore))
47  result.merge(addToAOD(configFlags,toStore))
48 
49 
50  return result
51 
python.LArBadFebsConfig.LArKnownMNBFebCfg
def LArKnownMNBFebCfg(configFlags, tag=None)
Definition: LArBadFebsConfig.py:25
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArHVCablingConfig.LArHVCablingCfg
def LArHVCablingCfg(flags)
Definition: LArHVCablingConfig.py:7
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:134
LArNoisyROSummaryConfig.LArNoisyROSummaryCfg
def LArNoisyROSummaryCfg(configFlags, **kwargs)
Definition: LArNoisyROSummaryConfig.py:9
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:149