3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator, ConfigurationError
9 acc = ComponentAccumulator()
11 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
13 monTool.defineHistogram(
'fcalEt,zdcE;fcalEt_vs_zdcE_all', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;ZDC E',
14 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
16 monTool.defineHistogram(
'fcalEt,zdcE;fcalEt_vs_zdcE_passed', cutmask=
'PUFCalVsZDCAny_passed', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;ZDC E',
17 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
19 monTool.defineHistogram(
'fcalEt,zdcE;fcalEt_vs_zdcE_failed', cutmask=
'PUFCalVsZDCAny_failed', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;ZDC E',
20 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
22 monTool.defineHistogram(
'fcalEt,nTrk;fcalEt_vs_nTrk_all', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;nTrk',
23 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
25 monTool.defineHistogram(
'fcalEt,nTrk;fcalEt_vs_nTrk_passed', cutmask=
'PUFCalVsNTrackAny_passed', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;nTrk',
26 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
28 monTool.defineHistogram(
'fcalEt,nTrk;fcalEt_vs_nTrk_failed', cutmask=
'PUFCalVsNTrackAny_failed', path=
'EXPERT', type=
'TH2F', title=
';FCal Et;nTrk',
29 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
30 prefix=flags.Input.Files[0].
split(
"/")[-1]
31 histsvc = CompFactory.THistSvc(Output=[f
"EXPERT DATAFILE='{prefix}HIEventSelectionRun3Validation.root' OPT='RECREATE'"])
32 acc.addService(histsvc)
33 acc.setPrivateTools(monTool)
39 acc = ComponentAccumulator()
42 trackSelectionTool = acc.popToolsAndMerge(InDetTrackSelectionTool_HILoose_Cfg(flags,
44 filterTool = CompFactory.HI.HIEventSelectionToolRun3(TrackSelectionTool=trackSelectionTool)
49 if zdcNeeded
and "ZDCModules" in flags.Input.Collections:
51 elif zdcNeeded
and "ZdcSums" in flags.Input.Collections:
54 if zdcNeeded
and not zdcKey:
55 raise ConfigurationError(
"The input file does not have any ZDCModules (any capitalisation) container and ZDC info is needed for selection")
59 filterAlg = CompFactory.HI.HIEventFilterAlgRun3(name=
"HIEventFilterAlgRun3",
60 SelectionTool=filterTool,
63 acc.addEventAlgo(filterAlg)