11from JetMonitoring.JetMonitoringConfig
import JetMonAlgSpec, HistoSpec, EventHistoSpec, SelectSpec, VarSpec
180 """returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).
184 if not inputFlags.Input.isMC
and jetName !=
"AntiKt4HIJets":
185 from AthenaConfiguration.ComponentFactory
import CompFactory
186 configfile, calibArea, calibseq_def = calibToolConfigurations[jetName]
187 toolname =
"jetcalib_DQ_{0}".format(jetName)
188 jct = CompFactory.JetCalibrationTool(toolname,
189 JetCollection = jetName.replace(
'Jets',
''),
190 ConfigFile = configfile,
191 CalibArea = calibArea,
192 CalibSequence = calibseq_def,
196 jetAlgConfig = JetMonAlgSpec(
198 JetContainerName = jetName,
199 applyLatestCalibration =
True,
201 TriggerChain = trigger,
204 jetAlgConfig = JetMonAlgSpec(
206 JetContainerName = jetName,
207 applyLatestCalibration =
False,
208 TriggerChain = trigger,
216 histoSpecs += commonHistoSpecs
218 if inputFlags.DQ.DataType
is not DQDataType.Cosmics:
219 histoSpecs += jvfHistosSpec
221 if 'Topo' in jetName:
222 histoSpecs += topoHistosSpec
223 if 'PFlow' in jetName:
224 histoSpecs += pflowHistosSpec
227 if truthJetName !=
"" :
229 from JetMonitoring.JetStandardHistoSpecs
import responseAndEffSpecMap
230 if truthJetName
not in responseAndEffSpecMap:
231 print(
"ERROR !! can't schedule a JetHistoResponseAndEff for truth container : ",truthJetName,
". No specification available" )
234 histoSpecs +=[ responseAndEffSpecMap[truthJetName] ]
237 jetAlgConfig.appendHistos( * histoSpecs)
244 """Standard jet monitoring function to be inserted from top-level algs.
245 returns an a component accumulator as given by AthMonitorCfgHelper.result()
246 Details of what goes into jet monitoring is implemented by dedicated functions such as jetMonAlgConfig().
249 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
250 rv = ComponentAccumulator()
253 if inputFlags.DQ.Environment ==
'tier0Raw':
256 from AthenaMonitoring
import AthMonitorCfgHelper
257 helper = AthMonitorCfgHelper(inputFlags,
'JetMonitoring')
262 if inputFlags.Reco.EnableHI:
263 if inputFlags.Tracking.doUPC:
275 from AthenaMonitoring.EventFlagFilterToolConfig
import EventFlagFilterToolCfg
277 from AthenaMonitoring.BadLBFilterToolConfig
import LArBadLBFilterToolCfg
281 for conf
in jetAlgConfs:
282 alg = conf.toAlg(helper)
283 alg.FilterTools = [ EventFlagFilterToolCfg(inputFlags),helper.resobj.popToolsAndMerge(LArBadLBFilterToolCfg(inputFlags))]
285 rv.merge(helper.result())