11from JetMonitoring.JetMonitoringConfig
import JetMonAlgSpec, HistoSpec, EventHistoSpec, SelectSpec, VarSpec
176 """returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).
180 jetAlgConfig = JetMonAlgSpec(
182 JetContainerName = jetName,
183 TriggerChain = trigger ,
190 histoSpecs += commonHistoSpecs
192 if inputFlags.DQ.DataType
is not DQDataType.Cosmics:
193 histoSpecs += jvfHistosSpec
195 if 'Topo' in jetName:
196 histoSpecs += topoHistosSpec
197 if 'PFlow' in jetName:
198 histoSpecs += pflowHistosSpec
201 if truthJetName !=
"" :
203 from JetMonitoring.JetStandardHistoSpecs
import responseAndEffSpecMap
204 if truthJetName
not in responseAndEffSpecMap:
205 print(
"ERROR !! can't schedule a JetHistoResponseAndEff for truth container : ",truthJetName,
". No specification available" )
208 histoSpecs +=[ responseAndEffSpecMap[truthJetName] ]
211 jetAlgConfig.appendHistos( * histoSpecs)
218 """Standard jet monitoring function to be inserted from top-level algs.
219 returns an a component accumulator as given by AthMonitorCfgHelper.result()
220 Details of what goes into jet monitoring is implemented by dedicated functions such as jetMonAlgConfig().
223 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
224 rv = ComponentAccumulator()
227 if inputFlags.DQ.Environment ==
'tier0Raw':
230 from AthenaMonitoring
import AthMonitorCfgHelper
231 helper = AthMonitorCfgHelper(inputFlags,
'JetMonitoring')
236 if inputFlags.Reco.EnableHI:
237 if inputFlags.Tracking.doUPC:
249 from AthenaMonitoring.EventFlagFilterToolConfig
import EventFlagFilterToolCfg
251 from AthenaMonitoring.BadLBFilterToolConfig
import LArBadLBFilterToolCfg
255 for conf
in jetAlgConfs:
256 alg = conf.toAlg(helper)
257 alg.FilterTools = [ EventFlagFilterToolCfg(inputFlags),helper.resobj.popToolsAndMerge(LArBadLBFilterToolCfg(inputFlags))]
259 rv.merge(helper.result())