CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HILowLumiHLTOfflineSource_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4  ret=cms.VPSet()
5  partialPathName = "HLT_AK4CaloJet30_v"
6  hltHICaloJet30 = cms.PSet(
7  triggerSelection = cms.string(partialPathName+"*"),
8  handlerType = cms.string("FromHLT"),
9  partialPathName = cms.string(partialPathName),
10  partialFilterName = cms.string("hltSingleAK4CaloJet"),
11  dqmhistolabel = cms.string("hltHICaloJet30"),
12  mainDQMDirname = cms.untracked.string(dirname),
13  singleObjectsPreselection = cms.string("1==1"),
14  singleObjectDrawables = cms.VPSet(
15  cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
16  cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5), max = cms.double(5)),
17  cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
18  ),
19  combinedObjectSelection = cms.string("1==1"),
20  combinedObjectSortCriteria = cms.string("at(0).pt"),
21  combinedObjectDimension = cms.int32(1),
22  combinedObjectDrawables = cms.VPSet()
23  )
24  ret.append(hltHICaloJet30)
25 
26  hltHICaloJet40 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet40_v"),
27  triggerSelection = cms.string("HLT_AK4CaloJet40_v*"),
28  dqmhistolabel = cms.string("hltHICaloJet40")
29  )
30  ret.append(hltHICaloJet40)
31 
32  hltHICaloJet50 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet50_v"),
33  triggerSelection = cms.string("HLT_AK4CaloJet50_v*"),
34  dqmhistolabel = cms.string("hltHICaloJet50")
35  )
36  ret.append(hltHICaloJet50)
37 
38  hltHICaloJet80 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet80_v"),
39  triggerSelection = cms.string("HLT_AK4CaloJet80_v*"),
40  dqmhistolabel = cms.string("hltHICaloJet80")
41  )
42  ret.append(hltHICaloJet80)
43 
44  hltHICaloJet100 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet100_v"),
45  triggerSelection = cms.string("HLT_AK4CaloJet100_v*"),
46  dqmhistolabel = cms.string("hltHICaloJet100")
47  )
48  ret.append(hltHICaloJet100)
49 
50  hltHICaloJet30ForEndOfFill = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet30ForEndOfFill_v"),
51  triggerSelection = cms.string("HLT_AK4CaloJet30ForEndOfFill_v*"),
52  dqmhistolabel = cms.string("hltHICaloJet30ForEndOfFill")
53  )
54  ret.append(hltHICaloJet30ForEndOfFill)
55 
56  hltHICaloJet40ForEndOfFill = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet40ForEndOfFill_v"),
57  triggerSelection = cms.string("HLT_AK4CaloJet40ForEndOfFill_v*"),
58  dqmhistolabel = cms.string("hltHICaloJet40ForEndOfFill")
59  )
60  ret.append(hltHICaloJet40ForEndOfFill)
61 
62  hltHICaloJet50ForEndOfFill = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet50ForEndOfFill_v"),
63  triggerSelection = cms.string("HLT_AK4CaloJet50ForEndOfFill_v*"),
64  dqmhistolabel = cms.string("hltHICaloJet50ForEndOfFill")
65  )
66  ret.append(hltHICaloJet50ForEndOfFill)
67 
68 
69  hltHIPFJet30 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4PFJet30_v"),
70  triggerSelection = cms.string("HLT_AK4PFJet30_v*"),
71  dqmhistolabel = cms.string("hltHIPFJet30"),
72  partialFilterName = cms.string("hltSingleAK4PFJet")
73  )
74  ret.append(hltHIPFJet30)
75 
76  hltHIPFJet50 = hltHIPFJet30.clone(partialPathName = cms.string("HLT_AK4PFJet50_v"),
77  triggerSelection = cms.string("HLT_AK4PFJet50_v*"),
78  dqmhistolabel = cms.string("hltHIPFJet50")
79  )
80  ret.append(hltHIPFJet50)
81 
82  hltHIPFJet80 = hltHIPFJet30.clone(partialPathName = cms.string("HLT_AK4PFJet80_v"),
83  triggerSelection = cms.string("HLT_AK4PFJet80_v*"),
84  dqmhistolabel = cms.string("hltHIPFJet80")
85  )
86  ret.append(hltHIPFJet80)
87 
88  hltHIPFJet100 = hltHIPFJet30.clone(partialPathName = cms.string("HLT_AK4PFJet100_v"),
89  triggerSelection = cms.string("HLT_AK4PFJet100_v*"),
90  dqmhistolabel = cms.string("hltHIPFJet100")
91  )
92  ret.append(hltHIPFJet100)
93 
94  hltHIPFJet30ForEndOfFill = hltHIPFJet30.clone(partialPathName = cms.string("HLT_AK4PFJet30ForEndOfFill_v"),
95  triggerSelection = cms.string("HLT_AK4PFJet30ForEndOfFill_v*"),
96  dqmhistolabel = cms.string("hltHIPFJet30ForEndOfFill")
97  )
98  ret.append(hltHIPFJet30ForEndOfFill)
99 
100  hltHIPFJet50ForEndOfFill = hltHIPFJet30.clone(partialPathName = cms.string("HLT_AK4PFJet50ForEndOfFill_v"),
101  triggerSelection = cms.string("HLT_AK4PFJet50ForEndOfFill_v*"),
102  dqmhistolabel = cms.string("hltHIPFJet50ForEndOfFill")
103  )
104  ret.append(hltHIPFJet50ForEndOfFill)
105 
106  hltHISinglePhoton10 = hltHICaloJet30.clone(partialPathName = cms.string("HLT_HISinglePhoton10_v"),
107  triggerSelection = cms.string("HLT_HISinglePhoton10_v*"),
108  dqmhistolabel = cms.string("hltHISinglePhoton10"),
109  partialFilterName = cms.string("hltHIPhoton")
110  )
111  ret.append(hltHISinglePhoton10)
112 
113  hltHISinglePhoton15 = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton15_v"),
114  triggerSelection = cms.string("HLT_HISinglePhoton15_v*"),
115  dqmhistolabel = cms.string("hltHISinglePhoton15")
116  )
117  ret.append(hltHISinglePhoton15)
118 
119 
120  hltHISinglePhoton20 = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton20_v"),
121  triggerSelection = cms.string("HLT_HISinglePhoton20_v*"),
122  dqmhistolabel = cms.string("hltHISinglePhoton20")
123  )
124  ret.append(hltHISinglePhoton20)
125 
126  hltHISinglePhoton40 = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton40_v"),
127  triggerSelection = cms.string("HLT_HISinglePhoton40_v*"),
128  dqmhistolabel = cms.string("hltHISinglePhoton40")
129  )
130  ret.append(hltHISinglePhoton40)
131 
132  hltHISinglePhoton60 = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton60_v"),
133  triggerSelection = cms.string("HLT_HISinglePhoton60_v*"),
134  dqmhistolabel = cms.string("hltHISinglePhoton60")
135  )
136  ret.append(hltHISinglePhoton60)
137 
138  hltHISinglePhoton10ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton10ForEndOfFill_v"),
139  triggerSelection = cms.string("HLT_HISinglePhoton10ForEndOfFill_v*"),
140  dqmhistolabel = cms.string("hltHISinglePhoton10ForEndOfFill")
141  )
142  ret.append(hltHISinglePhoton10ForEndOfFill)
143 
144  hltHISinglePhoton15ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton15ForEndOfFill_v"),
145  triggerSelection = cms.string("HLT_HISinglePhoton15ForEndOfFill_v*"),
146  dqmhistolabel = cms.string("hltHISinglePhoton15ForEndOfFill")
147  )
148  ret.append(hltHISinglePhoton15ForEndOfFill)
149 
150  hltHISinglePhoton20ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton20ForEndOfFill_v"),
151  triggerSelection = cms.string("HLT_HISinglePhoton20ForEndOfFill_v*"),
152  dqmhistolabel = cms.string("hltHISinglePhoton20ForEndOfFill")
153  )
154  ret.append(hltHISinglePhoton20ForEndOfFill)
155 
156  return ret
157 
159  ret=cms.VPSet()
160  thresholds = [12, 20, 30, 50]
161  for t in thresholds:
162  partialPathName = "HLT_FullTrack"+str(t)+"_v"
163  hltFullTrack = cms.PSet(
164  triggerSelection = cms.string(partialPathName+"*"),
165  handlerType = cms.string("FromHLT"),
166  partialPathName = cms.string(partialPathName),
167  partialFilterName = cms.string("hltHighPtFullTrack"),
168  dqmhistolabel = cms.string("hltHighPtFullTrack"),
169  mainDQMDirname = cms.untracked.string(dirname),
170  singleObjectsPreselection = cms.string("1==1"),
171  singleObjectDrawables = cms.VPSet(
172  cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
173  cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
174  cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
175  ),
176  combinedObjectSelection = cms.string("1==1"),
177  combinedObjectSortCriteria = cms.string("at(0).pt"),
178  combinedObjectDimension = cms.int32(1),
179  combinedObjectDrawables = cms.VPSet()
180  )
181  ret.append(hltFullTrack)
182 
183  thresholds2 = [12]
184  for t in thresholds2:
185  partialPathName = "HLT_FullTrack"+str(t)+"ForEndOfFill_v"
186  hltFullTrack = cms.PSet(
187  triggerSelection = cms.string(partialPathName+"*"),
188  handlerType = cms.string("FromHLT"),
189  partialPathName = cms.string(partialPathName),
190  partialFilterName = cms.string("hltHighPtFullTrack"),
191  dqmhistolabel = cms.string("hltHighPtFullTrack"),
192  mainDQMDirname = cms.untracked.string(dirname),
193  singleObjectsPreselection = cms.string("1==1"),
194  singleObjectDrawables = cms.VPSet(
195  cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
196  cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
197  cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
198  ),
199  combinedObjectSelection = cms.string("1==1"),
200  combinedObjectSortCriteria = cms.string("at(0).pt"),
201  combinedObjectDimension = cms.int32(1),
202  combinedObjectDrawables = cms.VPSet()
203  )
204  ret.append(hltFullTrack)
205 
206  return ret
207 
209  ret = cms.VPSet()
210  ret.extend(getHILowLumiTriggers())
211  ret.extend(getFullTrackVPSet())
212  return ret
213 
214 dirname = "HLT/HI/"
215 
216 processName = "HLT"
217 
218 HILowLumiHLTOfflineSource = cms.EDAnalyzer("FSQDiJetAve",
219  triggerConfiguration = cms.PSet(
220  hltResults = cms.InputTag('TriggerResults','',processName),
221  l1tResults = cms.InputTag(''),
222  #l1tResults = cms.InputTag('gtDigis'),
223  daqPartitions = cms.uint32(1),
224  l1tIgnoreMask = cms.bool( False ),
225  l1techIgnorePrescales = cms.bool( False ),
226  throw = cms.bool( False )
227  ),
228 
229 # hltProcessName = cms.string("HLT"),
230  # HLT paths passing any one of these regular expressions will be included
231 
232 # hltPathsToCheck = cms.vstring(
233 # "HLT_HISinglePhoton10_v1",
234 # ),
235 
236 # requiredTriggers = cms.untracked.vstring(
237 # "HLT_HISinglePhoton10_v1",
238 # ),
239 
240 
241  triggerSummaryLabel = cms.InputTag("hltTriggerSummaryAOD","", processName),
242  triggerResultsLabel = cms.InputTag("TriggerResults","", processName),
243  useGenWeight = cms.bool(False),
244  #useGenWeight = cms.bool(True),
245  todo = cms.VPSet(getHILowLumi())
246 )
247 
248 #from JetMETCorrections.Configuration.CorrectedJetProducers_cff import *
249 HILowLumiHLTOfflineSourceSequence = cms.Sequence(HILowLumiHLTOfflineSource)