Commit 07b06472 authored by Sebastien Prince's avatar Sebastien Prince Committed by Graeme Stewart
Browse files

Added monitoring for TrigHLTJetHypo (ATR-13774) (TrigHLTJetHypo-00-00-04)

parent c2f91792
# 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 ]
# 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.) ]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment