diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoConfig.py b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoConfig.py new file mode 100644 index 0000000000000000000000000000000000000000..f8f236258d4e391a70b86712ef0a5b630a293b47 --- /dev/null +++ b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoConfig.py @@ -0,0 +1,18 @@ +# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + +from TrigHLTJetHypo.TrigHLTJetHypoConf import TrigHLTJetHypo + +class TrigHLTJetHypoMon (TrigHLTJetHypo): + __slots__ = [] + def __init__(self, name, **kwargs): + super( TrigHLTJetHypoMon, self ).__init__( name, **kwargs ) + + from TrigHLTJetHypo.TrigHLTJetHypoMonitoring import TrigHLTJetHypoValidationMonitoring, TrigHLTJetHypoOnlineMonitoring, TrigHLTJetHypoCosmicMonitoring + validation = TrigHLTJetHypoValidationMonitoring() + online = TrigHLTJetHypoOnlineMonitoring() + cosmic = TrigHLTJetHypoCosmicMonitoring() + + from TrigTimeMonitor.TrigTimeHistToolConfig import TrigTimeHistToolConfig + time = TrigTimeHistToolConfig("HLTJetHypo_Time") + + self.AthenaMonTools = [ time, validation, online, cosmic ] diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoMonitoring.py b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoMonitoring.py new file mode 100644 index 0000000000000000000000000000000000000000..2861aca00c6b2e375ab92bfeab7b4c09f8457bdf --- /dev/null +++ b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/TrigHLTJetHypoMonitoring.py @@ -0,0 +1,72 @@ +# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + +from TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig + +class TrigHLTJetHypoValidationMonitoring(TrigGenericMonitoringToolConfig): + def __init__ (self, name="HLTJetHypo_Validation"): + super(TrigHLTJetHypoValidationMonitoring, self).__init__(name) + + self.defineTarget("Validation") + + cutNames = ['No Jet obj', 'Rejected', 'Accepted'] + labelsDescription = '' + for a in cutNames: + labelsDescription += a+':' + + self.Histograms = [ defineHistogram('CutCounter', type='TH1F', title="HLTJetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] + self.Histograms += [ defineHistogram('NJet', type='TH1F', title="HLTJetHypo NJet; Number of jets; nevents", xbins=20, xmin=0, xmax=20) ] + self.Histograms += [ defineHistogram('Et', type='TH1F', title="HLTJetHypo Et; Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] + self.Histograms += [ defineHistogram('Eta', type='TH1F', title="HLTJetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] + self.Histograms += [ defineHistogram('Phi', type='TH1F', title="HLTJetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] + self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="HLTJetHypo Phi vs. Eta;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ] + self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="HLTJetHypo Et vs. Eta;#eta;E_{T} [MeV]", xbins=100, xmin=-5., xmax=5., ybins=100, ymin=0, ymax=500000.) ] + self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="HLTJetHypo Et vs. Phi;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100, ymin=0, ymax=500000.) ] + + + + +#more histograms to be added later + + +class TrigHLTJetHypoOnlineMonitoring(TrigGenericMonitoringToolConfig): + def __init__ (self, name="HLTJetHypo_Online"): + """ defines histograms for online """ + super(TrigHLTJetHypoOnlineMonitoring, self).__init__(name) + + self.defineTarget("Online") + + cutNames = ['No Jet obj', 'Rejected', 'Accepted'] + labelsDescription = '' + for a in cutNames: + labelsDescription += a+':' + + self.Histograms = [ defineHistogram('CutCounter', type='TH1F', title="HLTJetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] + self.Histograms += [ defineHistogram('NJet', type='TH1F', title="HLTJetHypo NJet; Number of jets; nevents", xbins=20, xmin=0, xmax=20) ] + self.Histograms += [ defineHistogram('Et', type='TH1F', title="HLTJetHypo Et; Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] + self.Histograms += [ defineHistogram('Eta', type='TH1F', title="HLTJetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] + self.Histograms += [ defineHistogram('Phi', type='TH1F', title="HLTJetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] + self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="HLTJetHypo Phi vs. Eta;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ] + #self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="HLTJetHypo Et vs. Eta;#eta;E_{T} [MeV]", xbins=100, xmin=-5., xmax=5., ybins=100, ymin=0, ymax=500000.) ] + #self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="HLTJetHypo Et vs. Phi;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100, ymin=0, ymax=500000.) ] + + +class TrigHLTJetHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): + def __init__ (self, name="HLTJetHypo_Cosmic"): + """ defines histograms for cosmic """ + super(TrigHLTJetHypoCosmicMonitoring, self).__init__(name) + + self.defineTarget("Cosmic") + + cutNames = ['No Jet obj', 'Rejected', 'Accepted'] + labelsDescription = '' + for a in cutNames: + labelsDescription += a+':' + + self.Histograms = [ defineHistogram('CutCounter', type='TH1F', title="HLTJetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] + self.Histograms += [ defineHistogram('NJet', type='TH1F', title="HLTJetHypo NJet; Number of jets; nevents", xbins=20, xmin=0, xmax=20) ] + self.Histograms += [ defineHistogram('Et', type='TH1F', title="HLTJetHypo Et; Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] + self.Histograms += [ defineHistogram('Eta', type='TH1F', title="HLTJetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] + self.Histograms += [ defineHistogram('Phi', type='TH1F', title="HLTJetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] + self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="HLTJetHypo Phi vs. Eta;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ] + #self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="HLTJetHypo Et vs. Eta;#eta;E_{T} [MeV]", xbins=100, xmin=-5., xmax=5., ybins=100, ymin=0, ymax=300000.) ] + #self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="HLTJetHypo Et vs. Phi;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100, ymin=0, ymax=300000.) ]