CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
FSQHLTOfflineSource_cfi Namespace Reference

Functions

def getDoublePFJet
 
def getFSQAll
 
def getFSQHI
 
def getHighMultVPSet
 
def getPTAveVPSet
 
def getSinglePFJet
 
def getZeroBias_SinglePixelTrackVPSet
 

Variables

string fsqdirname = "HLT/FSQ/"
 
tuple fsqHLTOfflineSource
 
tuple fsqHLTOfflineSourceSequence = cms.Sequence(ak4PFL1FastL2L3CorrectorChain + fsqHLTOfflineSource)
 
string processName = "HLT"
 

Function Documentation

def FSQHLTOfflineSource_cfi.getDoublePFJet (   thresholds,
  flavour = None,
  etaMin = -1,
  srcType = "genJets" 
)

Definition at line 466 of file FSQHLTOfflineSource_cfi.py.

References bookConverter.max, and min().

Referenced by getFSQAll().

467 def getDoublePFJet(thresholds, flavour=None, etaMin=-1, srcType="genJets" ):
468  if srcType == "genJets":
469  inputCol = cms.InputTag("ak4GenJets")
470  handlerType = "FromRecoCandidate"
471  label = srcType
472  elif srcType == "ak4PFJetsCHS":
473  inputCol = cms.InputTag("ak4PFJetsCHS")
474  handlerType = "RecoPFJetWithJEC"
475  label = srcType
476  elif srcType == "hlt":
477  inputCol = cms.InputTag("S")
478  handlerType = "FromHLT"
479  label = srcType
480  else:
481  raise Exception("Whooops!")
482 
483  combinedObjectSortCriteria = "at(0).pt + at(1).pt"
484  combinedObjectSelection = "1 == 1"
485  if flavour != None and "FB" in flavour :
486  combinedObjectSortCriteria = "("+combinedObjectSortCriteria+")*( ? at(0).eta*at(1).eta < 0 ? 1 : 0 )"
487  combinedObjectSelection = "at(0).eta*at(1).eta < 0"
488 
489  if etaMin == None:
490  etaMin = -1
491 
492  ret=cms.VPSet()
493  for t in thresholds:
494  partialPathName = "HLT_DiPFJet"+ str(t)+"_"
495  if flavour != None:
496  partialPathName += flavour+"_"
497  partialPathName += "v"
498 
499  marginLow = max(t-t/2, 15)
500  ptBinLow = max(t-marginLow,0)
501  marginHigh = min(max(t/3, 15), 50)
502  ptBinHigh = t+marginHigh
503  ptBins = min(100, ptBinHigh-ptBinLow)
504  fromJets = cms.PSet(
505  triggerSelection = cms.string(partialPathName+"*"),
506  handlerType = cms.string(handlerType),
507  PFJetCorLabel = cms.InputTag("ak4PFL1FastL2L3Corrector"),
508  inputCol = inputCol,
509  partialPathName = cms.string(partialPathName),
510  partialFilterName = cms.string("hltDoublePFJet"),
511  dqmhistolabel = cms.string(label),
512  mainDQMDirname = cms.untracked.string(fsqdirname),
513  singleObjectsPreselection = cms.string("abs(eta) < 5.5 && abs(eta) > " + str(etaMin) ),
514  #singleObjectsPreselection = cms.string("pt > 15 && abs(eta) < 5.5 && abs(eta) > " + str(etaMin) ),
515  singleObjectDrawables = cms.VPSet(),
516  combinedObjectSelection = cms.string(combinedObjectSelection),
517  combinedObjectSortCriteria = cms.string(combinedObjectSortCriteria),
518  combinedObjectDimension = cms.int32(2),
519  combinedObjectDrawables = cms.VPSet(
520  #cms.PSet (name = cms.string("ptLead"), expression = cms.string("max(at(0).pt, at(1).pt())"),
521  # bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
522  #cms.PSet (name = cms.string("ptSublead"), expression = cms.string("min(at(0).pt, at(1).pt())"),
523  # bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
524  cms.PSet (name = cms.string("ptMostFwd"),
525  expression = cms.string("? at(0).eta > at(1).eta ? at(0).pt : at(1).pt"),
526  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
527  cms.PSet (name = cms.string("ptMostBkw"),
528  expression = cms.string("? at(0).eta > at(1).eta ? at(1).pt : at(0).pt"),
529  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
530 
531  cms.PSet (name = cms.string("etaMostFwd"),
532  expression = cms.string("? at(0).eta > at(1).eta ? at(0).eta : at(1).eta"),
533  bins = cms.int32(52), min = cms.double(-5.2), max = cms.double(5.2)),
534  cms.PSet (name = cms.string("etaMostBkw"),
535  expression = cms.string("? at(0).eta > at(1).eta ? at(1).eta : at(0).eta"),
536  bins = cms.int32(52), min = cms.double(-5.2), max = cms.double(5.2)),
537  #cms.PSet (name = cms.string("pt_nominator"), expression = cms.string("min(at(0).pt, at(1).pt)"),
538  # bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
539  )
540  )
541  #fromJets.triggerSelection = cms.string("HLT_ZeroBias_v*")
542  ret.append(fromJets)
543  if srcType != "hlt":
544  fromJets.combinedObjectDrawables.append( cms.PSet(name = cms.string("ptm_nominator"),
545  expression = cms.string("min(at(0).pt, at(1).pt)"),
546  bins = cms.int32(ptBins),
547  min = cms.double(ptBinLow),
548  max = cms.double(ptBinHigh) ))
549 
550  fromJetsDenom = fromJets.clone()
551  fromJetsDenom.triggerSelection = cms.string("HLT_ZeroBias_v*")
552  fromJetsDenom.singleObjectDrawables = cms.VPSet()
553  fromJetsDenom.combinedObjectDrawables = cms.VPSet(
554  cms.PSet (name = cms.string("ptm_denominator"), expression = cms.string("min(at(0).pt, at(1).pt)"),
555  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
556  )
557  ret.append(fromJetsDenom)
558 
559 
560  return ret
T min(T a, T b)
Definition: MathUtil.h:58
def FSQHLTOfflineSource_cfi.getFSQAll ( )

Definition at line 561 of file FSQHLTOfflineSource_cfi.py.

References getDoublePFJet(), getHighMultVPSet(), getPTAveVPSet(), getSinglePFJet(), and getZeroBias_SinglePixelTrackVPSet().

562 def getFSQAll():
563  ret = cms.VPSet()
564  ret.extend(getHighMultVPSet())
566  ret.extend( getPTAveVPSet())
567 
568  ret.extend( getPTAveVPSet(thresholds = [15,25,35], disableCalo= True, flavour="HFJEC" ))
569  ret.extend( getPTAveVPSet(thresholds = [15,25,35], disableCalo= True, flavour="Central" ))
570  #todo = ["genJets", "ak4PFJetsCHS", "hlt"]
571  todo = ["ak4PFJetsCHS", "hlt"]
572  for t in todo:
573  ret.extend(getSinglePFJet([20], flavour="NoCaloMatched", etaMin=None, srcType=t))
574  ret.extend(getSinglePFJet([15, 25,40], flavour="NoCaloMatched", etaMin=None, srcType=t))
575  ret.extend(getSinglePFJet([15, 25,40], flavour="FwdEta2_NoCaloMatched", etaMin=2, srcType=t))
576  ret.extend(getSinglePFJet([15, 25,40], flavour="FwdEta3_NoCaloMatched", etaMin=3, srcType=t))
577 
578  ret.extend(getDoublePFJet([15], flavour="NoCaloMatched", etaMin=None, srcType=t))
579  ret.extend(getDoublePFJet([15], flavour="FBEta2_NoCaloMatched", etaMin=2, srcType=t))
580  ret.extend(getDoublePFJet([15], flavour="FBEta3_NoCaloMatched", etaMin=3, srcType=t))
581 
582  ret.extend(getSinglePFJet([15], partialPathName="HLT_L1Tech62_CASTORJet_SinglePFJet", srcType=t, disableEff=True))
583 
584 
585  return ret
def FSQHLTOfflineSource_cfi.getFSQHI ( )

Definition at line 586 of file FSQHLTOfflineSource_cfi.py.

References getZeroBias_SinglePixelTrackVPSet().

587 def getFSQHI():
588  ret = cms.VPSet()
590  #ret.extend(getHighMultVPSet())
591  return ret
def FSQHLTOfflineSource_cfi.getHighMultVPSet ( )

Definition at line 82 of file FSQHLTOfflineSource_cfi.py.

Referenced by getFSQAll().

82 
83 def getHighMultVPSet():
84  ret=cms.VPSet()
85  thresholds = [60, 85, 110, 135, 160]
86  for t in thresholds:
87  partialPathName = "HLT_PixelTracks_Multiplicity"+str(t)+"_v"
88  tracksL = 0
89  tracksH = 200
90  tracksBins = (tracksH-tracksL)/5
91  tracksCount = cms.PSet(
92  triggerSelection = cms.string(partialPathName+"*"),
93  handlerType = cms.string("RecoTrackCounterWithVertexConstraint"),
94  inputCol = cms.InputTag("generalTracks"),
95  # l parameters
96  vtxCollection = cms.InputTag("offlinePrimaryVertices"),
97  minNDOF = cms.int32(7),
98  maxZ = cms.double(15),
99  maxDZ = cms.double(0.12),
100  maxDZ2dzsigma = cms.double(3),
101  maxDXY = cms.double(0.12),
102  maxDXY2dxysigma = cms.double(3),
103  partialPathName = cms.string(partialPathName),
104  partialFilterName = cms.string("hltL1sETT"),
105  #dqmhistolabel = cms.string("hltPixelTracks"),
106  dqmhistolabel = cms.string("recoTracks"),
107  mainDQMDirname = cms.untracked.string(fsqdirname),
108  singleObjectsPreselection = cms.string("pt > 0.4 && abs(eta) < 2.4"),
109  singleObjectDrawables = cms.VPSet(),
110  combinedObjectSelection = cms.string("1==1"),
111  combinedObjectSortCriteria = cms.string('size()'),
112  combinedObjectDimension = cms.int32(1),
113  combinedObjectDrawables = cms.VPSet(
114  cms.PSet (name = cms.string("count_nominator"), expression = cms.string('at(0)'),
115  bins = cms.int32(tracksBins), min = cms.double(tracksL), max = cms.double(tracksH))
116  )
117  )
118  ret.append(tracksCount)
119 
120  tracksCountDenom = tracksCount.clone()
121  tracksCountDenom.triggerSelection = cms.string("TRUE")
122  tracksCountDenom.combinedObjectDrawables = cms.VPSet(
123  cms.PSet (name = cms.string("count_denominator"), expression = cms.string("at(0)"),
124  bins = cms.int32(tracksBins), min = cms.double(tracksL), max = cms.double(tracksH))
125  )
126  ret.append(tracksCountDenom)
127 
128 
129  hltPixelTracks = cms.PSet(
130  triggerSelection = cms.string(partialPathName+"*"),
131  handlerType = cms.string("FromHLT"),
132  partialPathName = cms.string(partialPathName),
133  partialFilterName = cms.string("hlt1HighMult"),
134  dqmhistolabel = cms.string("hltPixelTracks"),
135  mainDQMDirname = cms.untracked.string(fsqdirname),
136  singleObjectsPreselection = cms.string("1==1"),
137  singleObjectDrawables = cms.VPSet(
138  cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(10)),
139  cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
140  cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
141  ),
142  combinedObjectSelection = cms.string("1==1"),
143  combinedObjectSortCriteria = cms.string("at(0).pt"),
144  combinedObjectDimension = cms.int32(1),
145  combinedObjectDrawables = cms.VPSet()
146  )
147  ret.append(hltPixelTracks)
148 
149  hltPixelTracksEta16to18 = hltPixelTracks.clone()
150  hltPixelTracksEta16to18.singleObjectsPreselection='abs(eta) > 1.6 && abs(eta) < 1.8'
151  hltPixelTracksEta16to18.dqmhistolabel = cms.string("hltPixelTracksEta16to18")
152  for i in hltPixelTracksEta16to18.singleObjectDrawables:
153  if i.name == "eta":
154  hltPixelTracksEta16to18.singleObjectDrawables.remove(i)
155 
156  ret.append(hltPixelTracksEta16to18)
157 
158  # FIXME: what variables it makes sense to plot in case of ETT seeds?
159  l1 = cms.PSet(
160  triggerSelection = cms.string(partialPathName+"*"),
161  handlerType = cms.string("FromHLT"),
162  partialPathName = cms.string(partialPathName),
163  partialFilterName = cms.string("hltL1sETT"),
164  dqmhistolabel = cms.string("l1"),
165  mainDQMDirname = cms.untracked.string(fsqdirname),
166  singleObjectsPreselection = cms.string("1==1"),
167  singleObjectDrawables = cms.VPSet(),
168  combinedObjectSelection = cms.string("1==1"),
169  combinedObjectSortCriteria = cms.string("at(0).pt"),
170  combinedObjectDimension = cms.int32(1),
171  combinedObjectDrawables = cms.VPSet(
172  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(256/4), min = cms.double(0), max = cms.double(256)),
173  )
174  )
175  ret.append(l1)
176 
177 
178 
179  return ret
180 
181 
# note: always give integer values (!)
def FSQHLTOfflineSource_cfi.getPTAveVPSet (   thresholds = [30,
  flavour = "HFJEC",
  disableCalo = False 
)

Definition at line 182 of file FSQHLTOfflineSource_cfi.py.

References bookConverter.max, and min().

Referenced by getFSQAll().

183 def getPTAveVPSet(thresholds = [30, 60, 80, 100, 160, 220, 300], flavour="HFJEC", disableCalo = False):
184  # HLT_DiPFJetAve35_HFJEC_v1
185  # HLT_DiPFJetAve15_Central_v1
186  if flavour == "HFJEC":
187  probeEtaSelection = "abs(eta) > 2.7"
188  probeEtaSelectionCombined = "abs(at(1).eta) > 2.7"
189  elif flavour == "Central":
190  probeEtaSelection = "abs(eta) < 2.7"
191  probeEtaSelectionCombined = "abs(at(1).eta) < 2.7"
192  else:
193  raise Exception("Flavour not known "+ flavour)
194  ret=cms.VPSet()
195  for t in thresholds:
196  #partialPathName = "HLT_DiPFJetAve"+ str(t) +"_HFJEC_"
197  partialPathName = "HLT_DiPFJetAve"+ str(t)+"_" + flavour + "_v"
198 
199  ptBinLow = t/2
200  ptBinHigh = max(100, t*2)
201  ptBins = min(100, ptBinHigh-ptBinLow)
202 
203 
204  if not disableCalo:
205  hltCalo = cms.PSet(
206  triggerSelection = cms.string(partialPathName+"*"),
207  handlerType = cms.string("FromHLT"),
208  partialPathName = cms.string(partialPathName),
209  partialFilterName = cms.string("ForHFJECBase"), # note: this matches to hltSingleCaloJetXXXForHFJECBase
210  dqmhistolabel = cms.string("hltCaloJets"),
211  mainDQMDirname = cms.untracked.string(fsqdirname),
212  singleObjectsPreselection = cms.string("abs(eta)<1.4 || " + probeEtaSelection),
213  singleObjectDrawables = cms.VPSet(),
214  combinedObjectSelection = cms.string("1==1"),
215  combinedObjectSortCriteria = cms.string("at(0).pt"),
216  combinedObjectDimension = cms.int32(1),
217  combinedObjectDrawables = cms.VPSet(
218  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
219  cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(104), min = cms.double(-5.2), max = cms.double(5.2))
220  )
221  )
222  ret.append(hltCalo)
223 
224  l1 = cms.PSet(
225  triggerSelection = cms.string(partialPathName+"*"),
226  handlerType = cms.string("FromHLT"),
227  partialPathName = cms.string(partialPathName),
228  partialFilterName = cms.string("hltL1"),
229  dqmhistolabel = cms.string("l1"),
230  mainDQMDirname = cms.untracked.string(fsqdirname),
231  singleObjectsPreselection = cms.string("1==1"),
232  singleObjectDrawables = cms.VPSet(),
233  combinedObjectSelection = cms.string("1==1"),
234  combinedObjectSortCriteria = cms.string("at(0).pt"),
235  combinedObjectDimension = cms.int32(1),
236  combinedObjectDrawables = cms.VPSet(
237  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(256/4), min = cms.double(0), max = cms.double(256)),
238  cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(104/4), min = cms.double(-5.2), max = cms.double(5.2))
239  )
240  )
241  ret.append(l1)
242 
243  '''
244  hltPFSingle = cms.PSet(
245  triggerSelection = cms.string(partialPathName+"*"),
246  handlerType = cms.string("FromHLT"),
247  partialPathName = cms.string(partialPathName),
248  partialFilterName = cms.string("hltDiPFJetAve"),
249  dqmhistolabel = cms.string("hltpfsingle"),
250  mainDQMDirname = cms.untracked.string(fsqdirname),
251  singleObjectsPreselection = cms.string("abs(eta)<1.4 || abs(eta) > 2.7 "),
252  singleObjectDrawables = cms.VPSet(),
253  combinedObjectSelection = cms.string("1==1"),
254  combinedObjectSortCriteria = cms.string("at(0).pt"),
255  combinedObjectDimension = cms.int32(1),
256  combinedObjectDrawables = cms.VPSet(
257  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
258  cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(104), min = cms.double(-5.2), max = cms.double(5.2))
259  )
260  )
261  ret.append(hltPFSingle)
262  '''
263 
264 
265  hltPFtopology = cms.PSet(
266  triggerSelection = cms.string(partialPathName+"*"),
267  handlerType = cms.string("FromHLT"),
268  partialPathName = cms.string(partialPathName),
269  partialFilterName = cms.string("hltDiPFJetAve"),
270  dqmhistolabel = cms.string("hltPFJetsTopology"),
271  mainDQMDirname = cms.untracked.string(fsqdirname),
272  singleObjectsPreselection = cms.string("abs(eta)<1.4 || " + probeEtaSelection),
273  singleObjectDrawables = cms.VPSet(),
274  combinedObjectSelection = cms.string("abs(at(0).eta())< 1.4 && "+ probeEtaSelectionCombined +
275  " && abs(deltaPhi(at(0).phi, at(1).phi)) > 2.5"),
276  combinedObjectSortCriteria = cms.string("(at(0).pt+at(1).pt)/2"),
277  combinedObjectDimension = cms.int32(2),
278  combinedObjectDrawables = cms.VPSet(
279  cms.PSet (name = cms.string("deltaEta"), expression = cms.string("abs(at(0).eta-at(1).eta)"),
280  bins = cms.int32(70), min = cms.double(0), max = cms.double(7)),
281  cms.PSet (name = cms.string("deltaPhi"), expression = cms.string("abs(deltaPhi(at(0).phi, at(1).phi))"),
282  bins = cms.int32(100), min = cms.double(0), max = cms.double(3.2)),
283  cms.PSet (name = cms.string("ptAve"), expression = cms.string("(at(0).pt+at(1).pt)/2"),
284  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
285  cms.PSet (name = cms.string("ptTag"), expression =
286  cms.string("? abs(at(0).eta) < abs(at(1).eta) ? at(0).pt : at(1).pt "),
287  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
288  cms.PSet (name = cms.string("ptProbe"), expression =
289  cms.string("? abs(at(0).eta) < abs(at(1).eta) ? at(1).pt : at(0).pt "),
290  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
291  )
292  )
293  ret.append(hltPFtopology)
294 
295 
296 
297 
298  '''
299  # FromJet
300  recoThr = t
301  recoPF = cms.PSet(
302  triggerSelection = cms.string(partialPathName+"*"),
303  handlerType = cms.string("FromRecoCandidate"),
304  inputCol = cms.InputTag("ak4PFJetsCHS"),
305  partialPathName = cms.string(partialPathName),
306  partialFilterName = cms.string("hltDiPFJetAve"),
307  dqmhistolabel = cms.string("recoJet"),
308  mainDQMDirname = cms.untracked.string(fsqdirname),
309  singleObjectsPreselection = cms.string("pt > + "+str(recoThr) +" && (abs(eta)<1.3 || abs(eta) > 2.8) "),
310  singleObjectDrawables = cms.VPSet(),
311  combinedObjectSelection = cms.string("1==1"),
312  combinedObjectSortCriteria = cms.string("at(0).pt"),
313  combinedObjectDimension = cms.int32(1),
314  combinedObjectDrawables = cms.VPSet(
315  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
316  cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(52), min = cms.double(-5.2), max = cms.double(5.2))
317  )
318  )
319  ret.append(recoPF)
320  '''
321  recoThr = t/2
322  recoPFtopology = cms.PSet(
323  triggerSelection = cms.string(partialPathName+"*"),
324  handlerType = cms.string("RecoPFJetWithJEC"),
325  PFJetCorLabel = cms.InputTag("ak4PFL1FastL2L3Corrector"),
326  inputCol = cms.InputTag("ak4PFJetsCHS"),
327  partialPathName = cms.string(partialPathName),
328  partialFilterName = cms.string("hltDiPFJetAve"),
329  dqmhistolabel = cms.string("recoPFJetsTopology"),
330  mainDQMDirname = cms.untracked.string(fsqdirname),
331  singleObjectsPreselection = cms.string("pt > "+str(recoThr) +" && (abs(eta)<1.4 ||"+probeEtaSelection + ")" ),
332  singleObjectDrawables = cms.VPSet(),
333  combinedObjectSelection = cms.string("abs(at(0).eta())< 1.3 && " + probeEtaSelectionCombined +
334  " && abs(deltaPhi(at(0).phi, at(1).phi)) > 2.5"),
335  combinedObjectSortCriteria = cms.string("(at(0).pt+at(1).pt)/2"),
336  combinedObjectDimension = cms.int32(2),
337  combinedObjectDrawables = cms.VPSet(
338  cms.PSet (name = cms.string("deltaEta"), expression = cms.string("abs(at(0).eta-at(1).eta)"),
339  bins = cms.int32(70), min = cms.double(0), max = cms.double(7)),
340  cms.PSet (name = cms.string("deltaPhi"), expression = cms.string("abs(deltaPhi(at(0).phi, at(1).phi))"),
341  bins = cms.int32(100), min = cms.double(0), max = cms.double(3.2)),
342  cms.PSet (name = cms.string("ptAve"), expression = cms.string("(at(0).pt+at(1).pt)/2"),
343  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
344  cms.PSet (name = cms.string("ptTag"), expression =
345  cms.string("? abs(at(0).eta) < abs(at(1).eta) ? at(0).pt : at(1).pt "),
346  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
347  cms.PSet (name = cms.string("ptProbe"), expression =
348  cms.string("? abs(at(0).eta) < abs(at(1).eta) ? at(1).pt : at(0).pt "),
349  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
350  cms.PSet (name = cms.string("ptAve_nominator"), expression = cms.string("(at(0).pt+at(1).pt)/2"),
351  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
352  )
353  )
354  ret.append(recoPFtopology)
355  recoPFtopologyDenom = recoPFtopology.clone()
356  #recoPFtopologyDenom.triggerSelection = cms.string("HLTriggerFirstPath*")
357  #recoPFtopologyDenom.triggerSelection = cms.string(partialPathName+"*")
358  recoPFtopologyDenom.triggerSelection = cms.string("TRUE")
359  recoPFtopologyDenom.combinedObjectDrawables = cms.VPSet(
360  cms.PSet (name = cms.string("ptAve_denominator"), expression = cms.string("(at(0).pt+at(1).pt)/2"),
361  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
362  )
363  ret.append(recoPFtopologyDenom)
364 
365  # RecoCandidateCounter
366  ''' example on how to count objects
367  recoThr = t/2
368  recoPFJetCnt = cms.PSet(
369  triggerSelection = cms.string(partialPathName+"*"),
370  handlerType = cms.string("RecoCandidateCounter"),
371  inputCol = cms.InputTag("ak4PFJetsCHS"),
372  partialPathName = cms.string(partialPathName),
373  partialFilterName = cms.string("hltDiPFJetAve"),
374  dqmhistolabel = cms.string("recoPFJetsCnt"),
375  mainDQMDirname = cms.untracked.string(fsqdirname),
376  singleObjectsPreselection = cms.string("pt > "+str(recoThr) +" && abs(eta)<1.4 || abs(eta) > 2.7 "),
377  singleObjectDrawables = cms.VPSet(),
378  combinedObjectSelection = cms.string("1==1"),
379  combinedObjectSortCriteria = cms.string('size()'),
380  combinedObjectDimension = cms.int32(1),
381  combinedObjectDrawables = cms.VPSet(
382  cms.PSet (name = cms.string("count"), expression = cms.string('at(0)'),
383  bins = cms.int32(30), min = cms.double(0), max = cms.double(30))
384  )
385  )
386  ret.append(recoPFJetCnt)
387  '''
388 
389  return ret
390 
# note: thresholds should be a list with integer only values
T min(T a, T b)
Definition: MathUtil.h:58
def FSQHLTOfflineSource_cfi.getSinglePFJet (   thresholds,
  flavour = None,
  etaMin = -1,
  srcType = "genJets",
  partialPathName = "HLT_PFJet",
  disableEff = False 
)

Definition at line 391 of file FSQHLTOfflineSource_cfi.py.

References bookConverter.max, and min().

Referenced by getFSQAll().

392 def getSinglePFJet(thresholds, flavour=None, etaMin=-1, srcType="genJets", partialPathName = "HLT_PFJet", disableEff = False):
393  if srcType == "genJets":
394  inputCol = cms.InputTag("ak4GenJets")
395  handlerType = "FromRecoCandidate"
396  label = srcType
397  elif srcType == "ak4PFJetsCHS":
398  inputCol = cms.InputTag("ak4PFJetsCHS")
399  handlerType = "RecoPFJetWithJEC"
400  label = srcType
401  elif srcType == "hlt":
402  inputCol = cms.InputTag("S")
403  handlerType = "FromHLT"
404  label = srcType
405  else:
406  raise Exception("Whooops!")
407 
408  if etaMin == None:
409  etaMin = -1
410 
411  ret=cms.VPSet()
412  for t in thresholds:
413  partialPathNameLoc = partialPathName
414  partialPathNameLoc += str(t)+"_"
415  if flavour != None:
416  partialPathNameLoc += flavour+"_"
417  partialPathNameLoc += "v"
418 
419  marginLow = max(t-t/2, 15)
420  ptBinLow = max(t-marginLow,0)
421  marginHigh = min(max(t/2, 20), 50)
422  ptBinHigh = t+marginHigh
423  ptBins = min(100, ptBinHigh-ptBinLow)
424  fromJets = cms.PSet(
425  triggerSelection = cms.string(partialPathNameLoc+"*"),
426  handlerType = cms.string(handlerType),
427  PFJetCorLabel = cms.InputTag("ak4PFL1FastL2L3Corrector"),
428  inputCol = inputCol,
429  # inputCol = cms.InputTag("ak4PFJetsCHS"),
430  partialPathName = cms.string(partialPathNameLoc),
431  partialFilterName = cms.string("hltSinglePFJet"),
432  dqmhistolabel = cms.string(label),
433  mainDQMDirname = cms.untracked.string(fsqdirname),
434  singleObjectsPreselection = cms.string("abs(eta) < 5.5 && abs(eta) > " + str(etaMin) ),
435  singleObjectDrawables = cms.VPSet(),
436  combinedObjectSelection = cms.string("1==1"),
437  combinedObjectSortCriteria = cms.string("at(0).pt"),
438  combinedObjectDimension = cms.int32(1),
439  combinedObjectDrawables = cms.VPSet(
440  cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"),
441  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
442  cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"),
443  bins = cms.int32(52), min = cms.double(-5.2), max = cms.double(5.2)),
444  cms.PSet (name = cms.string("pt_nominator"), expression = cms.string("at(0).pt"),
445  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
446  )
447  )
448  if disableEff:
449  for p in fromJets.combinedObjectDrawables:
450  if p.name == cms.string("pt_nominator"):
451  fromJets.combinedObjectDrawables.remove(p)
452  break
453  else:
454  fromJetsDenom = fromJets.clone()
455  fromJetsDenom.triggerSelection = cms.string("HLT_ZeroBias_v*")
456  fromJetsDenom.singleObjectDrawables = cms.VPSet()
457  fromJetsDenom.combinedObjectDrawables = cms.VPSet(
458  cms.PSet (name = cms.string("pt_denominator"), expression = cms.string("at(0).pt"),
459  bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
460  )
461  ret.append(fromJetsDenom)
462  ret.append(fromJets)
463  return ret
464 
465 # note: thresholds should be a list with integer only values
# fixme: most of the code repeated from single jet case above
T min(T a, T b)
Definition: MathUtil.h:58
def FSQHLTOfflineSource_cfi.getZeroBias_SinglePixelTrackVPSet ( )

Definition at line 20 of file FSQHLTOfflineSource_cfi.py.

Referenced by getFSQAll(), and getFSQHI().

20 
22  ret=cms.VPSet()
23  partialPathName = "HLT_ZeroBias_SinglePixelTrack_v"
24  hltPixelTracksZB = cms.PSet(
25  triggerSelection = cms.string(partialPathName+"*"),
26  handlerType = cms.string("FromHLT"),
27  partialPathName = cms.string(partialPathName),
28  partialFilterName = cms.string("hltMinBiasPixelFilt"),
29  dqmhistolabel = cms.string("hltPixelTracks"),
30  mainDQMDirname = cms.untracked.string(fsqdirname),
31  singleObjectsPreselection = cms.string("1==1"),
32  singleObjectDrawables = cms.VPSet(
33  cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(50), min = cms.double(0.4), max = cms.double(10)),
34  cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
35  cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
36  ),
37  combinedObjectSelection = cms.string("1==1"),
38  combinedObjectSortCriteria = cms.string("at(0).pt"),
39  combinedObjectDimension = cms.int32(1),
40  combinedObjectDrawables = cms.VPSet()
41  )
42  ret.append(hltPixelTracksZB)
43 
44  # note: for global efficiency (ie not efficiency as a funtion of something)
45  # calculation we use RecoTrack handler in a bit twisted way.
46  # RecoTrack handler assumes, that the efficiency calculation is done
47  # only for events with at least one offline track (from generalTracks collection)
48  # passing the selection criteria from singleObjectsPreselection variable
49  # Such events are used to fill 1-bin-large-histogram with a range -0.5...0.5
50  # Note, that the histogram is always filled with the 0 value ("0*" part in
51  # expression string). The "at(0).pt()" part is needed to make expression parses
52  # happy.
53  tracksCountZB = cms.PSet(
54  triggerSelection = cms.string(partialPathName+"*"),
55  handlerType = cms.string("RecoTrack"),
56  inputCol = cms.InputTag("generalTracks"),
57  # l parameters
58  partialPathName = cms.string(partialPathName),
59  partialFilterName = cms.string("hltL1sETT"),
60  dqmhistolabel = cms.string("zb"),
61  mainDQMDirname = cms.untracked.string(fsqdirname),
62  singleObjectsPreselection = cms.string("pt > 0.4 && abs(eta) < 2.4"),
63  singleObjectDrawables = cms.VPSet(),
64  combinedObjectSelection = cms.string("1==1"),
65  combinedObjectSortCriteria = cms.string('at(0).pt()'), # doesnt matter
66  combinedObjectDimension = cms.int32(1),
67  combinedObjectDrawables = cms.VPSet(
68  cms.PSet (name = cms.string("Eff_nominator"), expression = cms.string('0*at(0).pt()'),
69  bins = cms.int32(1), min = cms.double(-0.5), max = cms.double(0.5))
70  )
71  )
72  ret.append(tracksCountZB)
73  tracksCountDenomZB = tracksCountZB.clone()
74  tracksCountDenomZB.triggerSelection = cms.string("HLT_ZeroBias_v*")
75  tracksCountDenomZB.combinedObjectDrawables = cms.VPSet(
76  cms.PSet (name = cms.string("Eff_denominator"), expression = cms.string("0*at(0).pt()"),
77  bins = cms.int32(1), min = cms.double(-0.5), max = cms.double(0.5))
78  )
79  ret.append(tracksCountDenomZB)
80 
81  return ret

Variable Documentation

string FSQHLTOfflineSource_cfi.fsqdirname = "HLT/FSQ/"

Definition at line 592 of file FSQHLTOfflineSource_cfi.py.

tuple FSQHLTOfflineSource_cfi.fsqHLTOfflineSource
Initial value:
1 = cms.EDAnalyzer("FSQDiJetAve",
2  triggerConfiguration = cms.PSet(
3  hltResults = cms.InputTag('TriggerResults','',processName),
4  l1tResults = cms.InputTag(''),
5  #l1tResults = cms.InputTag('gtDigis'),
6  daqPartitions = cms.uint32(1),
7  l1tIgnoreMask = cms.bool( False ),
8  l1techIgnorePrescales = cms.bool( False ),
9  throw = cms.bool( False )
10  ),
11 
12  #dirname = cms.untracked.string("HLT/FSQ/DiJETAve/"),
13  triggerSummaryLabel = cms.InputTag("hltTriggerSummaryAOD","", processName),
14  triggerResultsLabel = cms.InputTag("TriggerResults","", processName),
15  useGenWeight = cms.bool(False),
16  #useGenWeight = cms.bool(True),
17  todo = cms.VPSet(getFSQAll())
18 )

Definition at line 597 of file FSQHLTOfflineSource_cfi.py.

tuple FSQHLTOfflineSource_cfi.fsqHLTOfflineSourceSequence = cms.Sequence(ak4PFL1FastL2L3CorrectorChain + fsqHLTOfflineSource)

Definition at line 617 of file FSQHLTOfflineSource_cfi.py.

string FSQHLTOfflineSource_cfi.processName = "HLT"

Definition at line 594 of file FSQHLTOfflineSource_cfi.py.

Referenced by FWGUIEventDataAdder.addNewItem(), edm::EventContentAnalyzer.analyze(), GammaJetAnalysis.beginRun(), edm::CFWriter.branchesActivate(), edm::MixingModule.branchesActivate(), FWTrackingParticleProxyBuilderFullFramework.build(), FWTrackProxyBuilderFullFramework.build(), edm::HistoryAppender.checkProcessHistory(), edm::DaqProvenanceHelper.DaqProvenanceHelper(), FSQDiJetAve.dqmBeginRun(), edm::LHEProvenanceHelper.fillCommonProcessParameterSet(), edm::Principal.findProductByLabel(), GflashHadronWrapperProcess.GflashHadronWrapperProcess(), edm::ScheduleItems.initMisc(), edm::EDConsumerBase.modulesDependentUpon(), FWGUIEventDataAdder.newIndexSelected(), FWPathsPopup.postEvent(), TriggerSummaryProducerRAW.produce(), TriggerSummaryProducerAOD.produce(), FWEventItemsManager.setFrom(), DQMRootSource.setupFile(), and CountProcessesAction.update().