CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 #
6 #
7 # Danilo Piparo CERN - danilo.piparo@cern.ch
8 #
9 ################################################################################
10 
11 # States:
12 FAIL=-1
13 NULL=0
14 SUCCESS=1
15 NONE=-2
16 SKIPED=-3
17 #-------------------------------------------------------------------------------
18 #Error Codes
19 test_codes={"EMPTY":-101,
20  "2D":-102,
21  "DIFF_BIN":-103,
22  "DIFF_TYPES":-104,
23  "NO_HIST":-105,
24  "FEW_BINS":-105}
25 #-------------------------------------------------------------------------------
26 relmon_mainpage="https://cms-pdmv.cern.ch/relmon"
27 
28 #-------------------------------------------------------------------------------
29 
30 server="http://cmsweb.cern.ch" # <--- Check carefully!
31 base_url="/dqm/relval"
32 
33 url_encode_dict={"/":"%2F",
34  "+":"%2B",
35  "-":"%2D"}
36 
37 #-------------------------------------------------------------------------------
38 # Names displayed on the HTML pages
39 cat_names={FAIL:"Failing",
40  NULL:"Null",
41  SUCCESS:"Successful",
42  SKIPED: "Skipped"}
43 # Names used internally
44 cat_states={FAIL:-1,
45  NULL:0,
46  SUCCESS:1,
47  SKIPED:-3}
48 # Names used for the different classes of images to obtain the coloured border
49 cat_classes={FAIL:"fail",
50  NULL:"null",
51  SUCCESS:"succes",
52  SKIPED: "skipped"} # 1s to avoid conflicts with blueoprint
53 
54 #-------------------------------------------------------------------------------
55 # Aggregation of names for the global directory
56 # These are used to build the condensed summary at the beggining of the page
57 original=[\
58 ('Level 1 Trigger',['L1T', 'L1TEMU']),
59 
60 ('Pixel Detector',['Pixel', 'OfflinePV', 'Vertexing']),
61 ('Silicon Strips',['SiStrip']),
62 ('Tracking System',['Tracking', 'TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']),
63 
64 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
65 ('Electrons and Photons',['Egamma','EgammaV']),
66 
67 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
68 ('Castor Calorimeter', ['Castor']),
69 ('Jet and Met',['JetMET']),
70 
71 ('Drift Tubes',['DT']),
72 ('Cathode Strip Chambers', ['CSC']),
73 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
74 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
75 
76 ('B Tagging' , ['Btag']),
77 
78 ('Particle Flow', ['ParticleFlow']),
79 
80 ('Miscellanea: Simulation',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
81 ('Miscellanea',['Info','MessageLogger','Physics'])]
82 
83 # designed for the Reconstruction
84 reco_aggr=[\
85 # Detectors
86 ('Tracking System',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
87 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
88 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
89 ('Drift Tubes',['DT']),
90 ('Cathode Strip Chambers', ['CSC']),
91 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
92 
93 # Actions
94 ('Tracking',['Tracking']),
95 
96 # Objects
97 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
98 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
99 
100 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
101 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
102 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
103 ('B Tagging' , ['Btag']),
104 ('Tau' , ['RecoTauV']),
105 ('Particle Flow', ['ParticleFlow']),
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','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