CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
autoSkim.py
Go to the documentation of this file.
1 ## autoSkim 2012 (7E33 HLT menu) --> starting from Run2012B, ...
2 autoSkim = {
3  'BJetPlusX' : 'LogError+LogErrorMonitor',
4  'BTag' : 'LogError+LogErrorMonitor+HighLumi',
5  'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
6  'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
7  'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
8  'DoubleMu' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
9  'DoublePhoton' : 'LogError+LogErrorMonitor',
10  'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
11  'ElectronHad' : 'LogError+LogErrorMonitor',
12  'HTMHT' : 'LogError+LogErrorMonitor+HighMET',
13  'HcalNZS' : 'LogError+LogErrorMonitor',
14  'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
15  'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
16  'MET' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
17  'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
18  'MuEG' : 'LogError+LogErrorMonitor+HZZ',
19  'MuHad' : 'LogError+LogErrorMonitor',
20  'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
21  'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
22  'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
23  'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
24  'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
25  'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
26  'SinglePhoton' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
27  'Tau' : 'LogError+LogErrorMonitor',
28  'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
29  }
30 
31 ## autoSkim 2012 (5E33 HLT menu) --> only Run2012A
32 """
33 autoSkim = {
34  'BTag' : 'LogError+LogErrorMonitor+HighLumi',
35  'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
36  'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
37  'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
38  'DoubleMu' : 'LogError+LogErrorMonitor+HZZ+Zmmg+EXOHSCP+HighLumi',
39  'ElectronHad' : 'LogError+LogErrorMonitor+EXOHSCP',
40  'HcalNZS' : 'LogError+LogErrorMonitor',
41  'HT' : 'LogError+LogErrorMonitor+EXOHSCP+HighMET',
42  'Jet' : 'LogError+LogErrorMonitor+HighLumi',
43  'MET' : 'LogError+LogErrorMonitor+ZHbb+EXOHSCP+HighMET',
44  'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
45  'MuEG' : 'LogError+LogErrorMonitor+HZZ',
46  'MuHad' : 'LogError+LogErrorMonitor',
47  'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
48  'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
49  'Photon' : 'LogError+LogErrorMonitor+HighMET+EXOMonoPhoton',
50  'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
51  'SingleElectron' : 'LogError+LogErrorMonitor+HighMET+DiTau+WElectron',
52  'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+MuTau',
53  'Tau' : 'LogError+LogErrorMonitor',
54  'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
55  }
56 """
57 
58 # IMPORTANT NOTE for Run2012A :
59 # TOPElePlusJets should go in ElectronHad
60 # TOPMuPlusJets should go to MuHad
61 # However, the configurations in the release, used for prompt skimming
62 # starting from Run2012B, are not good for Run2012A (since trigger names changed).
63 # So the TOP skims above have been removed from the Run2012A skim matrix
64 # and cannot be produced at the moment for this run period
65 
66 
67 ## autoSkim 2013 (pPb HLT menu) --> only pPb run (Jan-Feb)
68 """
69 autoSkim = {
70  'PAMuon' : 'PsiMuMuPA+UpsMuMuPA+ZMuMuPA+HighPtPA',
71  'PAHighPt' : 'HighPtPA+FlowCorrPA',
72  }
73 """
74 
75 ########################################################
76 ### 53X re-processing in 2013: pp data collected in 2012
77 ### (Created on Jan 21th, 2013 by Francesco Santanastasio)
78 ########################################################
79 
80 ## Run2012A (53X reprocessing)
81 """
82 autoSkim = {
83  'BTag' : 'LogError+LogErrorMonitor+HighLumi',
84  'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
85  'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
86  'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
87  'DoubleMu' : 'LogError+LogErrorMonitor+HZZ+Zmmg+EXOHSCP+HighLumi',
88  'ElectronHad' : 'LogError+LogErrorMonitor+EXOHSCP',
89  'HcalNZS' : 'LogError+LogErrorMonitor',
90  'HT' : 'LogError+LogErrorMonitor+EXOHSCP+HighMET',
91  'Jet' : 'LogError+LogErrorMonitor+HighLumi',
92  'MET' : 'LogError+LogErrorMonitor+ZHbb+EXOHSCP+HighMET',
93  'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
94  'MuEG' : 'LogError+LogErrorMonitor+HZZ',
95  'MuHad' : 'LogError+LogErrorMonitor',
96  'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
97  'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
98  'Photon' : 'LogError+LogErrorMonitor+HighMET+EXOMonoPhoton',
99  'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
100  'SingleElectron' : 'LogError+LogErrorMonitor+HighMET+DiTau+WElectron',
101  'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+MuTau',
102  'Tau' : 'LogError+LogErrorMonitor',
103  'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
104  }
105 """
106 
107 ## Run2012B and Run2012C (53X reprocessing)
108 """
109 autoSkim = {
110  'BJetPlusX' : 'LogError+LogErrorMonitor',
111  'BTag' : 'LogError+LogErrorMonitor+HighLumi',
112  'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
113  'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
114  'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
115  'DoubleMuParked' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
116  'DoublePhoton' : 'LogError+LogErrorMonitor',
117  'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
118  'ElectronHad' : 'LogError+LogErrorMonitor',
119  'HTMHTParked' : 'LogError+LogErrorMonitor+HighMET',
120  'HcalNZS' : 'LogError+LogErrorMonitor',
121  'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
122  'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
123  'MET' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
124  'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
125  'MuEG' : 'LogError+LogErrorMonitor+HZZ',
126  'MuHad' : 'LogError+LogErrorMonitor',
127  'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
128  'MuOniaParked' : 'LogError+LogErrorMonitor',
129  'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
130  'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
131  'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
132  'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
133  'SinglePhoton' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
134  'TauParked' : 'LogError+LogErrorMonitor',
135  'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
136  'VBF1Parked' : 'LogError+LogErrorMonitor',
137  }
138 """
139 
140 # --> NOTE for Run2012B,C: we have remove this
141 # 'MultiJet1Parked' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
142 # since the re-reco already happened at the end of 2012.
143 # If those skims can run with RAW and AOD in input we could produce them later in 2013.
144 
145 
146 ## Run2012D (53X reprocessing)
147 """
148 autoSkim = {
149  'BJetPlusX' : 'LogError+LogErrorMonitor',
150  'BTag' : 'LogError+LogErrorMonitor+HighLumi',
151  'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
152  'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
153  'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
154  'DoubleMuParked' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
155  'DoublePhoton' : 'LogError+LogErrorMonitor',
156  'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
157  'ElectronHad' : 'LogError+LogErrorMonitor',
158  'HTMHTParked' : 'LogError+LogErrorMonitor+HighMET',
159  'HcalNZS' : 'LogError+LogErrorMonitor',
160  'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
161  'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
162  'METParked' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
163  'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
164  'MuEG' : 'LogError+LogErrorMonitor+HZZ',
165  'MuHad' : 'LogError+LogErrorMonitor',
166  'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
167  'MuOniaParked' : 'LogError+LogErrorMonitor',
168  'MultiJet1Parked' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
169  'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
170  'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
171  'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
172  'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
173  'SinglePhotonParked' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
174  'TauParked' : 'LogError+LogErrorMonitor',
175  'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
176  'VBF1Parked' : 'LogError+LogErrorMonitor',
177  'HLTPhysicsParked' : 'LogError+LogErrorMonitor',
178  'ZeroBiasParked' : 'LogError+LogErrorMonitor',
179  }
180 """
181 
182 ## autoSkim 2011
183 """
184  'MinimumBias':'MuonTrack+BeamBkg+ValSkim+LogError+HSCPSD',
185  'ZeroBias':'LogError',
186  'Commissioning':'DT+LogError',
187  'Cosmics':'CosmicSP+LogError',
188  'Mu' : 'WMu+ZMu+HighMET+LogError',
189  'EG':'WElectron+ZElectron+HighMET+LogError',
190  'Electron':'WElectron+ZElectron+HighMET+LogError',
191  'Photon':'WElectron+ZElectron+HighMET+LogError+DiPhoton+EXOHPTE',
192  'JetMETTau':'LogError+Tau',
193  'JetMET':'HighMET+LogError',
194  'BTau':'LogError+Tau',
195  'Jet':'HighMET+LogError',
196  'METFwd':'HighMET+LogError',
197  'SingleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+DiTau+EXOHSCP',
198  'DoubleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+EXOHSCP',
199  'SingleElectron' : 'WElectron+HighMET+LogError+HWW+HZZ+Tau',
200  'DoubleElectron' : 'ZElectron+LogError+HWW+HZZ',
201  'MuEG' : 'LogError+HWW+HZZ',
202  'METBTag': 'HighMET+LogError+EXOHSCP',
203  'BTag': 'LogError+EXOHSCP',
204  'MET': 'HighMET+LogError+EXOHSCP',
205 
206  'HT': 'HighMET+LogError',
207 
208  'Tau': 'LogError',
209  'PhotonHad': 'LogError',
210  'MuHad': 'LogError',
211  'MultiJet': 'LogError',
212  'MuOnia': 'LogError',
213  'ElectronHad': 'LogError',
214  'TauPlusX': 'LogError',
215 """
216 
217 ## autoSkim 2011 used for legacy 53x reRECO
218 # removed from original: Tau, HWW, WMu, DiPhoton, EXOHPTE, MuonTrack+BeamBkg+ValSkim+HSCPSD, DT
219 """
220  'MinimumBias':'LogError',
221  'ZeroBias':'LogError',
222  'Commissioning':'LogError',
223  'Cosmics':'CosmicSP+LogError',
224  'Mu' : 'ZMu+HighMET+LogError',
225  'EG':'WElectron+ZElectron+HighMET+LogError',
226  'Electron':'WElectron+ZElectron+HighMET+LogError',
227  'Photon':'WElectron+ZElectron+HighMET+LogError',
228  'JetMETTau':'LogError',
229  'JetMET':'HighMET+LogError',
230  'BTau':'LogError',
231  'Jet':'HighMET+LogError',
232  'METFwd':'HighMET+LogError',
233  'SingleMu' : 'ZMu+HighMET+LogError+HZZ+DiTau+EXOHSCP',
234  'DoubleMu' : 'ZMu+HighMET+LogError+HZZ+EXOHSCP',
235  'SingleElectron' : 'WElectron+HighMET+LogError+HZZ',
236  'DoubleElectron' : 'ZElectron+LogError+HZZ',
237  'MuEG' : 'LogError+HZZ',
238  'METBTag': 'HighMET+LogError+EXOHSCP',
239  'BTag': 'LogError+EXOHSCP',
240  'MET': 'HighMET+LogError+EXOHSCP',
241 
242  'HT': 'HighMET+LogError',
243 
244  'Tau': 'LogError',
245  'PhotonHad': 'LogError',
246  'MuHad': 'LogError',
247  'MultiJet': 'LogError',
248  'MuOnia': 'LogError',
249  'ElectronHad': 'LogError',
250  'TauPlusX': 'LogError',
251 """
252 
253 autoSkimPDWG = {
254 
255  }
256 
257 autoSkimDPG = {
258 
259  }
260 
261 def mergeMapping(map1,map2):
262  merged={}
263  for k in list(set(map1.keys()+map2.keys())):
264  items=[]
265  if k in map1:
266  items.append(map1[k])
267  if k in map2:
268  items.append(map2[k])
269  merged[k]='+'.join(items)
270  return merged
271 
272 #autoSkim = mergeMapping(autoSkimPDWG,autoSkimDPG)
273 #print autoSkim
def mergeMapping
Definition: autoSkim.py:261
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
void set(const std::string &name, int value)
set the flag, with a run-time name