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)
33 monTool.defineHistogram(
'zdcPreSampleA;zdcPreSampleA_all', path=
'EXPERT', type=
'TH1F', title=
'all;ZDCPreampleAmp side A',
34 xbins=100, xmin=-400, xmax=1000)
36 monTool.defineHistogram(
'zdcPreSampleC;zdcPreSampleC_all', path=
'EXPERT', type=
'TH1F', title=
'all;ZDCPreampleAmp side C',
37 xbins=100, xmin=-400, xmax=1000)
40 monTool.defineHistogram(
'zdcPreSampleA,zdcPreSampleC', path=
'EXPERT', type=
'TH2F', title=
'correlation;ZDCPreampleAmp side A;ZDCPreampleAmp side C',
41 xbins=50, xmin=-400, xmax=1000, ybins=50, ymin=-400, ymax=1000)
43 monTool.defineHistogram(
'zdcPreSampleA;zdcPreSampleA_failed', cutmask=
"NoPUZDCPresampler_failed", path=
'EXPERT', type=
'TH1F', title=
'failed;ZDCPreampleAmp side A',
44 xbins=100, xmin=-400, xmax=1000)
46 monTool.defineHistogram(
'zdcPreSampleC;zdcPreSampleC_failed', cutmask=
"NoPUZDCPresampler_failed", path=
'EXPERT', type=
'TH1F', title=
'failed;ZDCPreampleAmp side C',
47 xbins=100, xmin=-400, xmax=1000)
50 prefix=flags.Input.Files[0].
split(
"/")[-1]
51 histsvc = CompFactory.THistSvc(Output=[f
"EXPERT DATAFILE='{prefix}HIEventSelectionRun3Validation.root' OPT='RECREATE'"])
52 acc.addService(histsvc)
53 acc.setPrivateTools(monTool)
59 acc = ComponentAccumulator()
62 trackSelectionTool = acc.popToolsAndMerge(InDetTrackSelectionTool_HILoose_Cfg(flags,
64 filterTool = CompFactory.HI.HIEventSelectionToolRun3(TrackSelectionTool=trackSelectionTool)
69 if zdcNeeded
and "ZdcModules" in flags.Input.Collections:
71 elif zdcNeeded
and "ZDCModules" in flags.Input.Collections:
73 elif zdcNeeded
and "ZdcSums" in flags.Input.Collections:
76 if zdcNeeded
and not zdcKey:
77 raise ConfigurationError(
"The input file does not have any ZDCModules (any capitalisation) container and ZDC info is needed for selection")
81 filterAlg = CompFactory.HI.HIEventFilterAlgRun3(name=
"HIEventFilterAlgRun3",
82 SelectionTool=filterTool,
85 acc.addEventAlgo(filterAlg)