ATLAS Offline Software
TrigCaloHypoConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
6 from IOVDbSvc.IOVDbSvcConfig import addFolders
7 
8 
9 def TrigLArNoiseBurstRecoAlgCfg(flags, cells_name):
10 
11  cfg = ComponentAccumulator()
12  monTool = GenericMonitoringTool(flags)
13 
14  monTool.defineHistogram('bitWise_flags', type='TH1I', path='EXPERT',
15  title="LArNoiseBurst Cut Counter;Cut;Count",
16  xlabels=["Input","BadFEBFlaggedPartitions", "BadFEB_WFlaggedPartitions", "SatTightFlaggedPartitions", "MNBLooseFlaggedPartions", "MNBTightFlaggedPartions", "MNBTight_PsVetoFlaggedPartions", "Output"])
17  monTool.defineHistogram('TIME_larnoisetool', type='TH1F', path='EXPERT', title="Time;time(ps)",
18  xbins=100, xmin=-100.0, xmax=15000)
19 
20  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
21  cfg.merge( LArOnOffIdMappingCfg(flags) )
22 
23  cfg.addEventAlgo( CompFactory.TrigLArNoiseBurstRecoAlg(
24  CellContainerKey = cells_name,
25  Tool = CompFactory.LArNoisyROTool(SaturatedCellTightCut=20, MNBLooseCut=5, MNBTightCut=17,
26  BadChanPerFEB=15), # check ATR-27613 for details
27  MonTool = monTool) )
28 
29  cfg.addCondAlgo( CompFactory.LArBadFebCondAlg(
30  "LArKnownBadFebAlg",
31  ReadKey="/LAR/BadChannels/KnownBADFEBs" if not flags.Input.isMC else "",
32  WriteKey="LArKnownBadFEBs") )
33 
34  cfg.addCondAlgo( CompFactory.LArBadFebCondAlg(
35  "LArKnownMNBFebAlg",
36  ReadKey="/LAR/BadChannels/KnownMNBFEBs" if not flags.Input.isMC else "",
37  WriteKey="LArKnownMNBFEBs") )
38 
39  if not flags.Input.isMC:
40  cfg.merge( addFolders(flags, ["/LAR/BadChannels/KnownBADFEBs", "/LAR/BadChannels/KnownMNBFEBs"],
41  "LAR_ONL", className="AthenaAttributeList") )
42 
43  return cfg
44 
45 
47  return CompFactory.TrigLArNoiseBurstHypoTool(chainDict['chainName'])
48 
49 
50 def TrigL2CaloLayersHypo_PreS_080Cfg(name="TrigL2CaloLayersHypo_PreS_080"):
51  return CompFactory.TrigL2CaloLayersHypoTool(
52  name = name,
53  EnergyFractionCut=[0.80,1.0,1.0,1.0],
54  AcceptAll = False)
55 
56 
58  return TrigL2CaloLayersHypo_PreS_080Cfg(chainDict['chainName'])
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigCaloHypoConfig.TrigL2CaloLayersHypoToolGen
def TrigL2CaloLayersHypoToolGen(chainDict)
Definition: TrigCaloHypoConfig.py:57
TrigCaloHypoConfig.TrigLArNoiseBurstHypoToolGen
def TrigLArNoiseBurstHypoToolGen(chainDict)
Definition: TrigCaloHypoConfig.py:46
TrigCaloHypoConfig.TrigL2CaloLayersHypo_PreS_080Cfg
def TrigL2CaloLayersHypo_PreS_080Cfg(name="TrigL2CaloLayersHypo_PreS_080")
Definition: TrigCaloHypoConfig.py:50
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
GenericMonitoringTool
Definition: GenericMonitoringTool.py:1
TrigCaloHypoConfig.TrigLArNoiseBurstRecoAlgCfg
def TrigLArNoiseBurstRecoAlgCfg(flags, cells_name)
Definition: TrigCaloHypoConfig.py:9