Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-13 03:24:15

0001 #################################################################################
0002 # RelMon: a tool for automatic Release Comparison                              
0003 # https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon
0004 #
0005 #
0006 #                                                                              
0007 # Danilo Piparo CERN - danilo.piparo@cern.ch                                   
0008 #                                                                              
0009 ################################################################################
0010 
0011 # States:
0012 FAIL=-1
0013 NULL=0
0014 SUCCESS=1
0015 NONE=-2
0016 SKIPED=-3
0017 #-------------------------------------------------------------------------------  
0018 #Error Codes
0019 test_codes={"EMPTY":-101,
0020             "2D":-102,
0021             "DIFF_BIN":-103,
0022             "DIFF_TYPES":-104,
0023             "NO_HIST":-105,
0024             "FEW_BINS":-105}
0025 #-------------------------------------------------------------------------------  
0026 relmon_mainpage="https://cms-pdmv-prod.web.cern.ch/relmon"
0027 
0028 #-------------------------------------------------------------------------------  
0029 
0030 server="http://cmsweb.cern.ch" # <--- Check carefully!
0031 base_url="/dqm/relval"
0032 
0033 url_encode_dict={"/":"%2F",
0034                  "+":"%2B",
0035                  "-":"%2D"}
0036                  
0037 #-------------------------------------------------------------------------------                   
0038 # Names displayed on the HTML pages  
0039 cat_names={FAIL:"Failing",
0040             NULL:"Null",
0041             SUCCESS:"Successful",
0042             SKIPED: "Skipped"}
0043 # Names used internally
0044 cat_states={FAIL:-1,
0045             NULL:0,
0046             SUCCESS:1,
0047             SKIPED:-3}
0048 # Names used for the different classes of images to obtain the coloured border
0049 cat_classes={FAIL:"fail",
0050              NULL:"null",
0051              SUCCESS:"succes",
0052              SKIPED: "skipped"}     # 1s to avoid conflicts with blueoprint
0053 
0054 #-------------------------------------------------------------------------------                                 
0055 # Aggregation of names for the global directory
0056 # These are used to build the condensed summary at the beggining of the page
0057 original=[\
0058 ('Level 1 Trigger',['L1T', 'L1TEMU']),
0059 
0060 ('Pixel Detector',['Pixel', 'OfflinePV', 'Vertexing']),
0061 ('Silicon Strips',['SiStrip']),
0062 ('Tracking System',['Tracking', 'TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']),
0063 
0064 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
0065 ('Electrons and Photons',['Egamma','EgammaV']),
0066 
0067 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
0068 ('Castor Calorimeter', ['Castor']),
0069 ('Jet and Met',['JetMET']),
0070 
0071 ('Drift Tubes',['DT']),
0072 ('Cathode Strip Chambers', ['CSC']),
0073 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
0074 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
0075 
0076 ('B Tagging' , ['Btag']),
0077 
0078 ('Particle Flow', ['ParticleFlow']),
0079 
0080 ('Miscellanea: Simulation',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
0081 ('Miscellanea',['Info','MessageLogger','Physics'])]
0082 
0083 # designed for the Reconstruction
0084 reco_aggr=[\
0085 # Detectors
0086 ('Tracking System',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
0087 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
0088 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
0089 ('Drift Tubes',['DT']),
0090 ('Cathode Strip Chambers', ['CSC']),
0091 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
0092 
0093 # Actions
0094 ('Tracking',['Tracking']),
0095 
0096 # Objects
0097 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
0098 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
0099 
0100 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
0101 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
0102 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
0103 ('B Tagging' , ['Btag']),
0104 ('Tau' , ['RecoTauV']),
0105 ('Particle Flow', ['ParticleFlow']),
0106 
0107 # Other
0108 ('Castor Calorimeter', ['Castor']),
0109 ('Level 1 Trigger',['L1T', 'L1TEMU']),
0110 ('Miscellanea: Sim.',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
0111 ('Miscellanea',['Info','MessageLogger','Physics'])]
0112 
0113 # Designed for the HLT
0114 hlt_aggr=[\
0115 ('EGamma',['EgOffline','HLTEgammaValidation']),
0116 ('Muon',['Muon'',HLTMonMuon']),
0117 ('Tau',['TauRelVal','TauOffline','TauOnline']),
0118 ('JetMet',['JetMET','HLTJETMET']),
0119 ('Top',['Top']),
0120 ('Higgs',['Higgs']),
0121 ('HeavyFlavor',['HeavyFlavor']),
0122 ('SusyExo',['SusyExo']),
0123 ('Alca',['AlCaEcalPi0','EcalPhiSym','HcalIsoTrack']),
0124 ('Generic',['FourVector_Val','FourVector'])
0125 ]
0126 
0127 aggr_pairs_dict={"reco":reco_aggr,"HLT":hlt_aggr}
0128 
0129 
0130 # This is used to build the table for the twiki, can be different from AGGR_PAIRS in general!
0131 reco_aggr_twiki=[\
0132 # Detectors
0133 ('Tk',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
0134 ('Ecal',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
0135 ('Hcal',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
0136 ('DT',['DT']),
0137 ('CSC', ['CSC']),
0138 ('RPC',['RPC', 'RPCDigisV']),
0139 
0140 # Actions
0141 ('Tracking',['Tracking']),
0142 
0143 # Objects
0144 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
0145 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
0146 
0147 ('Muons',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
0148 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
0149 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
0150 ('BTag' , ['Btag']),
0151 ('Tau' , ['RecoTauV'])]
0152 
0153 # Designed for the HLT
0154 hlt_aggr_twiki=hlt_aggr
0155 
0156 aggr_pairs_twiki_dict={'reco':reco_aggr_twiki,'HLT':hlt_aggr_twiki}
0157 
0158 
0159 #-------------------------------------------------------------------------------
0160 # Blacklisting HLT 
0161 hlt_mc_pattern_blist_pairs=(\
0162         ("!(TTbar+|H130GGgluon+|PhotonJets+|WE+|ZEE+)", "Egamma@2,EgOffline@2,Ecal@2"),
0163         ("!(TTbar+|JpsiMM+|SingleMu+)", "Muon@2"),
0164         ("!(TTbar+)", "Jet@2,JET@2,Met@2,MET@2,Top@2"),
0165         ("!(TTbar+|ChargedTaus+|QQH135+|ZTT+)", "Tau@2"),
0166         ("!(TTbar+|H130GGgluon+|ChargedTaus+|QQH135+|Hbb+)", "Higgs@2"),
0167         ("!(TTbar+|JpsiMM+)", "HeavyFlavor@2"),
0168         ("!(TTbar+|LM1+|SGrav+|ZPrime+)", "SusyExo@2"))
0169 
0170 #Blacklisting RECO
0171 mc_pattern_blist_pairs=(\
0172         ("WE+|ZEE+|SingleGamma+|SingleElectron+",
0173             "Btag@1,CSC@1,DT@1,RPC@1,HCAL@1,JetMET@1,CaloTowersV@1,Hcal@1,"+\
0174             "Muons@1,MuonDTDigisV@1,MuonCSCDigisV@1,MuonDTHitsV@1,"+\
0175             "RPCDigisV@1,Castor@1,RecoTau@1,ParticleFlow@1,L1T@1"),
0176         ("WM+|ZMM+|JpsiMM+|SingleMu+",
0177             "Btag@1,JetMET@1,Castor@1,Egamma@1,Ecal@1,Hcal@1,CaloTowersV@1,RecoTau@1,ParticleFlow@1,L1T@1"),
0178         ("H130GGgluonfusion+","^[ABCDFHIJKLMNOPQRSTUVWXYZ]@1,Ecal@1"),
0179         ("RelValMinBias+","AlCaReco@1"),
0180         ("!(SingleGamma+|SingleElectron+)","Ecal@1"),
0181         ("!(Mu+|mu+|TTbar+|ZMM+|WM+|MM+)","RPC@1"),
0182         ("!(SingleMuPt100+|ZMM+)","DT@1"),
0183         ("!(QCD+|MinBias+|TTbar+)","Hcal@1,CaloTowersV@1,Castor@1"),
0184         ("!(QCD_Pt_80_120+|TTbar+)","Btag@1"),
0185         ("!(QCD_Pt_80_120+|MuPt1000+|ZEE+|SingleElectronPt10+|Gamma+|Wjet+|LM1_sfts+)",
0186             "Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
0187         ("!(QCD_Pt_80_120+|TTbar+|Wjet+|ChargedTaus+)","RecoTau@1"))
0188         
0189 mc_pattern_blist_pairs=()
0190 
0191 data_pattern_blist_pairs=(\
0192           ("!(mb20+|run20+)","Ecal@1,Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
0193           ("!(cos20+|mu20+|wzMu20+)","CSC@1,RPC@1,DT@1"),
0194           ("!(mb20+|jet20+|run20+)","JetMET@1,Hcal@1,Castor@1,ParticleFlow@1"),
0195           ("!(wzMu20+|mu20+|run20+)","Muon@1"),
0196           ("!(wzEG20+|electron20+|photon20+|run20+)","Egamma@1"),
0197           ("!(mu20+|wzMu20+|jet20+)","Btag@1"))
0198 data_pattern_blist_pairs=()
0199 
0200 ## colors for gauge
0201 from  matplotlib.colors import LinearSegmentedColormap
0202 gauge_cmap=LinearSegmentedColormap.from_list('rg',["r", "orange","y","lime"], N=256) 
0203 
0204 ## cms logo
0205 cms_logo_url = "https://cms-docdb.cern.ch/cgi-bin/PublicDocDB/RetrieveFile?docid=3045&amp;filename=CMSlogo_color_label_1024_May2014.png&amp;version=3"
0206 
0207