CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
definitions.py
Go to the documentation of this file.
1 #################################################################################
2 # RelMon: a tool for automatic Release Comparison
3 # https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon
4 #
5 # $Author: anorkus $
6 # $Date: 2013/03/07 11:49:13 $
7 # $Revision: 1.3 $
8 #
9 #
10 # Danilo Piparo CERN - danilo.piparo@cern.ch
11 #
12 ################################################################################
13 
14 # States:
15 FAIL=-1
16 NULL=0
17 SUCCESS=1
18 NONE=-2
19 SKIPED=-3
20 #-------------------------------------------------------------------------------
21 #Error Codes
22 test_codes={"EMPTY":-101,
23  "2D":-102,
24  "DIFF_BIN":-103,
25  "DIFF_TYPES":-104,
26  "NO_HIST":-105,
27  "FEW_BINS":-105}
28 #-------------------------------------------------------------------------------
29 relmon_mainpage="https://cms-pdmv.cern.ch/relmon"
30 
31 #-------------------------------------------------------------------------------
32 
33 server="http://cmsweb.cern.ch" # <--- Check carefully!
34 base_url="/dqm/relval"
35 
36 url_encode_dict={"/":"%2F",
37  "+":"%2B",
38  "-":"%2D"}
39 
40 #-------------------------------------------------------------------------------
41 # Names displayed on the HTML pages
42 cat_names={FAIL:"Failing",
43  NULL:"Null",
44  SUCCESS:"Successful",
45  SKIPED: "Skiped"}
46 # Names used internally
47 cat_states={FAIL:-1,
48  NULL:0,
49  SUCCESS:1,
50  SKIPED:-3}
51 # Names used for the different classes of images to obtain the coloured border
52 cat_classes={FAIL:"fail",
53  NULL:"null",
54  SUCCESS:"succes",
55  SKIPED: "skiped"} # 1s to avoid conflicts with blueoprint
56 
57 #-------------------------------------------------------------------------------
58 # Aggregation of names for the global directory
59 # These are used to build the condensed summary at the beggining of the page
60 original=[\
61 ('Level 1 Trigger',['L1T', 'L1TEMU']),
62 
63 ('Pixel Detector',['Pixel', 'OfflinePV', 'Vertexing']),
64 ('Silicon Strips',['SiStrip']),
65 ('Tracking System',['Tracking', 'TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']),
66 
67 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
68 ('Electrons and Photons',['Egamma','EgammaV']),
69 
70 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
71 ('Castor Calorimeter', ['Castor']),
72 ('Jet and Met',['JetMET']),
73 
74 ('Drift Tubes',['DT']),
75 ('Cathode Strip Chambers', ['CSC']),
76 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
77 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
78 
79 ('B Tagging' , ['Btag']),
80 
81 ('Miscellanea: Simulation',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
82 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
83 
84 # designed for the Reconstruction
85 reco_aggr=[\
86 # Detectors
87 ('Tracking System',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
88 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
89 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
90 ('Drift Tubes',['DT']),
91 ('Cathode Strip Chambers', ['CSC']),
92 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
93 
94 # Actions
95 ('Tracking',['Tracking']),
96 
97 # Objects
98 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
99 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
100 
101 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
102 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
103 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
104 ('B Tagging' , ['Btag']),
105 ('Tau' , ['RecoTauV']),
106 
107 # Other
108 ('Castor Calorimeter', ['Castor']),
109 ('Level 1 Trigger',['L1T', 'L1TEMU']),
110 ('Miscellanea: Sim.',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
111 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
112 
113 # Designed for the HLT
114 hlt_aggr=[\
115 ('EGamma',['EgOffline','HLTEgammaValidation']),
116 ('Muon',['Muon'',HLTMonMuon']),
117 ('Tau',['TauRelVal','TauOffline','TauOnline']),
118 ('JetMet',['JetMET','HLTJETMET']),
119 ('Top',['Top']),
120 ('Higgs',['Higgs']),
121 ('HeavyFlavor',['HeavyFlavor']),
122 ('SusyExo',['SusyExo']),
123 ('Alca',['AlCaEcalPi0','EcalPhiSym','HcalIsoTrack']),
124 ('Generic',['FourVector_Val','FourVector'])
125 ]
126 
127 aggr_pairs_dict={"reco":reco_aggr,"HLT":hlt_aggr}
128 
129 
130 # This is used to build the table for the twiki, can be different from AGGR_PAIRS in general!
131 reco_aggr_twiki=[\
132 # Detectors
133 ('Tk',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
134 ('Ecal',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
135 ('Hcal',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
136 ('DT',['DT']),
137 ('CSC', ['CSC']),
138 ('RPC',['RPC', 'RPCDigisV']),
139 
140 # Actions
141 ('Tracking',['Tracking']),
142 
143 # Objects
144 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
145 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
146 
147 ('Muons',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
148 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
149 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
150 ('BTag' , ['Btag']),
151 ('Tau' , ['RecoTauV'])]
152 
153 # Designed for the HLT
154 hlt_aggr_twiki=hlt_aggr
155 
156 aggr_pairs_twiki_dict={'reco':reco_aggr_twiki,'HLT':hlt_aggr_twiki}
157 
158 
159 #-------------------------------------------------------------------------------
160 # Blacklisting HLT
161 hlt_mc_pattern_blist_pairs=(\
162  ("!(TTbar+|H130GGgluon+|PhotonJets+|WE+|ZEE+)", "Egamma@2,EgOffline@2,Ecal@2"),
163  ("!(TTbar+|JpsiMM+|SingleMu+)", "Muon@2"),
164  ("!(TTbar+)", "Jet@2,JET@2,Met@2,MET@2,Top@2"),
165  ("!(TTbar+|ChargedTaus+|QQH135+|ZTT+)", "Tau@2"),
166  ("!(TTbar+|H130GGgluon+|ChargedTaus+|QQH135+|Hbb+)", "Higgs@2"),
167  ("!(TTbar+|JpsiMM+)", "HeavyFlavor@2"),
168  ("!(TTbar+|LM1+|SGrav+|ZPrime+)", "SusyExo@2"))
169 
170 #Blacklisting RECO
171 mc_pattern_blist_pairs=(\
172  ("WE+|ZEE+|SingleGamma+|SingleElectron+",
173  "Btag@1,CSC@1,DT@1,RPC@1,HCAL@1,JetMET@1,CaloTowersV@1,Hcal@1,"+\
174  "Muons@1,MuonDTDigisV@1,MuonCSCDigisV@1,MuonDTHitsV@1,"+\
175  "RPCDigisV@1,Castor@1,RecoTau@1,ParticleFlow@1,L1T@1"),
176  ("WM+|ZMM+|JpsiMM+|SingleMu+",
177  "Btag@1,JetMET@1,Castor@1,Egamma@1,Ecal@1,Hcal@1,CaloTowersV@1,RecoTau@1,ParticleFlow@1,L1T@1"),
178  ("H130GGgluonfusion+","^[ABCDFHIJKLMNOPQRSTUVWXYZ]@1,Ecal@1"),
179  ("RelValMinBias+","AlCaReco@1"),
180  ("!(SingleGamma+|SingleElectron+)","Ecal@1"),
181  ("!(Mu+|mu+|TTbar+|ZMM+|WM+|MM+)","RPC@1"),
182  ("!(SingleMuPt100+|ZMM+)","DT@1"),
183  ("!(QCD+|MinBias+|TTbar+)","Hcal@1,CaloTowersV@1,Castor@1"),
184  ("!(QCD_Pt_80_120+|TTbar+)","Btag@1"),
185  ("!(QCD_Pt_80_120+|MuPt1000+|ZEE+|SingleElectronPt10+|Gamma+|Wjet+|LM1_sfts+)",
186  "Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
187  ("!(QCD_Pt_80_120+|TTbar+|Wjet+|ChargedTaus+)","RecoTau@1"))
188 
189 mc_pattern_blist_pairs=()
190 
191 data_pattern_blist_pairs=(\
192  ("!(mb20+|run20+)","Ecal@1,Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
193  ("!(cos20+|mu20+|wzMu20+)","CSC@1,RPC@1,DT@1"),
194  ("!(mb20+|jet20+|run20+)","JetMET@1,Hcal@1,Castor@1,ParticleFlow@1"),
195  ("!(wzMu20+|mu20+|run20+)","Muon@1"),
196  ("!(wzEG20+|electron20+|photon20+|run20+)","Egamma@1"),
197  ("!(mu20+|wzMu20+|jet20+)","Btag@1"))
198 data_pattern_blist_pairs=()
199