test
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 #
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: "Skiped"}
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: "skiped"} # 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 ('Miscellanea: Simulation',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
79 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
80 
81 # designed for the Reconstruction
82 reco_aggr=[\
83 # Detectors
84 ('Tracking System',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
85 ('Ecal Calorimeter',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
86 ('Hcal Calorimeter',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
87 ('Drift Tubes',['DT']),
88 ('Cathode Strip Chambers', ['CSC']),
89 ('Resistive Plate Chambers',['RPC', 'RPCDigisV']),
90 
91 # Actions
92 ('Tracking',['Tracking']),
93 
94 # Objects
95 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
96 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
97 
98 ('Muon Objects',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
99 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
100 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
101 ('B Tagging' , ['Btag']),
102 ('Tau' , ['RecoTauV']),
103 
104 # Other
105 ('Castor Calorimeter', ['Castor']),
106 ('Level 1 Trigger',['L1T', 'L1TEMU']),
107 ('Miscellanea: Sim.',['Generator','GlobalDigisV','GlobalHitsV','GlobalRecHitsV','MixingV','NoiseRatesV']),
108 ('Miscellanea',['Info','MessageLogger','ParticleFlow','Physics'])]
109 
110 # Designed for the HLT
111 hlt_aggr=[\
112 ('EGamma',['EgOffline','HLTEgammaValidation']),
113 ('Muon',['Muon'',HLTMonMuon']),
114 ('Tau',['TauRelVal','TauOffline','TauOnline']),
115 ('JetMet',['JetMET','HLTJETMET']),
116 ('Top',['Top']),
117 ('Higgs',['Higgs']),
118 ('HeavyFlavor',['HeavyFlavor']),
119 ('SusyExo',['SusyExo']),
120 ('Alca',['AlCaEcalPi0','EcalPhiSym','HcalIsoTrack']),
121 ('Generic',['FourVector_Val','FourVector'])
122 ]
123 
124 aggr_pairs_dict={"reco":reco_aggr,"HLT":hlt_aggr}
125 
126 
127 # This is used to build the table for the twiki, can be different from AGGR_PAIRS in general!
128 reco_aggr_twiki=[\
129 # Detectors
130 ('Tk',['TrackerDigisV', 'TrackerHitsV', 'TrackerRecHitsV']+['Pixel']+['SiStrip']),
131 ('Ecal',['EcalBarrel', 'EcalEndcap', 'EcalPreshower', 'EcalClusterV', 'EcalDigisV', 'EcalHitsV', 'EcalRecHitsV']),
132 ('Hcal',['Hcal', 'HcalHitsV', 'HcalRecHitsV', 'CaloTowersV']),
133 ('DT',['DT']),
134 ('CSC', ['CSC']),
135 ('RPC',['RPC', 'RPCDigisV']),
136 
137 # Actions
138 ('Tracking',['Tracking']),
139 
140 # Objects
141 ('Electrons',['Egamma/Electrons','EgammaV/ElectronMcFakeValidator','EgammaV/ElectronMcSignalValidator']),
142 ('Photons',['Egamma/PhotonAnalyzer','Egamma/PiZeroAnalyzer','EgammaV/PhotonValidator','EgammaV/ConversionValidator']),
143 
144 ('Muons',['Muons', 'MuonCSCDigisV', 'MuonDTDigisV' ,'MuonDTHitsV']),
145 ('Jet',['JetMET/Jet','JetMET/RecoJetsV','ParticleFlow/PFJetValidation']),
146 ('MET',['JetMET/MET','JetMET/METv','ParticleFlow/PFMETValidation']),
147 ('BTag' , ['Btag']),
148 ('Tau' , ['RecoTauV'])]
149 
150 # Designed for the HLT
151 hlt_aggr_twiki=hlt_aggr
152 
153 aggr_pairs_twiki_dict={'reco':reco_aggr_twiki,'HLT':hlt_aggr_twiki}
154 
155 
156 #-------------------------------------------------------------------------------
157 # Blacklisting HLT
158 hlt_mc_pattern_blist_pairs=(\
159  ("!(TTbar+|H130GGgluon+|PhotonJets+|WE+|ZEE+)", "Egamma@2,EgOffline@2,Ecal@2"),
160  ("!(TTbar+|JpsiMM+|SingleMu+)", "Muon@2"),
161  ("!(TTbar+)", "Jet@2,JET@2,Met@2,MET@2,Top@2"),
162  ("!(TTbar+|ChargedTaus+|QQH135+|ZTT+)", "Tau@2"),
163  ("!(TTbar+|H130GGgluon+|ChargedTaus+|QQH135+|Hbb+)", "Higgs@2"),
164  ("!(TTbar+|JpsiMM+)", "HeavyFlavor@2"),
165  ("!(TTbar+|LM1+|SGrav+|ZPrime+)", "SusyExo@2"))
166 
167 #Blacklisting RECO
168 mc_pattern_blist_pairs=(\
169  ("WE+|ZEE+|SingleGamma+|SingleElectron+",
170  "Btag@1,CSC@1,DT@1,RPC@1,HCAL@1,JetMET@1,CaloTowersV@1,Hcal@1,"+\
171  "Muons@1,MuonDTDigisV@1,MuonCSCDigisV@1,MuonDTHitsV@1,"+\
172  "RPCDigisV@1,Castor@1,RecoTau@1,ParticleFlow@1,L1T@1"),
173  ("WM+|ZMM+|JpsiMM+|SingleMu+",
174  "Btag@1,JetMET@1,Castor@1,Egamma@1,Ecal@1,Hcal@1,CaloTowersV@1,RecoTau@1,ParticleFlow@1,L1T@1"),
175  ("H130GGgluonfusion+","^[ABCDFHIJKLMNOPQRSTUVWXYZ]@1,Ecal@1"),
176  ("RelValMinBias+","AlCaReco@1"),
177  ("!(SingleGamma+|SingleElectron+)","Ecal@1"),
178  ("!(Mu+|mu+|TTbar+|ZMM+|WM+|MM+)","RPC@1"),
179  ("!(SingleMuPt100+|ZMM+)","DT@1"),
180  ("!(QCD+|MinBias+|TTbar+)","Hcal@1,CaloTowersV@1,Castor@1"),
181  ("!(QCD_Pt_80_120+|TTbar+)","Btag@1"),
182  ("!(QCD_Pt_80_120+|MuPt1000+|ZEE+|SingleElectronPt10+|Gamma+|Wjet+|LM1_sfts+)",
183  "Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
184  ("!(QCD_Pt_80_120+|TTbar+|Wjet+|ChargedTaus+)","RecoTau@1"))
185 
186 mc_pattern_blist_pairs=()
187 
188 data_pattern_blist_pairs=(\
189  ("!(mb20+|run20+)","Ecal@1,Track@1,Pixel@1,OfflinePV@1,Vertexing@1,SiStrip@1"),
190  ("!(cos20+|mu20+|wzMu20+)","CSC@1,RPC@1,DT@1"),
191  ("!(mb20+|jet20+|run20+)","JetMET@1,Hcal@1,Castor@1,ParticleFlow@1"),
192  ("!(wzMu20+|mu20+|run20+)","Muon@1"),
193  ("!(wzEG20+|electron20+|photon20+|run20+)","Egamma@1"),
194  ("!(mu20+|wzMu20+|jet20+)","Btag@1"))
195 data_pattern_blist_pairs=()
196