CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/Utilities/RelMon/python/definitions.py

Go to the documentation of this file.
00001 #################################################################################
00002 # RelMon: a tool for automatic Release Comparison                              
00003 # https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon
00004 #
00005 # $Author: anorkus $
00006 # $Date: 2013/03/07 11:49:13 $
00007 # $Revision: 1.3 $
00008 #
00009 #                                                                              
00010 # Danilo Piparo CERN - danilo.piparo@cern.ch                                   
00011 #                                                                              
00012 ################################################################################
00013 
00014 # States:
00015 FAIL=-1
00016 NULL=0
00017 SUCCESS=1
00018 NONE=-2
00019 SKIPED=-3
00020 #-------------------------------------------------------------------------------  
00021 #Error Codes
00022 test_codes={"EMPTY":-101,
00023             "2D":-102,
00024             "DIFF_BIN":-103,
00025             "DIFF_TYPES":-104,
00026             "NO_HIST":-105,
00027             "FEW_BINS":-105}
00028 #-------------------------------------------------------------------------------  
00029 relmon_mainpage="https://cms-pdmv.cern.ch/relmon"
00030 
00031 #-------------------------------------------------------------------------------  
00032 
00033 server="http://cmsweb.cern.ch" # <--- Check carefully!
00034 base_url="/dqm/relval"
00035 
00036 url_encode_dict={"/":"%2F",
00037                  "+":"%2B",
00038                  "-":"%2D"}
00039                  
00040 #-------------------------------------------------------------------------------                   
00041 # Names displayed on the HTML pages  
00042 cat_names={FAIL:"Failing",
00043             NULL:"Null",
00044             SUCCESS:"Successful",
00045             SKIPED: "Skiped"}
00046 # Names used internally
00047 cat_states={FAIL:-1,
00048             NULL:0,
00049             SUCCESS:1,
00050             SKIPED:-3}
00051 # Names used for the different classes of images to obtain the coloured border
00052 cat_classes={FAIL:"fail",
00053              NULL:"null",
00054              SUCCESS:"succes",
00055              SKIPED: "skiped"}     # 1s to avoid conflicts with blueoprint
00056 
00057 #-------------------------------------------------------------------------------                                 
00058 # Aggregation of names for the global directory
00059 # These are used to build the condensed summary at the beggining of the page
00060 original=[\
00061 ('Level 1 Trigger',['L1T', 'L1TEMU']),
00062 
00063 ('Pixel Detector',['Pixel', 'OfflinePV', 'Vertexing']),
00064 ('Silicon Strips',['SiStrip']),
00065 ('Tracking System',['Tracking', 'TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']),
00066 
00067 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
00068 ('Electrons and Photons',['Egamma','EgammaV']),
00069 
00070 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
00071 ('Castor Calorimeter', ['Castor']),
00072 ('Jet and Met',['JetMET']),
00073 
00074 ('Drift Tubes',['DT']),
00075 ('Cathode Strip Chambers', ['CSC']),
00076 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
00077 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
00078 
00079 ('B Tagging' , ['Btag']),
00080 
00081 ('Miscellanea: Simulation',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
00082 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
00083 
00084 # designed for the Reconstruction
00085 reco_aggr=[\
00086 # Detectors
00087 ('Tracking System',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
00088 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
00089 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
00090 ('Drift Tubes',['DT']),
00091 ('Cathode Strip Chambers', ['CSC']),
00092 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
00093 
00094 # Actions
00095 ('Tracking',['Tracking']),
00096 
00097 # Objects
00098 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
00099 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
00100 
00101 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
00102 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
00103 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
00104 ('B Tagging' , ['Btag']),
00105 ('Tau' , ['RecoTauV']),
00106 
00107 # Other
00108 ('Castor Calorimeter', ['Castor']),
00109 ('Level 1 Trigger',['L1T', 'L1TEMU']),
00110 ('Miscellanea: Sim.',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
00111 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
00112 
00113 # Designed for the HLT
00114 hlt_aggr=[\
00115 ('EGamma',['EgOffline','HLTEgammaValidation']),
00116 ('Muon',['Muon'',HLTMonMuon']),
00117 ('Tau',['TauRelVal','TauOffline','TauOnline']),
00118 ('JetMet',['JetMET','HLTJETMET']),
00119 ('Top',['Top']),
00120 ('Higgs',['Higgs']),
00121 ('HeavyFlavor',['HeavyFlavor']),
00122 ('SusyExo',['SusyExo']),
00123 ('Alca',['AlCaEcalPi0','EcalPhiSym','HcalIsoTrack']),
00124 ('Generic',['FourVector_Val','FourVector'])
00125 ]
00126 
00127 aggr_pairs_dict={"reco":reco_aggr,"HLT":hlt_aggr}
00128 
00129 
00130 # This is used to build the table for the twiki, can be different from AGGR_PAIRS in general!
00131 reco_aggr_twiki=[\
00132 # Detectors
00133 ('Tk',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
00134 ('Ecal',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
00135 ('Hcal',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
00136 ('DT',['DT']),
00137 ('CSC', ['CSC']),
00138 ('RPC',['RPC', 'RPCDigisV']),
00139 
00140 # Actions
00141 ('Tracking',['Tracking']),
00142 
00143 # Objects
00144 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
00145 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
00146 
00147 ('Muons',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
00148 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
00149 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
00150 ('BTag' , ['Btag']),
00151 ('Tau' , ['RecoTauV'])]
00152 
00153 # Designed for the HLT
00154 hlt_aggr_twiki=hlt_aggr
00155 
00156 aggr_pairs_twiki_dict={'reco':reco_aggr_twiki,'HLT':hlt_aggr_twiki}
00157 
00158 
00159 #-------------------------------------------------------------------------------
00160 # Blacklisting HLT 
00161 hlt_mc_pattern_blist_pairs=(\
00162         ("!(TTbar+|H130GGgluon+|PhotonJets+|WE+|ZEE+)", "Egamma@2,EgOffline@2,Ecal@2"),
00163         ("!(TTbar+|JpsiMM+|SingleMu+)", "Muon@2"),
00164         ("!(TTbar+)", "Jet@2,JET@2,Met@2,MET@2,Top@2"),
00165         ("!(TTbar+|ChargedTaus+|QQH135+|ZTT+)", "Tau@2"),
00166         ("!(TTbar+|H130GGgluon+|ChargedTaus+|QQH135+|Hbb+)", "Higgs@2"),
00167         ("!(TTbar+|JpsiMM+)", "HeavyFlavor@2"),
00168         ("!(TTbar+|LM1+|SGrav+|ZPrime+)", "SusyExo@2"))
00169 
00170 #Blacklisting RECO
00171 mc_pattern_blist_pairs=(\
00172         ("WE+|ZEE+|SingleGamma+|SingleElectron+",
00173             "Btag@1,CSC@1,DT@1,RPC@1,HCAL@1,JetMET@1,CaloTowersV@1,Hcal@1,"+\
00174             "Muons@1,MuonDTDigisV@1,MuonCSCDigisV@1,MuonDTHitsV@1,"+\
00175             "RPCDigisV@1,Castor@1,RecoTau@1,ParticleFlow@1,L1T@1"),
00176         ("WM+|ZMM+|JpsiMM+|SingleMu+",
00177             "Btag@1,JetMET@1,Castor@1,Egamma@1,Ecal@1,Hcal@1,CaloTowersV@1,RecoTau@1,ParticleFlow@1,L1T@1"),
00178         ("H130GGgluonfusion+","^[ABCDFHIJKLMNOPQRSTUVWXYZ]@1,Ecal@1"),
00179         ("RelValMinBias+","AlCaReco@1"),
00180         ("!(SingleGamma+|SingleElectron+)","Ecal@1"),
00181         ("!(Mu+|mu+|TTbar+|ZMM+|WM+|MM+)","RPC@1"),
00182         ("!(SingleMuPt100+|ZMM+)","DT@1"),
00183         ("!(QCD+|MinBias+|TTbar+)","Hcal@1,CaloTowersV@1,Castor@1"),
00184         ("!(QCD_Pt_80_120+|TTbar+)","Btag@1"),
00185         ("!(QCD_Pt_80_120+|MuPt1000+|ZEE+|SingleElectronPt10+|Gamma+|Wjet+|LM1_sfts+)",
00186             "Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
00187         ("!(QCD_Pt_80_120+|TTbar+|Wjet+|ChargedTaus+)","RecoTau@1"))
00188         
00189 mc_pattern_blist_pairs=()
00190 
00191 data_pattern_blist_pairs=(\
00192           ("!(mb20+|run20+)","Ecal@1,Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
00193           ("!(cos20+|mu20+|wzMu20+)","CSC@1,RPC@1,DT@1"),
00194           ("!(mb20+|jet20+|run20+)","JetMET@1,Hcal@1,Castor@1,ParticleFlow@1"),
00195           ("!(wzMu20+|mu20+|run20+)","Muon@1"),
00196           ("!(wzEG20+|electron20+|photon20+|run20+)","Egamma@1"),
00197           ("!(mu20+|wzMu20+|jet20+)","Btag@1"))
00198 data_pattern_blist_pairs=()
00199