def __init__(self, name="TrigL2PhotonMuonAngleValidationMonitoring"): """ defines hisograms for validation """ super(TrigL2PhotonMuonAngleValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('dPhi', type='TH1F', title="Photon-Muon dPhi", xbins=50, xmin=0., xmax=2.5) ] self.Histograms += [ defineHistogram('dR', type='TH1F', title="Photon-Muon dR", xbins=50, xmin=0., xmax=2.5) ] self.Histograms += [ defineHistogram('mass', type='TH1F', title="Photon-Muon Mass ", xbins=60, xmin=0. * GeV, xmax=15. * GeV) ]
def __init__(self, name="HIL2VtxMultHypoMonitoring"): super(HIL2VtxMultHypoMonitoring, self).__init__(name) self.defineTarget(["Online", "Validation", "Cosmic"]) self.Histograms += [ defineHistogram('numVertices', type='TH1I', title="Vertices;evts", xbins=10, xmin=0.0, xmax=10.) ] menuName = TriggerFlags.triggerMenuSetup() range = 5000 if '_HI_' in menuName else 2500 self.Histograms += [ defineHistogram('vertexWeight', type='TH1D', title="Vertex Weight;evts", xbins=range, xmin=0, xmax=range) ] self.Histograms += [ defineHistogram('vertexWeightMax', type='TH1D', title=" Max Vertex Weight;evts", xbins=range, xmin=0, xmax=range) ]
def __init__ (self, name="OverlapRemovalOnlineMonitoring"): super(OverlapRemovalOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('DeltaEta', type='TH1F', title="ROI overlap removal. Delta #eta; #Delta#eta; nevents", xbins=50, xmin=0.0, xmax=5.0) ] self.Histograms += [ defineHistogram('DeltaPhi', type='TH1F', title="ROI overlap removal. Delta #varphi.; #Delta#varphi; nevents", xbins=63, xmin=-3.15, xmax=3.15) ] self.Histograms += [ defineHistogram('DeltaRSq', type='TH1F', title="ROI overlap removal. Delta R^{2};#Delta #varphi^{2} + #Delta #eta^{2}; nevents", xbins=260, xmin=0, xmax=26) ]
def __init__ (self, name="TrigMuSuperEFMonitoring"): super(TrigMuSuperEFMonitoring, self).__init__(name) self.defineTarget( ["Online", "Validation"] ) # overall histograms for full algorithm self.Histograms += [ defineHistogram('EF_trks_n', type='TH1F', title="Number of tracks; MuEF Number of Tracks", xbins=51, xmin=-0.5, xmax=50.5) ] self.Histograms += [ defineHistogram('EF_trks_pt', type='TH1F', title="pt ; MuEF Track pt [GeV]", xbins=100, xmin=0, xmax=200) ] self.Histograms += [ defineHistogram('EF_trks_phi', type='TH1F', title="phi ; MuEF Track Phi", xbins=100, xmin=-5, xmax=5) ] self.Histograms += [ defineHistogram('EF_trks_eta', type='TH1F', title="eta ; MuEF Track Eta", xbins=100, xmin=-5.5, xmax=5.5) ] self.Histograms += [ defineHistogram('EF_IDtrks_n', type='TH1F', title="Number of ID tracks ; n MuEF ID tracks", xbins=51, xmin=-0.5, xmax=50.5) ] self.Histograms += [ defineHistogram('EF_IDtrks_phi', type='TH1F', title="ID track phi; MuEF ID track phi", xbins=100, xmin=-5, xmax=5) ] self.Histograms += [ defineHistogram('EF_IDtrks_eta', type='TH1F', title="ID track eta ; MuEF ID track eta", xbins=100, xmin=-5.5, xmax=5.5) ] self.Histograms += [ defineHistogram('EF_IDtrks_pT', type='TH1F', title="ID track pT; MuEF ID track pT", xbins=100, xmin=0.0, xmax=200.0) ] self.Histograms += [ defineHistogram('EF_IDtrks_pT,EF_IDtrks_phi', type='TH2F', title="ID track phi; MuEF ID track pT; MuEF ID track phi", xbins=100, xmin=0.0, xmax=200.0, ybins=100, ymin=-5, ymax=5) ] self.Histograms += [ defineHistogram('EF_IDtrks_pT,EF_IDtrks_eta', type='TH2F', title="ID track eta; MuEF ID track pT; MuEF ID track eta", xbins=100, xmin=0.0, xmax=200.0, ybins=100, ymin=-5.5, ymax=5.5) ]
def setDefaults(self, handle): super(T2IDIsoTauHypoValidationMonitoring, self).setDefaults(handle) if not hasattr(handle, 'name'): myName = "SomeAlgo" else: myName = handle.getName() if hasattr(handle, 'Histograms') and not 'nTrks' in handle.Histograms: handle.Histograms += [ defineHistogram('nTrks', type='TH1F', title=myName + " Core tracks;Core tracks; nevents", xbins=10, xmin=-0.5, xmax=9.5) ] if hasattr(handle, 'Histograms') and not 'sumPtRatio' in handle.Histograms: handle.Histograms += [ defineHistogram('sumPtRatio', type='TH1F', title=myName + " SumPtRatio; sumPt ratio; nevents", xbins=40, xmin=0., xmax=2.) ]
def __init__(self, name="TrigTrackParticleTruthOnlineMonitor"): super(TrigTrackParticleTruthOnlineMonitor, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('numTracks', type='TH1F', title="Number input tracks", xbins=50, xmin=0., xmax=50.) ] self.Histograms += [ defineHistogram('numTracksTruth', type='TH1F', title="Number of input truth tracks", xbins=50, xmin=0., xmax=50.) ] self.Histograms += [ defineHistogram('numParticleTracks', type='TH1F', title="Size of input track particle container", xbins=50, xmin=0., xmax=50.) ] self.Histograms += [ defineHistogram('numParticleTracksTruth', type='TH1F', title="Size of TrackParticleTruth container", xbins=50, xmin=0., xmax=50.) ]
def __init__(self, name="TrigT2CaloEgammaRingerTimeMonitoring"): super(TrigT2CaloEgammaRingerTimeMonitoring, self).__init__(name) self.defineTarget("Time") self.Histograms += [ defineHistogram('Time_RingerFexGetRings', type='TH1F', title='Time_RingerFexGetRings', xbins=50, xmin=0.0, xmax=5) ] self.Histograms += [ defineHistogram('Time_RingerFexRegSel', type='TH1F', title='Time_RingerFexRegSel', xbins=50, xmin=0.0, xmax=5) ] #self.Histograms+= [defineHistogram ('Time_RingerFexSaveRoI', # type='TH1F',title='RingerFexSaveRoI' # ,xbins=50,xmin=0.0,xmax=5)] self.Histograms += [ defineHistogram('Time_RingerFexExecute', type='TH1F', title='Time_RingerFexExecute', xbins=50, xmin=0.0, xmax=5) ]
def __init__(self, name="TrigT2CaloEgammaAllTimeMonitoring"): super(TrigT2CaloEgammaAllTimeMonitoring, self).__init__(name) self.defineTarget("Time") types_list = ['Total', 'RegSel', 'BSCnv', 'Algor', 'SaveEM'] tools_list = ['EmaAll'] for tool in tools_list: for type in types_list: hist_title = tool + type thismax = 1.0 if ((type.find("RegSel") > -1) or (type.find("SaveEM") > -1)): thismax = 0.2 if ((type.find("Algor") > -1)): thismax = 0.5 self.Histograms += [ defineHistogram(hist_title, type='TH1F', title=hist_title, xbins=40, xmin=0.0, xmax=thismax) ] self.Histograms += [ defineHistogram('TotalTime', type='TH1F', title='TotalTime', xbins=50, xmin=0.0, xmax=5) ]
def __init__(self, name="TrackParamsResidualPullMonitorBase", type="electron"): super (TrackParamsResidualPullMonitorBase, self).__init__(name) self.Histograms += [ defineHistogram('TrackPt', type='TH1F', title="Track Pt", xbins = 100, xmin=0., xmax=25000.)] self.Histograms += [ defineHistogram('npix', type='TH1F', title="Number of Pixel Hits", xbins = 100, xmin=0., xmax=15.)] self.Histograms += [ defineHistogram('nsct', type='TH1F', title="Number of SCT Hits", xbins = 100, xmin=0., xmax=15.)] self.Histograms += [ defineHistogram('npixh', type='TH1F', title="Number of Pixel Holes", xbins = 100, xmin=0., xmax=10.)] self.Histograms += [ defineHistogram('nscth', type='TH1F', title="Number of Pixel Holes", xbins = 100, xmin=0., xmax=10.)]
def __init__(self, name="TrigEFJetDEtaFexOnlineMonitoring"): super(TrigEFJetDEtaFexOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [defineHistogram('GapSize', type='TH1F', title="EFJetDEtaFex gap size", xbins=11, xmin=-1.5, xmax=9.5)] self.Histograms +=[defineHistogram('JetEta', type='TH1F', title="EFJetDEtaFex jet eta", xbins=50, xmin=-5., xmax=5.)] self.Histograms +=[defineHistogram('NJets', type='TH1F', title="L2JetDEtaFex n jets", xbins=20, xmin=-0.5, xmax=19.5)] self.Histograms +=[defineHistogram('NJetsSelected', type='TH1F', title="L2JetDEtaFex n jets", xbins=20, xmin=-0.5, xmax=19.5)]
def addTimingHistograms(self, nbin, min, max): self.Histograms += [ defineHistogram('roi_nSPs , time_PattRecoOnly', type='TH2F', title="PattReco time vs nSPs", xbins=200, xmin=0.0, xmax=3000.0, ybins=100, ymin=0.0, ymax=200.0) ] self.Histograms += [ defineHistogram('roi_nTracks , time_PattRecoOnly', type='TH2F', title="PattReco time vs nTracks", xbins=50, xmin=0.0, xmax=200.0, ybins=100, ymin=0.0, ymax=200.0) ] self.Histograms += [ defineHistogram('time_PattRecoOnly', type='TH1F', title="Pure PattReco time", xbins=nbin, xmin=0.0, xmax=200.0) ]
def __init__ (self, name="TrigEFMtAllTEValidationMonitoring"): """ defines histograms for validation """ super(TrigEFMtAllTEValidationMonitoring, self).__init__(name) self.defineTarget( "Validation" ) self.Histograms += [ defineHistogram('mt_electron1', type='TH1F', title="Transverse mass after cut", xbins=100, xmin=0, xmax=100) ] self.Histograms += [ defineHistogram('mt_electron1_pass', type='TH1F', title="Transverse mass after cut", xbins=100, xmin=0, xmax=100) ]
def addDataErrorHistograms(self): self.Histograms += [ defineHistogram('roi_lastStageExecuted', type='TH1F', title="Last Step Successfully Executed", xbins = 8 , xmin=-0.5, xmax=7.5, labels='Start : GetRoI : GetSPs : MissingLayers : ZFinder : Groups : TrackFit : Extend2TRT' ) ] self.Histograms += [ defineHistogram('dataErrors', type='TH1F', title="Data Errors", xbins = 4 , xmin=0., xmax=4., labels='SP_Abort : SP_Recoverable : TRT_Abort : TRT_Recoverable' ) ] # SCT Errors are defined in : InnerDetector/InDetConditions/SCT_ConditionsServices/SCT_ConditionsServices/ISCT_ByteStreamErrorsSvc.h self.Histograms += [ defineHistogram('dataErrors_SCT', type='TH1F', title="SCT Data Errors", xbins = 14 , xmin=0., xmax=14, labels='SCT_Decoding : SCT_TimeOut : SCT_BCID : SCT_LVL1ID : SCT_Preamble : SCT_Formatter : SCT_Trailer : SCT_TrailerOverFlow : SCT_HeaderTrailerLimit : SCT_ABCD : SCT_Raw : SCT_MaskedLink : SCT_RODClockError : SCT_TruncatedROD' ) ] # PIX Errors are defined in : InnerDetector/InDetConditions/PixelConditionsServices/PixelConditionsServices/IPixelByteStreamErrorsSvc.h self.Histograms += [ defineHistogram('dataErrors_PIX', type='TH1F', title="Pixel Data Errors", xbins = 9 , xmin=0., xmax=9., labels='PIX_TimeOut : PIX_BCID : PIX_LVL1ID : PIX_Preamble : PIX_Trailer : PIX_Flagged : PIX_DisabledFE : PIX_TruncatedROD : PIX_Decoding')] # TRT Errors are defined in : InnerDetector/InDetConditions/TRT_ConditionsServices/src/TRT_ByteStream_ConditionsSvc.cxx self.Histograms += [ defineHistogram('dataErrors_TRT', type='TH1F', title="TRT Data Errors", xbins = 6 , xmin=0., xmax=6., labels='TRT_LVL1ID : TRT_BCID : TRT_MISSING : TRT_ERROR : TRT_SID : TRT_ROB')]
def __init__(self, name="PRD_TrigMultiTruthOnlineMonitor"): super(PRD_TrigMultiTruthOnlineMonitor, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('prdPIXsize', type='TH1F', title="Size of PIXEL truth structure", xbins=100, xmin=0., xmax=500.) ] self.Histograms += [ defineHistogram('prdSCTsize', type='TH1F', title="Size of SCT truth structure", xbins=100, xmin=0., xmax=500.) ] self.Histograms += [ defineHistogram('prdTRTsize', type='TH1F', title="Size of TRT truth structure", xbins=100, xmin=0., xmax=3000.) ]
def __init__(self, name="TrigMuonEFIDTrackRoiMakerMonitoring", **kwargs): super(TrigMuonEFIDTrackRoiMakerMonitoring, self).__init__(name, **kwargs) self.defineTarget(["Online", "Validation"]) self.Histograms += [ defineHistogram('RoIz', type='TH1F', title="z0 of created RoIs;z0 [mm];RoIs", xbins=50, xmin=-250, xmax=250) ] self.Histograms += [ defineHistogram( 'DeltaEta', type='TH1F', title="difference in eta between muon and RoI;d(eta); Muons", xbins=50, xmin=0.0, xmax=0.3) ] self.Histograms += [ defineHistogram( 'DeltaPhi', type='TH1F', title="difference in phi between muon and RoI;d(phi); Muons", xbins=50, xmin=0.0, xmax=0.3) ]
def __init__(self, name="TrigL2CaloRingerFexTimeMonitoring"): super(TrigL2CaloRingerFexTimeMonitoring, self).__init__(name) self.defineTarget("Time") self.Histograms = [ defineHistogram('TotalTime', type='TH1F', title='TotalTime', xbins=220, xmin=0.0, xmax=0.2) ] self.Histograms += [ defineHistogram('Decision', type='TH1F', title='Decision', xbins=220, xmin=0.0, xmax=0.2) ] self.Histograms += [ defineHistogram('Normalization', type='TH1F', title='Normalization', xbins=220, xmin=0.0, xmax=0.2) ] self.Histograms += [ defineHistogram('StoreOutput', type='TH1F', title='StoreOutput', xbins=220, xmin=0.0, xmax=0.2) ]
def __init__(self, name="TrigMuonEFCaloIsolationValidationMonitoring"): super(TrigMuonEFCaloIsolationValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram( 'EF_etiso_cone2', type='TH1F', title= "Calo Isolation cone 0.2; MuonEF Calo Isolation cone 0.2 [GeV]", xbins=40, xmin=-10, xmax=30) ] self.Histograms += [ defineHistogram( 'EF_etiso_cone3', type='TH1F', title= "Calo Isolation cone 0.3; MuonEF Calo Isolation cone 0.3 [GeV]", xbins=40, xmin=-10, xmax=30) ] self.Histograms += [ defineHistogram( 'EF_etiso_cone4', type='TH1F', title= "Calo Isolation cone 0.4; MuonEF Calo Isolation cone 0.4 [GeV]", xbins=40, xmin=-10, xmax=30) ]
def __init__ (self, name="TrigGSCFexMonitoring"): super(TrigGSCFexMonitoring, self).__init__(name) # Run-2 histograms #self.Histograms += [ defineHistogram('sv_mass', type='TH1F', title="GSCFex SV Mass", # xbins=200, xmin=0.0, xmax=6000.0) ] #self.Histograms += [ defineHistogram('sv_evtx', type='TH1F', title="GSCFex SV Energy Fraction", # xbins=200, xmin=0.0, xmax=1.0) ] #self.Histograms += [ defineHistogram('sv_nvtx', type='TH1F', title="GSCFex SV Two-Track Vertex Number", # xbins=21, xmin=-0.5, xmax=20.5) ] # #self.Histograms += [ defineHistogram('tag_IP2D', type='TH1F', title="GSCFex IP2D Likelihood Ratio", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_IP3D', type='TH1F', title="GSCFex IP3D Likelihood Ratio", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_SV1', type='TH1F', title="GSCFex SV1 Likelihood Ratio", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_IP3DSV1', type='TH1F', title="GSCFex IP3D+SV1 Discriminant", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_MV2c00', type='TH1F', title="GSCFex MV2c00 Discriminant", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_MV2c10', type='TH1F', title="GSCFex MV2c10 Discriminant", # xbins=200, xmin=-50.0, xmax=50.0) ] #self.Histograms += [ defineHistogram('tag_MV2c20', type='TH1F', title="GSCFex MV2c20 Discriminant", # xbins=200, xmin=-50.0, xmax=50.0) ] self.Histograms += [ defineHistogram('gsc_ntrk', type='TH1I', title="GSCFex Number of tracks", xbins=21, xmin=-0.5, xmax=30.5) ] self.Histograms += [ defineHistogram('gsc_width', type='TH1F', title="GSCFex Track width", xbins=200, xmin=-2.0, xmax=2.0) ] self.Histograms += [ defineHistogram('gsc_ptsum', type='TH1F', title="GSCFex Sum of transverse momentum of tracks", xbins=200, xmin=-100.0, xmax=600000.0) ] self.Histograms += [ defineHistogram('gsc_ptdiff', type='TH1F', title="GSCFex PT difference between uncal jet and cal jets", xbins=200, xmin=-100000.0, xmax=100000.0) ] self.Histograms += [ defineHistogram('gsc_ptratio', type='TH1F', title="GSCFex PT ratio", xbins=200, xmin=-1.0, xmax=1.0) ]
def __init__(self, name="L1TopoSimulationMonitoring"): super(L1TopoSimulationMonitoring, self).__init__(name) """ define monitoring histograms for L1Topo simulation""" self.defineTarget("Validation") self.Histograms += [ defineHistogram('DecisionModule1', type='TH1F', title='L1 Topo Decision (Module 1)', xbins=64, xmin=0, xmax=64) ] self.Histograms += [ defineHistogram('DecisionModule2', type='TH1F', title='L1 Topo Decision (Module 2)', xbins=64, xmin=0, xmax=64) ] self.Histograms += [ defineHistogram('DecisionModule3', type='TH1F', title='L1 Topo Decision (Module 3)', xbins=64, xmin=0, xmax=64) ]
def __init__ (self, name="MuonClusterHypoOnlineMonitoring"): super(MuonClusterHypoOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('NumClu', type='TH1F', title="MuClu: RoIs in the muon RoI cluster; number of RoI; nevents", xbins=10, xmin=0., xmax=10.) ] self.Histograms += [ defineHistogram('NumJet', type='TH1F', title="MuClu: Jets with Log(H/E)<0.5 in the muon RoI cluster; number of Jets; nevents", xbins=21, xmin=-1., xmax=20.) ] self.Histograms += [ defineHistogram('NumTrk', type='TH1F', title="MuClu: Tracks with Pt>1GeV in the muon RoI cluster; number of Tracks; nevents", xbins=51, xmin=-1., xmax=50.) ]
def __init__ (self, name="TrigL2SiTrackFinder_Cosmic_Monitoring", resHistos=False): super(TrigL2SiTrackFinder_Cosmic_Monitoring, self).__init__(name) self.defineTarget("Cosmic") self.addSPHistograms() self.addDataErrorHistograms() self.addSiTimingHistograms(250,0.,50.) self.addTRTTimingHistograms(250,0.,100.) self.addTrackHistograms() if resHistos : self.addResidualHistograms() self.Histograms += [ defineHistogram('trk_a0', type='TH1F', title="a0", xbins = 100, xmin=-300, xmax=300)] self.Histograms += [ defineHistogram('trk_a0beam', type='TH1F', title="a0beam", xbins = 100, xmin=-300, xmax=300)] self.Histograms += [ defineHistogram('trk_z0', type='TH1F', title="z0", xbins = 100, xmin=-800, xmax=800)] self.Histograms += [ defineHistogram('roi_nTracks', type='TH1F', title="Number of Tracks", xbins = 100, xmin=-0.5, xmax=99.5)]
def __init__(self, name="TrigEFMultiMuHypoValidationMonitoring"): super(TrigEFMultiMuHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") # self.defineTarget("Never") self.Histograms += [ defineHistogram('CutCounter', type='TH1F', title="EF cuts counter", xbins=8, xmin=-1.5, xmax=6.5) ] self.Histograms += [ defineHistogram('MuMumass', type='TH1F', title="Inv.mass(mumu) [GeV]", xbins=100, xmin=0., xmax=13.0) ] self.Histograms += [ defineHistogram('FitChi2', type='TH1F', title="vertex chi2 (Nmu) ", xbins=50, xmin=0., xmax=50.0) ]
def __init__(self, name="TrigL2TrkMassHypoValidationMonitoring_FS"): super(TrigL2TrkMassHypoValidationMonitoring_FS, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('CutCounter', type='TH1F', title="cut info", xbins=10, xmin=-1.5, xmax=8.5) ] self.Histograms += [ defineHistogram('Mass', type='TH1F', title="L2TrkMassHypo Mass_FS; Mass[GeV]", xbins=100, xmin=1., xmax=10.) ] # self.Histograms += [ defineHistogram('FitMass', type='TH1F', title="L2TrkMassFex FitMass; FitMass[MeV]", # xbins=100, xmin=1000., xmax=5000.) ] # self.Histograms += [ defineHistogram('Chi2', type='TH1F', title="L2TrkMassFex Chi2; Chi2", # xbins=100, xmin=0., xmax=10.) ] # self.Histograms += [ defineHistogram('Chi2Prob', type='TH1F', title="L2TrkMassFex Chi2Prob; Chi2Prob", # xbins=100, xmin=0., xmax=1.) ] self.Histograms += [ defineHistogram('NBphys', type='TH1F', title="L2TrkMassHypo NBphys created", xbins=50, xmin=0.0, xmax=50.0) ]
def __init__(self, name="InDetTrigDetailedTruthOnlineMonitor"): super(InDetTrigDetailedTruthOnlineMonitor, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('numPRDs', type='TH1F', title="Number PRD collections", xbins=10, xmin=0., xmax=10.) ] self.Histograms += [ defineHistogram('numTruthTracks', type='TH1F', title="Size of input track collection", xbins=50, xmin=0., xmax=50.) ] self.Histograms += [ defineHistogram('numPRDClusters', type='TH1F', title="Number clusters per PRD collection", xbins=100, xmin=0., xmax=1000.) ]
def setDefaults(self, handle): super(HLTTrackPreselHypoValidationMonitoring, self).setDefaults(handle) if not hasattr(handle, 'name'): myName = "SomeAlgo" else: myName = handle.getName() if hasattr(handle, 'Histograms') and not 'nTracksInCore' in handle.Histograms: handle.Histograms += [ defineHistogram( 'nTracksInCore', type='TH1F', title=myName + " Number of tracks in core region;Number of tracks in core; nentries", xbins=10, xmin=-0.5, xmax=9.5) ] if hasattr(handle, 'Histograms') and not 'nTracksInIso' in handle.Histograms: handle.Histograms += [ defineHistogram( 'nTracksInIso', type='TH1F', title=myName + " Number of tracks in outer region;Number of tracks in outer region; nentries", xbins=10, xmin=-0.5, xmax=9.5) ]
def __init__(self, name="TrigL2CentralJetAllTEHypoValidationMonitoring"): super(TrigL2CentralJetAllTEValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms = [ defineHistogram('all_jet0_et', type='TH1F', title="EFCentralJet Et before cut", xbins=100, xmin=-100, xmax=100) ] self.Histograms += [ defineHistogram('all_jet0_eta',type='TH1F', title="EFCentralJet Eta before cut", xbins=100, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passed_jet0_et', type='TH1F', title="EFCentralJet Et after cut", xbins=100, xmin=-100, xmax=100) ] self.Histograms += [ defineHistogram('passed_jet0_eta',type='TH1F', title="EFCentralJet Eta after cut", xbins=100, xmin=-4, xmax=4) ]
def __init__ (self, name="MuonJetHypo_Cosmic"): super(MuonJetHypoCosmicMonitoring, self).__init__(name) self.defineTarget("Cosmic") self.Histograms += [ defineHistogram('JetEne', type='TH1F', title="MuonJet: Jets energy; Jet energy (GeV); nevents", xbins=100, xmin=-1., xmax=500.) ] self.Histograms += [ defineHistogram('NumTrk', type='TH1F', title="MuonJet: Tracks with Pt>1GeV in the Jet cone; number of Tracks; nevents", xbins=51, xmin=-1., xmax=50.) ] self.Histograms += [ defineHistogram('deltaR', type='TH1F', title="MuonJet: DeltaR between LVL1 muon and Jet; deltaR; nevents", xbins=51, xmin=-1., xmax=50.) ]
def __init__(self, name="MergeTopoStartsDefault", **kwargs): super(MergeTopoStartsConfig , self ).__init__(name) monitoring = TrigGenericMonitoringToolConfig(name+"Monitoring") monitoring.Histograms += [ defineHistogram('reductionWrt1', type='TH1F', title="Combinations reduction wrt topo TE 1", xbins=20, xmin=0.0, xmax=1.0) ] monitoring.Histograms += [ defineHistogram('reductionWrt2', type='TH1F', title="Combinations reduction wrt topo TE 2", xbins=20, xmin=0.0, xmax=1.0) ] monitoring.defineTarget(["Validation", "Online"]) self.AthenaMonTools = [monitoring]
def __init__(self, name="MbTrkFexMonitoring"): super(MbTrkFexMonitoring, self).__init__(name) self.defineTarget(["Online", "Validation", "Cosmic"]) #-------------------------------------------------------------------------------------------- # Monitoring of data stored in output TrigTrackCounts object. self.Histograms += [ defineHistogram('TrkZ0', title='Reconstructed Track Z0;Z0 (mm);Tracks', type='TH1F', xbins=trigMinBiasProperties.trkZ0Bins(), xmin=trigMinBiasProperties.trkZ0Min(), xmax=trigMinBiasProperties.trkZ0Max(), opt="kVecUO") ] self.Histograms += [ defineHistogram('TrkPt', title='Reconstructed Track pT;pT (GeV);Tracks', type='TH1F', xbins=trigMinBiasProperties.trkPtBins(), xmin=trigMinBiasProperties.trkPtMin(), xmax=trigMinBiasProperties.trkPtMax(), opt="kVecUO") ] self.Histograms += [ defineHistogram('TrkEta', title='Reconstructed Track Eta;eta ;Tracks', type='TH1F', xbins=trigMinBiasProperties.trkEtaBins(), xmin=trigMinBiasProperties.trkEtaMin(), xmax=trigMinBiasProperties.trkEtaMax(), opt="kVecUO") ] self.Histograms += [ defineHistogram('TrkPhi', title='Reconstructed Track Phi;phi ;Tracks', type='TH1F', xbins=trigMinBiasProperties.trkPhiBins(), xmin=trigMinBiasProperties.trkPhiMin(), xmax=trigMinBiasProperties.trkPhiMax(), opt="kVecUO") ] #-------------------------------------------------------------------------------------------- # Other monitoring # self.Histograms += [ defineHistogram('NTrks', type='TH1I', title="Number of Tracks;NTrks;Events", xbins=500, xmin=-0.5, xmax=499.5) ]
def __init__ (self, name="TrigEFDielectronMassValidationMonitoring_Upsi"): """ defines hisograms for online (to be used in Fex and Hypo)""" super(TrigEFDielectronMassValidationMonitoring_Upsi, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('cut', type='TH1F', title="Cut counter", xbins=6, xmin=-0.5, xmax=5.5, opt="kCumulative") ] self.Histograms += [ defineHistogram('massOfAccepted', type='TH1F', title="Mass in accepted combinations", xbins=60, xmin=0.0*GeV, xmax=30.0*GeV) ]
def setDefaults(self, handle): super(HLTCaloPreselHypoValidationMonitoring, self).setDefaults(handle) if not hasattr(handle, 'name'): myName = "SomeAlgo" else: myName = handle.getName() if hasattr(handle, 'Histograms') and not 'seedPt' in handle.Histograms: handle.Histograms += [ defineHistogram( 'seedPt', type='TH1F', title=myName + " P_{T} of seed taus;P_{T} of cadidate [MeV]; nevents", xbins=100, xmin=0., xmax=50000.) ] if hasattr(handle, 'Histograms') and not 'fCore' in handle.Histograms: handle.Histograms += [ defineHistogram( 'fCore', type='TH1F', title=myName + " Fractional central E_{T};Fractional core E_{T}; nentries", xbins=100, xmin=-0.2, xmax=1.5) ] if hasattr(handle, 'Histograms') and not 'hadRadius' in handle.Histograms: handle.Histograms += [ defineHistogram( 'hadRadius', type='TH1F', title=myName + " Average transverse-hadronic-energy weighted cell radius;Average energy-weighted cell radius [mm]; nentries", xbins=100, xmin=0.0, xmax=0.5) ] if hasattr( handle, 'Histograms') and not 'dRBaryCenterRoI' in handle.Histograms: handle.Histograms += [ defineHistogram( 'dRBaryCenterRoI', type='TH1F', title=myName + " Delta R between tau barycenter and RoI;DeltaR tau barycenter - RoI; nentries", xbins=100, xmin=0.0, xmax=1.0) ]
def __init__ (self, name="TrigEFDielectronMassOnlineMonitoring"): """ defines hisograms for online """ super(TrigEFDielectronMassOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [ defineHistogram('cut', type='TH1F', title="Cut counter", xbins=6, xmin=-0.5, xmax=5.5, opt="kCumulative") ] self.Histograms += [ defineHistogram('massOfAccepted', type='TH1F', title="Mass in accepted combinations", xbins=50, xmin=0.0*GeV, xmax=250.0*GeV) ]
def __init__ (self, name="EFJetHypo_Cosmic"): """ defines histograms for cosmic """ super(TrigEFJetHypoCosmicMonitoring, self).__init__(name) self.defineTarget("Cosmic") self.Histograms = [ defineHistogram('all_jet0_et', type='TH1F', title="EFCentralJet Et before cut", xbins=100, xmin=-100, xmax=100) ] self.Histograms += [ defineHistogram('all_jet0_eta',type='TH1F', title="EFCentralJet Eta before cut", xbins=100, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passed_jet0_et', type='TH1F', title="EFCentralJet Et after cut", xbins=100, xmin=-100, xmax=100) ] self.Histograms += [ defineHistogram('passed_jet0_eta',type='TH1F', title="EFCentralJet Eta after cut", xbins=100, xmin=-4, xmax=4) ]
def __init__ (self, name="L2DijetCombo_Cosmic"): """ defines histograms for cosmic """ super(TrigL2DijetComboCosmicMonitoring, self).__init__(name) self.defineTarget("Cosmic") self.Histograms = [ defineHistogram('nTe2jCounter', type='TH1F', title="L2DijetCombo number of input TE", xbins=6, xmin=0, xmax=6)]
def __init__ (self, name="TrigDvEFBjetHypoValidationMonitoring"): super(TrigEFDvHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('nTracksperRoI', type='TH1F', title="Number of selected tracks per RoI", xbins=16, xmin=-0.5, xmax=15) ]
def __init__ (self, name="L2JetDEtaMjjAllTE_Validation"): super(TrigL2JetDEtaMjjAllTEValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms = [ defineHistogram('nJets', type='TH1F', title="nJets Passing Kinematics", xbins=20, xmin=-0.5, xmax=19.5)] self.Histograms += [ defineHistogram('CutCounter', type='TH1F', title="Events Pass/Fail", xbins=2, xmin=-0.5, xmax=1.5)] self.Histograms += [ defineHistogram('E', type='TH1F', title="Passing Jets E", xbins=50, xmin=0, xmax=250*1000)] self.Histograms += [ defineHistogram('Et', type='TH1F', title="Passing Jets Et", xbins=50, xmin=0, xmax=250*1000)] self.Histograms += [ defineHistogram('Eta', type='TH1F', title="Passing Jets Eta", xbins=50, xmin=-5, xmax=5)] self.Histograms += [ defineHistogram('Phi', type='TH1F', title="Passing Jets Phi", xbins=30, xmin=-pi, xmax=pi)] self.Histograms += [ defineHistogram('dEta', type='TH1F', title="dEta", xbins=20, xmin=0, xmax=10)] self.Histograms += [ defineHistogram('mjj', type='TH1F', title="Mjj", xbins=20, xmin=0, xmax=1000*1000)]
def __init__ (self, name="TrigEFHTHypoValidationMonitoring"): """ defines histograms for validation """ super(TrigEFHTHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('HT',type='TH1F', title="EFHT HT before cuts", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_et',type='TH1F', title="EFHT all jets Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_eta',type='TH1F', title="EFHT all jets eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_phi',type='TH1F', title="EFHT all jets phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('HT_passedHT',type='TH1F', title="EFHT HT passed HT cut", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('nJets',type='TH1F', title="EFHT no.of jets considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('nJets_passedCuts',type='TH1F', title="EFHT no.of jets passed basic cuts", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('nJets_passedHT',type='TH1F', title="EFHT no.of jets passed HT cuts", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('nJets_failedHT',type='TH1F', title="EFHT no.of jets failed HT cuts", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('cutCounter',type='TH1F', title="EFHT Cut Counter", xbins=10, xmin=0, xmax=10) ]
def __init__ (self, name="L2MultiJetHypo_Validation"): super(TrigL2MultiJetHypoValidationMonitoring, 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="L2MultiJetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] self.Histograms = [ defineHistogram('nJets', type='TH1F', title="L2MultiJetHypo number of jets;N; nevents", xbins=21, xmin=-.5, xmax=20.5) ] self.Histograms += [ defineHistogram('E', type='TH1F', title="L2MultiJetHypo E;E [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] self.Histograms += [ defineHistogram('Et', type='TH1F', title="L2MultiJetHypo Et;Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] self.Histograms += [ defineHistogram('Eta', type='TH1F', title="L2MultiJetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] self.Histograms += [ defineHistogram('Phi', type='TH1F', title="L2MultiJetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] self.Histograms += [ defineHistogram('Eta,Phi', type='TH2F', title="L2MultiJetHypo 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="L2MultiJetHypo 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="L2MultiJetHypo Et vs. Phi;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100 , ymin=0., ymax=500000.) ] self.Histograms += [ defineHistogram('nLeadingTowers', type='TH1F', title="L2MultiJetHypo nLeadingTowers; nLeadingTowers; nevents", xbins=21, xmin=-0.5, xmax=20.5) ]
def __init__ (self, name="L2DijetAllTE_Online"): """ defines histograms for online """ super(TrigL2DijetAllTEOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [ defineHistogram('nInputTEsAllTE', type='TH1F', title="L2DijetAllTE number of input TE", xbins=6, xmin=0, xmax=6)] self.Histograms += [ defineHistogram('nTEinTE0', type='TH1F', title="L2DijetAllTE number of TEs in tes_in[0]", xbins=20, xmin=0, xmax=20)] self.Histograms += [ defineHistogram('nTEinTE1', type='TH1F', title="L2DijetAllTE number of TEs in tes_in[1]", xbins=20, xmin=0, xmax=20)] self.Histograms += [ defineHistogram('ptHighChain_0', type='TH1F', title="L2DijetAllTE pt of leading jet in high pt chain (GeV)", xbins=190, xmin=50.0, xmax=1000.0)] self.Histograms += [ defineHistogram('ptLowChain_0', type='TH1F', title="L2DijetAllTE pt of leading jet in low pt chain (GeV)", xbins=200, xmin=0.0, xmax=1000.0)] self.Histograms += [ defineHistogram('ptLowChain_1', type='TH1F', title="L2DijetAllTE pt of next leading jet in low pt chain (GeV)", xbins=200, xmin=0.0, xmax=1000.0)] self.Histograms += [ defineHistogram('nLowChainHigh', type='TH1F', title="L2DijetAllTE number of events leading jet in low pt chain is not found in high pt chain", xbins=6, xmin=0, xmax=6)]
def __init__ (self, name="EFJetHypo_Cosmic"): """ defines histograms for cosmic """ super(TrigEFJetHypoCosmicMonitoring, 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="EFJetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] self.Histograms += [ defineHistogram('NJet', type='TH1F', title="EFJetHypo NJet; Number of jets; nevents", xbins=20, xmin=0, xmax=20) ] self.Histograms += [ defineHistogram('Et', type='TH1F', title="EFJetHypo Et; Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] self.Histograms += [ defineHistogram('Eta', type='TH1F', title="EFJetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] self.Histograms += [ defineHistogram('Phi', type='TH1F', title="EFJetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="EFJetHypo Phi vs. Eta;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ]
def __init__ (self, name="L2DijetCombo_Validation"): super(TrigL2DijetComboValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms = [ defineHistogram('nTe2jCounter', type='TH1F', title="L2DijetCombo number of input TE", xbins=6, xmin=0, xmax=6)]
def __init__ (self, name="TrigEFJetMassDEtaValidationMonitoring"): super(TrigEFJetMassDEtaValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('NJet', type='TH1F', title="Number Jets", xbins=20, xmin=-0.5, xmax=19.5) ] self.Histograms += [ defineHistogram('Complexity', type='TH1F', title="Number of Iterations", xbins=20, xmin=-0.5, xmax=100) ] self.Histograms += [ defineHistogram('dEta', type='TH1F', title="Maximal #Delta #Eta Two Jets", xbins=100, xmin=0, xmax=10) ] self.Histograms += [ defineHistogram('Mjj',type='TH1F', title="Mjj Two Jets", xbins=100, xmin=0, xmax=2000000) ] self.Histograms += [ defineHistogram('dEta, Mjj',type='TH2F', title="Mjj Two Jets vs. dEta", xbins=20, xmin=0, xmax=10, ybins=20, ymin=0, ymax=1000000) ] self.Histograms += [ defineHistogram('dEta_cuted', type='TH1F', title="dEta Two Jets after cut", xbins=100, xmin=0, xmax=10) ] self.Histograms += [ defineHistogram('Mjj_cuted',type='TH1F', title="Mjj Two Jets after cut", xbins=100, xmin=0, xmax=2000000) ] self.Histograms += [ defineHistogram('dEta, Mjj_cuted',type='TH2F', title="Mjj Two Jets vs. dEta after cut", xbins=20, xmin=0, xmax=10, ybins=20, ymin=0, ymax=1000000) ] self.Histograms += [ defineHistogram('pt', type='TH1F', title="pt Two Jet", xbins=60, xmin=0, xmax=300000) ] self.Histograms += [ defineHistogram('pt_cut', type='TH1F', title="pt Two Jet after cut", xbins=60, xmin=0, xmax=300000) ] self.Histograms += [ defineHistogram('eta', type='TH1F', title="eta Two Jet", xbins=98, xmin=-4.9, xmax=4.9) ] self.Histograms += [ defineHistogram('eta_cut', type='TH1F', title="eta Two Jet after cut", xbins=98, xmin=-4.9, xmax=4.9) ]
def __init__ (self, name="TrigDvHypoMonitoring"): super(TrigDvHypoMonitoring, self).__init__(name) # ----> remove this line and change labels and ranges self.Histograms += [ defineHistogram('CutCounter', type='TH1F', title="Bjet Hypo cut counter", xbins=6, xmin=-1.5, xmax=4.5,labels='No SV- obj:No usable beam spot:Rejected (nTrackVtx):'+\ 'Rejected (Mass):Rejected (decay length):Accepted') ]
def __init__ (self, name="TrigEFJetMassYValidationMonitoring"): super(TrigEFJetMassYValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('NJet', type='TH1F', title="Number Jets", xbins=20, xmin=-0.5, xmax=19.5) ] self.Histograms += [ defineHistogram('Ystar', type='TH1F', title="Ystar leading-pt jets", xbins=50, xmin=0, xmax=3) ] self.Histograms += [ defineHistogram('Mjj',type='TH1F', title="Mjj leading-pt jets", xbins=200, xmin=0, xmax=3000000) ] self.Histograms += [ defineHistogram('Ystar, Mjj',type='TH2F', title="Mjj leading-pt jets vs. Ystar", xbins=50, xmin=0, xmax=3, ybins=200, ymin=0, ymax=3000000) ] self.Histograms += [ defineHistogram('Ystar_cuted', type='TH1F', title="Ystar leading-pt jets after cut", xbins=50, xmin=0, xmax=3) ] self.Histograms += [ defineHistogram('Mjj_cuted',type='TH1F', title="Mjj leading-pt jets after cut", xbins=200, xmin=0, xmax=3000000) ] self.Histograms += [ defineHistogram('Ystar_cuted, Mjj_cuted',type='TH2F', title="Mjj leading-pt jets vs. Ystar after cut", xbins=50, xmin=0, xmax=3, ybins=200, ymin=0, ymax=3000000) ] self.Histograms += [ defineHistogram('pt', type='TH1F', title="pt leading-pt jet", xbins=50, xmin=0, xmax=3000000) ] self.Histograms += [ defineHistogram('pt_cut', type='TH1F', title="pt leading-pt jet after cut", xbins=50, xmin=0, xmax=3000000) ] self.Histograms += [ defineHistogram('eta', type='TH1F', title="eta leading-pt jet", xbins=98, xmin=-4.9, xmax=4.9) ] self.Histograms += [ defineHistogram('eta_cut', type='TH1F', title="eta leading-pt jet after cut", xbins=98, xmin=-4.9, xmax=4.9) ]
def __init__ (self, name="TrigEFJetDphiHypoOnlineMonitoring"): """ defines histograms for online """ super(TrigEFJetDphiHypoOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [ defineHistogram('passedJetCuts_minDphi',type='TH1F', title="EFJetDphi MIN Dphi of all considered jets after jet cuts", xbins=32, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_dphi',type='TH1F', title="EFJetDphi DeltaPhi of considered jets after jet cuts", xbins=32, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_et1',type='TH1F', title="EFJetDphi jet1 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_et2',type='TH1F', title="EFJetDphi jet2 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_eta1',type='TH1F', title="EFJetDphi jet1 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_eta2',type='TH1F', title="EFJetDphi jet2 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_phi1',type='TH1F', title="EFJetDphi jet1 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_phi2',type='TH1F', title="EFJetDphi jet2 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('passedDphiCut_dphi',type='TH1F', title="EFJetDphi DeltaPhi of considered jets after Dphi cut", xbins=32, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('passedDphiCut_minDphi',type='TH1F', title="EFJetDphi MIN Dphi of all considered jets after Dphi cut", xbins=32, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('nJet',type='TH1F', title="EFJetDphi no. of jets considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('nComb',type='TH1F', title="EFJetDphi no. of jet pair combinations considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('passednComb',type='TH1F', title="EFJetDphi no. of jet pair combinations passing Dphi cut", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('cutCounter',type='TH1F', title="EFJetDphi Cut Counter", xbins=10, xmin=0, xmax=10) ]
def __init__(self, name="TrigL2JetDEtaHypoValidationMonitoring"): super(TrigL2JetDEtaHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms= [defineHistogram('GapCounter', type='TH1F', title="L2JetDEtaHypo gap counter", xbins=6, xmin=-1.5, xmax=4.5)] self.Histograms+=[defineHistogram('GapSize', type='TH1F', title="L2JetDEtaHypo gap size", xbins=50, xmin=-0, xmax=10.)]
def __init__ (self, name="L2JetMctHypo_Validation"): super(TrigL2JetMctHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms = [ defineHistogram('nTeMctHypoCounter',type='TH1F', title="L2JetMctHypo number of input TE", xbins=6, xmin=0, xmax=6 )] self.Histograms += [ defineHistogram('nJetsTe1', type='TH1F', title="L2JetMctHypo number of jets in TE1", xbins=6, xmin=0, xmax=6 )] self.Histograms += [ defineHistogram('nJetsTe2', type='TH1F', title="L2JetMctHypo number of jets in TE2", xbins=6, xmin=0, xmax=6 )] self.Histograms += [ defineHistogram('mct', type='TH1F', title="L2JetMctHypo Mct", xbins=200, xmin=0.0, xmax=1000.0)] self.Histograms += [ defineHistogram('Passed_mct', type='TH1F', title="L2JetMctHypo PASSED Mct", xbins=200, xmin=0.0, xmax=1000.0)] self.Histograms += [ defineHistogram('dPhi', type='TH1F', title="L2JetMctHypo deltaPhi", xbins=32, xmin=0.0, xmax=3.2 )] self.Histograms += [ defineHistogram('ptLeadingJet', type='TH1F', title="L2JetMctHypo pt of Leading Jet (GeV)", xbins=190, xmin=50.0, xmax=1000.0)] self.Histograms += [ defineHistogram('etaLeadingJet', type='TH1F', title="L2JetMctHypo eta of Leading Jet", xbins=100, xmin=-5.0, xmax=5.0 )] self.Histograms += [ defineHistogram('phiLeadingJet', type='TH1F', title="L2JetMctHypo phi of Leading Jet", xbins=64, xmin=-3.2, xmax=3.2 )] self.Histograms += [ defineHistogram('ptNextLeadingJet', type='TH1F', title="L2JetMctHypo pt of Next Leading Jet (GeV)", xbins=197, xmin=15.0, xmax=1000.0)] self.Histograms += [ defineHistogram('etaNextLeadingJet',type='TH1F', title="L2JetMctHypo eta of Next Leading Jet", xbins=100, xmin=-5.0, xmax=5.0 )] self.Histograms += [ defineHistogram('phiNextLeadingJet',type='TH1F', title="L2JetMctHypo phi of Next Leading Jet", xbins=64, xmin=-3.2, xmax=3.2 )] self.Histograms += [ defineHistogram('MctHypoResult', type='TH1F', title="L2JetMctHypo Result", xbins=6, xmin=0.0, xmax=6.0 )]
def __init__ (self, name="L2JetHypo_Cosmic"): """ defines histograms for cosmic """ super(TrigL2JetHypoCosmicMonitoring, 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="L2JetHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] self.Histograms += [ defineHistogram('E', type='TH1F', title="L2JetHypo E;E [MeV]; nevents", xbins=100, xmin=0., xmax=300000.) ] self.Histograms += [ defineHistogram('Et', type='TH1F', title="L2JetHypo Et;Et [MeV]; nevents", xbins=100, xmin=0., xmax=300000.) ] self.Histograms += [ defineHistogram('Eta', type='TH1F', title="L2JetHypo Eta;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] self.Histograms += [ defineHistogram('Phi', type='TH1F', title="L2JetHypo Phi;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] self.Histograms += [ defineHistogram('Eta,Phi', type='TH2F', title="L2JetHypo 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="L2JetHypo 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="L2JetHypo Et vs. Phi;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100 , ymin=0., ymax=300000.) ] self.Histograms += [ defineHistogram('HECf', type='TH1F', title="L2JetHypo hecf; hecf; nevents", xbins=200, xmin=-0.5, xmax=1.5) ] self.Histograms += [ defineHistogram('EMf', type='TH1F', title="L2JetHypo emf; emf; nevents", xbins=200, xmin=-0.5, xmax=1.5) ] self.Histograms += [ defineHistogram('nLeadingCells', type='TH1F', title="L2JetHypo nLeadingCells; nLeadingCells; nevents", xbins=400, xmin=0., xmax=400.) ] self.Histograms += [ defineHistogram('jetQuality', type='TH1F', title="L2JetHypo jetQuality; jetQuality; nevents", xbins=170, xmin=-0.2, xmax=1.5) ] self.Histograms += [ defineHistogram('jetTimeCells', type='TH1F', title="L2JetHypo jetTimeCells; jetTimeCells [ns]; nevents", xbins=200, xmin=-100., xmax=100.) ]
def __init__ (self, name="TrigEFRazorAllTEOnlineMonitoring"): """ defines histograms for online """ super(TrigEFRazorAllTEOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms += [ defineHistogram('Razor',type='TH1F', title="EFRazor Razor before cuts", xbins=200, xmin=0, xmax=10000) ] self.Histograms += [ defineHistogram('Razor_passedRazor',type='TH1F', title="EFRazor Razor passed Razor cut", xbins=200, xmin=0, xmax=10000) ] self.Histograms += [ defineHistogram('passedJetCuts_et_0',type='TH1F', title="EFRazor hemisphere 0 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_eta_0',type='TH1F', title="EFRazor hemisphere 0 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_phi_0',type='TH1F', title="EFRazor hemisphere 0 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_et_1',type='TH1F', title="EFRazor hemisphere 1 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_eta_1',type='TH1F', title="EFRazor hemisphere 1 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_phi_1',type='TH1F', title="EFRazor hemisphere 1 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('nJets',type='TH1F', title="EFRazor no.of hemispheres considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('cutCounter',type='TH1F', title="EFRazor Cut Counter", xbins=10, xmin=0, xmax=10) ] self.Histograms += [ defineHistogram('m_gaminvR', type='TH1F', title="EFRazor Razor variable - 1/gamR", xbins=200, xmin=0, xmax=10 )] self.Histograms += [ defineHistogram('m_shatR', type='TH1F', title="EFRazor Razor variable - s_R hat", xbins=200, xmin=0, xmax=10000 )] self.Histograms += [ defineHistogram('m_mdeltaR', type='TH1F', title="EFRazor Razor variable - m^Delta_R", xbins=200, xmin=0, xmax=10000 )] self.Histograms += [ defineHistogram('m_cosptR', type='TH1F', title="EFRazor Razor variable - cos Theta_pt^R", xbins=200, xmin=0, xmax=10000 )] self.Histograms += [ defineHistogram('m_Minv2', type='TH1F', title="EFRazor Razor variable - Minv2", xbins=200, xmin=0, xmax=10000 )] self.Histograms += [ defineHistogram('m_Einv', type='TH1F', title="EFRazor Razor variable - Einv", xbins=200, xmin=0, xmax=10000 )]
def __init__ (self, name="TrigL2HTFullScanHypo_Cosmic"): """ defines histograms for cosmic """ super(TrigL2HTFullScanHypoCosmicMonitoring, 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="TrigL2HTFullScanHypo cut counter", xbins=3, xmin=-1.5, xmax=1.5, labels=labelsDescription) ] self.Histograms += [ defineHistogram('n_tot_Jets', type='TH1F', title="TrigL2HTFullScanHypo total number of jets;N; nevents", xbins=21, xmin=-.5, xmax=20.5) ] self.Histograms += [ defineHistogram('n_acc_Jets', type='TH1F', title="TrigL2HTFullScanHypo number of accepted jets;N; nevents", xbins=21, xmin=-.5, xmax=20.5) ] self.Histograms += [ defineHistogram('n_rej_Jets', type='TH1F', title="TrigL2HTFullScanHypo number of rejected jets;N; nevents", xbins=21, xmin=-.5, xmax=20.5) ] self.Histograms += [ defineHistogram('HT', type='TH1F', title="TrigL2HTFullScanHypo HT; HT; nevents", xbins=100, xmin=0., xmax=500000.) ] self.Histograms += [ defineHistogram('E', type='TH1F', title="TrigL2HTFullScanHypo E;E [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] # self.Histograms += [ defineHistogram('Et', type='TH1F', title="TrigL2HTFullScanHypo Et;Et [MeV]; nevents", xbins=100, xmin=0., xmax=500000.) ] self.Histograms += [ defineHistogram('Et_acc', type='TH1F', title="TrigL2HTFullScanHypo Et acc jets;Et [MeV]; nevents", xbins=100, xmin=0., xmax=300000.) ] self.Histograms += [ defineHistogram('Eta_acc', type='TH1F', title="TrigL2HTFullScanHypo Eta acc jets;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] self.Histograms += [ defineHistogram('Phi_acc', type='TH1F', title="TrigL2HTFullScanHypo Phi acc jets;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] self.Histograms += [ defineHistogram('Eta_acc,Phi_acc', type='TH2F', title="TrigL2HTFullScanHypo Phi vs. Eta acc jets;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ] self.Histograms += [ defineHistogram('Eta_acc,Et_acc', type='TH2F', title="TrigL2HTFullScanHypo Et vs. Eta acc jets;#eta;E_{T} [MeV]", xbins=100, xmin=-5., xmax=5., ybins=100 , ymin=0., ymax=300000.) ] self.Histograms += [ defineHistogram('Phi_acc,Et_acc', type='TH2F', title="TrigL2HTFullScanHypo Et vs. Phi acc jets;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100 , ymin=0., ymax=300000.) ] self.Histograms += [ defineHistogram('Et_rej', type='TH1F', title="TrigL2HTFullScanHypo Et rej jets;Et [MeV]; nevents", xbins=100, xmin=0., xmax=300000.) ] self.Histograms += [ defineHistogram('Eta_rej', type='TH1F', title="TrigL2HTFullScanHypo Eta rej jets;Eta; nevents", xbins=100, xmin=-5., xmax=5.) ] self.Histograms += [ defineHistogram('Phi_rej', type='TH1F', title="TrigL2HTFullScanHypo Phi rej jets;Phi; nevents", xbins=64, xmin=-3.1416, xmax=3.1416) ] self.Histograms += [ defineHistogram('Eta_rej,Phi_rej', type='TH2F', title="TrigL2HTFullScanHypo Phi vs. Eta rej jets;#eta;#phi", xbins=100, xmin=-5., xmax=5., ybins=64, ymin=-3.1416, ymax=3.1416) ] self.Histograms += [ defineHistogram('Eta_rej,Et_rej', type='TH2F', title="TrigL2HTFullScanHypo Et vs. Eta rej jets;#eta;E_{T} [MeV]", xbins=100, xmin=-5., xmax=5., ybins=100 , ymin=0., ymax=300000.) ] self.Histograms += [ defineHistogram('Phi_rej,Et_rej', type='TH2F', title="TrigL2HTFullScanHypo Et vs. Phi rej jets;#phi;E_{T} [MeV]", xbins=64, xmin=-3.1416, xmax=3.1416, ybins=100 , ymin=0., ymax=300000.) ] self.Histograms += [ defineHistogram('nLeadingTowers', type='TH1F', title="TrigL2HTFullScanHypo nLeadingTowers; nLeadingTowers; nevents", xbins=21, xmin=-0.5, xmax=20.5) ]
def __init__ (self, name="TrigEFJetMctHypoValidationMonitoring"): super(TrigEFJetMctHypoValidationMonitoring, self).__init__(name) self.defineTarget("Validation") self.Histograms += [ defineHistogram('passedJetCuts_maxmct', type='TH1F', title="EFJetMct MAX MCT of jets after jet cuts", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_mct', type='TH1F', title="EFJetMct MCT of jets after jet cuts", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_dphi',type='TH1F', title="EFJetMct DeltaPhi of jets after jet cuts", xbins=32, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_et1',type='TH1F', title="EFJetMct jet1 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_et2',type='TH1F', title="EFJetMct jet2 Et after jet cuts", xbins=198, xmin=10, xmax=1000) ] self.Histograms += [ defineHistogram('passedJetCuts_eta1',type='TH1F', title="EFJetMct jet1 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_eta2',type='TH1F', title="EFJetMct jet2 eta after jet cuts", xbins=80, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('passedJetCuts_phi1',type='TH1F', title="EFJetMct jet1 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('passedJetCuts_phi2',type='TH1F', title="EFJetMct jet2 phi after jet cuts", xbins=64, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('passedMctCut_mct', type='TH1F', title="EFJetMct MCT of jets after Mct cut", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('passedMctCut_maxmct', type='TH1F', title="EFJetMct MAX MCT of jets after Mct cut", xbins=200, xmin=0, xmax=1000) ] self.Histograms += [ defineHistogram('passedMctCut_dphi',type='TH1F', title="EFJetMct DeltaPhi of jets after Mct cut", xbins=64, xmin=0., xmax=3.2) ] self.Histograms += [ defineHistogram('nJet',type='TH1F', title="EFJetMct no. of jets considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('nComb',type='TH1F', title="EFJetMct no. of jet pair combinations considered", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('passednComb',type='TH1F', title="EFJetMct no. of jet pair combinations passing Mct cut", xbins=50, xmin=0, xmax=50) ] self.Histograms += [ defineHistogram('cutCounter',type='TH1F', title="EFJetMct Cut Counter", xbins=10, xmin=0, xmax=10) ]
def __init__(self, name="TrigEFDPhiMetJetAllTEOnlineMonitoring"): super(TrigEFDPhiMetJetAllTEOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [ defineHistogram('NJets', type='TH1F', title="NJets No cut", xbins=10, xmin=0, xmax=10) ] self.Histograms += [ defineHistogram('jet1et', type='TH1F', title="EFCentralJet1 Et No cut", xbins=50, xmin=0, xmax=500000) ] self.Histograms += [ defineHistogram('jet1phi', type='TH1F', title="EFCentralJet1 Phi No cut", xbins=50, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('jet1eta', type='TH1F', title="EFCentralJet1 Eta No cut", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet_met_phi1',type='TH1F', title="DPhi1 No cut", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet2et', type='TH1F', title="EFCentralJet2 Et No cut", xbins=50, xmin=0, xmax=500000) ] self.Histograms += [ defineHistogram('jet2phi', type='TH1F', title="EFCentralJet2 Phi No cut", xbins=50, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('jet2eta', type='TH1F', title="EFCentralJet2 Eta No cut", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet_met_phi2',type='TH1F', title="DPhi2 No cut", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('NJets_Pass', type='TH1F', title="NJets", xbins=10, xmin=0, xmax=10) ] self.Histograms += [ defineHistogram('jet1et_Pass', type='TH1F', title="EFCentralJet1 Et", xbins=50, xmin=0, xmax=500000) ] self.Histograms += [ defineHistogram('jet1phi_Pass', type='TH1F', title="EFCentralJet1 Phi", xbins=50, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('jet1eta_Pass', type='TH1F', title="EFCentralJet1 Eta", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet_met_phi1_Pass',type='TH1F', title="DPhi1", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet2et_Pass', type='TH1F', title="EFCentralJet2 Et", xbins=50, xmin=0, xmax=500000) ] self.Histograms += [ defineHistogram('jet2phi_Pass', type='TH1F', title="EFCentralJet2 Phi", xbins=50, xmin=-4, xmax=4) ] self.Histograms += [ defineHistogram('jet2eta_Pass', type='TH1F', title="EFCentralJet2 Eta", xbins=25, xmin=0, xmax=4) ] self.Histograms += [ defineHistogram('jet_met_phi2_Pass',type='TH1F', title="DPhi2", xbins=25, xmin=0, xmax=4) ]
def __init__ (self, name="L2JetDphiHypo_Online"): """ defines histograms for online """ super(TrigL2JetDphiHypoOnlineMonitoring, self).__init__(name) self.defineTarget("Online") self.Histograms = [ defineHistogram('nTeDphiHypoCounter', type='TH1F', title="L2JetDphiHypo number of input TE", xbins=6, xmin=0, xmax=6)] self.Histograms += [ defineHistogram('nJetsTe1', type='TH1F', title="L2JetDphiHypo number of jets in TE1", xbins=6, xmin=0, xmax=6)] self.Histograms += [ defineHistogram('nJetsTe2', type='TH1F', title="L2JetDphiHypo number of jets in TE2", xbins=6, xmin=0, xmax=6)] self.Histograms += [ defineHistogram('dPhi', type='TH1F', title="L2JetDphiHypo deltaPhi", xbins=32, xmin=0.0, xmax=3.2)] self.Histograms += [ defineHistogram('Passed_dPhi', type='TH1F', title="L2JetDphiHypo PASSED deltaPhi", xbins=32, xmin=0.0, xmax=3.2)] self.Histograms += [ defineHistogram('ptLeadingJet', type='TH1F', title="L2JetDphiHypo pt of Leading Jet (GeV)", xbins=190, xmin=50.0, xmax=1000.0)] self.Histograms += [ defineHistogram('etaLeadingJet', type='TH1F', title="L2JetDphiHypo eta of Leading Jet", xbins=100, xmin=-5.0, xmax=5.0)] self.Histograms += [ defineHistogram('phiLeadingJet', type='TH1F', title="L2JetDphiHypo phi of Leading Jet", xbins=64, xmin=-3.2, xmax=3.2)] self.Histograms += [ defineHistogram('ptNextLeadingJet', type='TH1F', title="L2JetDphiHypo pt of Next Leading Jet (GeV)", xbins=197, xmin=15.0, xmax=1000.0)] self.Histograms += [ defineHistogram('etaNextLeadingJet', type='TH1F', title="L2JetDphiHypo eta of Next Leading Jet", xbins=100, xmin=-5.0, xmax=5.0)] self.Histograms += [ defineHistogram('phiNextLeadingJet', type='TH1F', title="L2JetDphiHypo phi of Next Leading Jet", xbins=64, xmin=-3.2, xmax=3.2)] self.Histograms += [ defineHistogram('dphiHypoResult', type='TH1F', title="L2JetDphiHypo Result", xbins=6, xmin=0.0, xmax=6.0)]