13 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
17 parser = flags.getArgumentParser()
18 parser.add_argument(
'--LRT', default=
False, help=
'Turn on LRT flag')
19 parser.add_argument(
'--doTIDATier0', default=
False, help=
'Turn on Tier-0 Analysis')
20 parser.add_argument(
'--doNewTIDATier0', default=
False, help=
'Turn on Tier-0 Analysis')
21 parser.add_argument(
'--parentpdgid', type=int, default=0, help=
'Set parentpdgid in TIDA')
22 parser.add_argument(
'--pdgid', type=int, default=0, help=
'Set pdgid in TIDA')
23 parser.add_argument(
'--ptmin', type=float, default=1000, help=
'Set min pT for tracks in TIDA')
26 args, _ = parser.parse_known_args()
27 args = flags.fillFromArgs(parser=parser)
30 if not (hasattr(args,
"filesInput")
and args.filesInput):
31 flags.Input.Files = [
"AOD.pool.root"]
35 from AthenaConfiguration.ComponentFactory
import CompFactory
36 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
42 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
46 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
53 if args.doTIDATier0
or args.doNewTIDATier0:
55 histsvc=CompFactory.THistSvc()
56 histsvc.Output = [
"CombinedMonitoring DATAFILE='data-hists-tier0.root' OPT='RECREATE'"]
57 acc.addService(histsvc)
60 from TrigInDetMonitoring.TIDAMonitoring
import TrigInDetMonConfig
67 TestMonTool = CompFactory.TrigR3Mon(
'TrigR3Mon')
68 TestMonTool.buildNtuple =
True
69 TestMonTool.AnalysisConfig =
"nTuple"
70 TestMonTool.EnableLumi =
False
72 TestMonTool.mcTruth =
True
73 TestMonTool.pTCutOffline = args.ptmin
74 TestMonTool.ntupleChainNames = []
75 TestMonTool.SelectTruthPdgId=args.pdgid
76 TestMonTool.SelectParentTruthPdgId=args.parentpdgid
79 TestMonTool.FiducialRadius = 500.
81 TestMonTool.ntupleChainNames += [
82 ":InDetLargeD0TrackParticles",
89 TestMonTool.KeepAllEvents =
False
91 TestMonTool.ntupleChainNames += [
95 "Vertex:BTagging_AntiKt4EMPFlowSecVtx",
115 "Electrons:MediumCB",
117 "Electrons:MediumLH",
131 "Taus:Medium:1Prong",
137 "HLT_j45_subjesgscIS_ftf_boffperf_split_L1J20:key=HLT_IDTrack_Bjet_FTF",
138 "HLT_j45_subjesgscIS_ftf_boffperf_split_L1J20:key=HLT_IDTrack_Bjet_IDTrig",
140 "HLT_j45_ftf_subjesgscIS_boffperf_split_L1J20:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
142 "HLT_.*_presel.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper",
143 "HLT_.*_presel.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper:vtx=HLT_IDVertex_JetSuper",
149 "HLT_j45_pf_ftf_preselj20_L1J15:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
156 "HLT_fslrt.*:HLT_IDTrack_FSLRT_FTF;DTE",
157 "HLT_fslrt.*:HLT_IDTrack_FS_FTF;DTE",
158 "HLT_fslrt.*:HLT_IDTrack_FSLRT_IDTrig;DTE",
160 "HLT_mu.*_idperf.*:HLT_IDTrack_Muon_FTF",
161 "HLT_mu.*_idperf.*:HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
162 "HLT_mu.*_idperf.*:HLT_IDTrack_Muon_IDTrig",
163 "HLT_mu.*_idperf.*:HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
164 "HLT_mu.*iv.*:HLT_IDTrack_MuonIso_FTF:roi=HLT_Roi_MuonIso",
165 "HLT_mu.*iv.*:HLT_IDTrack_MuonIso_IDTrig:roi=HLT_Roi_MuonIso",
167 "HLT_mu.*_LRT_idperf_.*:HLT_IDTrack_MuonLRT_FTF:HLT_Roi_L2SAMuon_LRT",
168 "HLT_mu.*_LRT_idperf_.*:HLT_IDTrack_MuonLRT_IDTrig:HLT_Roi_L2SAMuon_LRT",
170 "HLT_b.*perf.*:HLT_IDTrack_Bjet_FTF",
171 "HLT_b.*perf.*:HLT_IDTrack_Bjet_IDTrig",
172 "HLT_j.*perf.*:HLT_IDTrack_Bjet_FTF",
173 "HLT_j.*perf.*:HLT_IDTrack_Bjet_IDTrig",
177 "HLT_e.*:HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron",
178 "HLT_e.*:HLT_IDTrack_Electron_IDTrig",
179 "HLT_e.*:HLT_IDTrack_Electron_GSF",
183 "HLT_e.*idperf.*lrt.*:HLT_IDTrack_ElecLRT_FTF:HLT_Roi_FastElectron_LRT",
184 "HLT_e.*idperf.*lrt.*:HLT_IDTrack_ElecLRT_IDTrig:HLT_Roi_FastElectron_LRT",
185 "HLT_e.*idperf.*lrt.*:HLT_IDTrack_Electron_LRTGSF:HLT_Roi_FastElectron_LRT",
188 "HLT_e26_lhtight_ivarloose_e5_idperf_loose_lrtloose_probe_L1eEM26M:HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT:te=1",
189 "HLT_e26_lhtight_ivarloose_e5_idperf_loose_lrtloose_probe_L1eEM26M:HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT:te=1",
191 "HLT_e26_lhtight_ivarloose_e30_lhloose_nopix_lrtmedium_probe_L1eEM26M:HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT:te=1",
192 "HLT_e26_lhtight_ivarloose_e30_lhloose_nopix_lrtmedium_probe_L1eEM26M:HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT:te=1",
195 "HLT_e5_idperf_loose_lrtloose_probe_g25_medium_L1eEM24L:HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT:te=0",
196 "HLT_e5_idperf_loose_lrtloose_probe_g25_medium_L1eEM24L:HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT:te=0",
198 "HLT_e30_lhloose_nopix_lrtmedium_probe_g25_medium_L1eEM24L:HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT:te=0",
199 "HLT_e30_lhloose_nopix_lrtmedium_probe_g25_medium_L1eEM24L:HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT:te=0",
202 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_FTF:extra=el_tag:roi=HLT_Roi_FastElectron:te=0",
203 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_FTF:extra=el_probe:roi=HLT_Roi_FastElectron:te=1",
204 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron:te=1",
206 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_IDTrig:extra=el_tag:te=0",
207 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_IDTrig:extra=el_probe:te=1",
208 "HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_IDTrig:te=1",
210 "HLT_e26_lhtight_e14_idperf_tight_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_GSF:extra=el_tag:te=0",
211 "HLT_e26_lhtight_e14_idperf_tight_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_GSF:extra=el_probe:te=1",
212 "HLT_e26_lhtight_e14_idperf_tight_probe_50invmAB130_L1eEM26M:key=HLT_IDTrack_Electron_GSF:te=1",
214 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
215 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
216 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_FTF::roi=HLT_Roi_L2SAMuon:te=1",
218 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
219 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
220 "HLT_mu14_mu14_idtp_idZmumu_L12MU8F:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:te=1",
223 "HLT_tau.*_idperf.*tracktwo.*:HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore",
224 "HLT_tau.*_idperf.*tracktwo.*:HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso",
225 "HLT_tau.*_idperf.*tracktwo.*:HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIsoBDT",
228 "HLT_tau.*_idperf.*tracktwo.*:HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso",
229 "HLT_tau.*_idperf.*tracktwo.*:HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso:vtx=HLT_IDVertex_Tau",
233 "HLT_tau.*_idperf.*_track_.*:HLT_IDTrack_Tau_FTF:roi=HLT_Roi_Tau",
234 "HLT_tau.*_idperf.*_track_.*:HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_Tau",
237 "HLT_tau.*trackLRT.*:HLT_IDTrack_TauLRT_FTF:roi=HLT_Roi_TauLRT",
238 "HLT_tau.*trackLRT.*:HLT_IDTrack_TauLRT_IDTrig:roi=HLT_Roi_TauLRT",
241 "HLT_tau.*_idperf.*:HLT_IDTrack_Tau_IDTrig",
248 "HLT_mu.*tau.*_idperf.*:HLT_IDTrack_Muon_IDTrig:HLT_Roi_L2SAMuon:te=0",
250 "HLT_mu.*tau.*_idperf.*:HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore:te=1",
251 "HLT_mu.*tau.*_idperf.*:HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso:te=1",
252 "HLT_mu.*tau.*_idperf.*:HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso:te=1",
260 "HLT_mu4.*_cosmic.*:HLT_IDTrack_Cosmic_FTF",
261 "HLT_mu4.*_cosmic.*:HLT_IDTrack_Cosmic_IDTrig",
262 "HLT_mu4.*_cosmic.*:HLT_IDTrack_Cosmic_EFID",
266 "HLT_mb.*:HLT_IDTrack_MinBias_IDTrig",
267 "HLT_mb.*:HLT_IDTrack_MinBiasPixel_IDTrig",
270 "HLT_2mu4_bBmumux_BsmumuPhi_L12MU3V:HLT_IDTrack_Bmumux_FTF",
271 "HLT_2mu4_bBmumux_BsmumuPhi_L12MU3V:HLT_IDTrack_Bmumux_IDTrig",
272 "HLT_mu11_mu6_bBmumux_Bidperf_L1MU8VF_2MU5VF:HLT_IDTrack_Bmumux_FTF",
273 "HLT_mu11_mu6_bBmumux_Bidperf_L1MU8VF_2MU5VF:HLT_IDTrack_Bmumux_IDTrig",
276 "HLT_j180_.*dispjet.*_L1J100:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ",
277 "HLT_j180_.*dispjet.*_L1jJ160:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ"
281 from PyUtils.Helpers
import release_metadata
283 TestMonTool.releaseMetaData = d[
'nightly name'] +
" " + d[
'nightly release'] +
" " + d[
'date'] +
" " + d[
'platform'] +
" " + d[
'release']
284 TestMonTool.outputFileName=
"TrkNtuple.root"
285 acc.addEventAlgo(TestMonTool)
289 print (
"configured everything")
294 acc.getService(
"MessageSvc").infoLimit = 100000000
297 sys.exit(
not acc.run().isSuccess())