Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-05 02:39:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def getHILowLumiTriggers():
0004     ret=cms.VPSet()
0005     partialPathName = "HLT_AK4CaloJet30_v"
0006     hltHICaloJet30 =  cms.PSet(
0007         triggerSelection = cms.string(partialPathName+"*"),
0008         handlerType = cms.string("FromHLT"),
0009         partialPathName = cms.string(partialPathName),
0010         partialFilterName  = cms.string("hltSingleAK4CaloJet"),
0011         dqmhistolabel  = cms.string("hltHICaloJet30"),
0012         mainDQMDirname = cms.untracked.string(dirname),
0013         singleObjectsPreselection = cms.string("1==1"),
0014         singleObjectDrawables =  cms.VPSet(
0015             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
0016             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5), max = cms.double(5)),
0017             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0018         ),
0019         combinedObjectSelection =  cms.string("1==1"),
0020         combinedObjectSortCriteria = cms.string("at(0).pt"),
0021         combinedObjectDimension = cms.int32(1),
0022         combinedObjectDrawables =  cms.VPSet()
0023     )
0024     ret.append(hltHICaloJet30)
0025 
0026     hltHICaloJet40 = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet40_v",
0027                                   triggerSelection = "HLT_AK4CaloJet40_v*",
0028                                   dqmhistolabel = "hltHICaloJet40"
0029                                   )
0030     ret.append(hltHICaloJet40)
0031 
0032     hltHICaloJet50 = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet50_v",
0033                                   triggerSelection = "HLT_AK4CaloJet50_v*",
0034                                   dqmhistolabel = "hltHICaloJet50"
0035     )
0036     ret.append(hltHICaloJet50)
0037 
0038     hltHICaloJet80 = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet80_v",
0039                                   triggerSelection = "HLT_AK4CaloJet80_v*",
0040                                   dqmhistolabel = "hltHICaloJet80"
0041     )
0042     ret.append(hltHICaloJet80)
0043 
0044     hltHICaloJet100 = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet100_v",
0045                                   triggerSelection = "HLT_AK4CaloJet100_v*",
0046                                   dqmhistolabel = "hltHICaloJet100"
0047     )
0048     ret.append(hltHICaloJet100)
0049 
0050     hltHICaloJet30ForEndOfFill = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet30ForEndOfFill_v",
0051                                   triggerSelection = "HLT_AK4CaloJet30ForEndOfFill_v*",
0052                                   dqmhistolabel = "hltHICaloJet30ForEndOfFill"
0053     )
0054     ret.append(hltHICaloJet30ForEndOfFill)
0055 
0056     hltHICaloJet40ForEndOfFill = hltHICaloJet30.clone(partialPathName = cms.string("HLT_AK4CaloJet40ForEndOfFill_v"),
0057                                   triggerSelection = cms.string("HLT_AK4CaloJet40ForEndOfFill_v*"),
0058                                   dqmhistolabel = cms.string("hltHICaloJet40ForEndOfFill")
0059     )
0060     ret.append(hltHICaloJet40ForEndOfFill)
0061 
0062     hltHICaloJet50ForEndOfFill = hltHICaloJet30.clone(partialPathName = "HLT_AK4CaloJet50ForEndOfFill_v",
0063                                   triggerSelection = "HLT_AK4CaloJet50ForEndOfFill_v*",
0064                                   dqmhistolabel = "hltHICaloJet50ForEndOfFill"
0065     )
0066     ret.append(hltHICaloJet50ForEndOfFill)
0067 
0068 
0069     hltHIPFJet30 = hltHICaloJet30.clone(partialPathName = "HLT_AK4PFJet30_v",
0070                                   triggerSelection = "HLT_AK4PFJet30_v*",
0071                                   dqmhistolabel = "hltHIPFJet30",
0072                                   partialFilterName  = "hltSingleAK4PFJet"
0073                                   )
0074     ret.append(hltHIPFJet30)
0075 
0076     hltHIPFJet50 = hltHIPFJet30.clone(partialPathName = "HLT_AK4PFJet50_v",
0077                                   triggerSelection = "HLT_AK4PFJet50_v*",
0078                                   dqmhistolabel = "hltHIPFJet50"
0079     )
0080     ret.append(hltHIPFJet50)
0081 
0082     hltHIPFJet80 = hltHIPFJet30.clone(partialPathName = "HLT_AK4PFJet80_v",
0083                                   triggerSelection = "HLT_AK4PFJet80_v*",
0084                                   dqmhistolabel = "hltHIPFJet80"
0085     )
0086     ret.append(hltHIPFJet80)
0087 
0088     hltHIPFJet100 = hltHIPFJet30.clone(partialPathName = "HLT_AK4PFJet100_v",
0089                                   triggerSelection = "HLT_AK4PFJet100_v*",
0090                                   dqmhistolabel = "hltHIPFJet100"
0091     )
0092     ret.append(hltHIPFJet100)
0093 
0094     hltHIPFJet30ForEndOfFill = hltHIPFJet30.clone(partialPathName = "HLT_AK4PFJet30ForEndOfFill_v",
0095                                   triggerSelection = "HLT_AK4PFJet30ForEndOfFill_v*",
0096                                   dqmhistolabel = "hltHIPFJet30ForEndOfFill"
0097     )
0098     ret.append(hltHIPFJet30ForEndOfFill)
0099 
0100     hltHIPFJet50ForEndOfFill = hltHIPFJet30.clone(partialPathName = "HLT_AK4PFJet50ForEndOfFill_v",
0101                                   triggerSelection = "HLT_AK4PFJet50ForEndOfFill_v*",
0102                                   dqmhistolabel = "hltHIPFJet50ForEndOfFill"
0103     )
0104     ret.append(hltHIPFJet50ForEndOfFill)
0105 
0106     hltHISinglePhoton10 = hltHICaloJet30.clone(partialPathName = "HLT_HISinglePhoton10_v",
0107                                                triggerSelection = "HLT_HISinglePhoton10_v*",
0108                                                dqmhistolabel = "hltHISinglePhoton10",
0109                                                partialFilterName  = "hltHIPhoton"
0110     )
0111     ret.append(hltHISinglePhoton10)
0112 
0113     hltHISinglePhoton15 = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton15_v",
0114                                                     triggerSelection = "HLT_HISinglePhoton15_v*",
0115                                                     dqmhistolabel = "hltHISinglePhoton15"
0116     )
0117     ret.append(hltHISinglePhoton15)
0118 
0119 
0120     hltHISinglePhoton20 = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton20_v",
0121                                                     triggerSelection = "HLT_HISinglePhoton20_v*",
0122                                                     dqmhistolabel = "hltHISinglePhoton20"
0123     )
0124     ret.append(hltHISinglePhoton20)
0125 
0126     hltHISinglePhoton40 = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton40_v",
0127                                                     triggerSelection = "HLT_HISinglePhoton40_v*",
0128                                                     dqmhistolabel = "hltHISinglePhoton40"
0129     )
0130     ret.append(hltHISinglePhoton40)
0131 
0132     hltHISinglePhoton60 = hltHISinglePhoton10.clone(partialPathName = cms.string("HLT_HISinglePhoton60_v"),
0133                                                     triggerSelection = cms.string("HLT_HISinglePhoton60_v*"),
0134                                                     dqmhistolabel = cms.string("hltHISinglePhoton60")
0135     )
0136     ret.append(hltHISinglePhoton60)
0137 
0138     hltHISinglePhoton10ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton10ForEndOfFill_v",
0139                                                     triggerSelection = "HLT_HISinglePhoton10ForEndOfFill_v*",
0140                                                     dqmhistolabel = "hltHISinglePhoton10ForEndOfFill"
0141     )
0142     ret.append(hltHISinglePhoton10ForEndOfFill)
0143 
0144     hltHISinglePhoton15ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton15ForEndOfFill_v",
0145                                                     triggerSelection = "HLT_HISinglePhoton15ForEndOfFill_v*",
0146                                                     dqmhistolabel = "hltHISinglePhoton15ForEndOfFill"
0147     )
0148     ret.append(hltHISinglePhoton15ForEndOfFill)
0149 
0150     hltHISinglePhoton20ForEndOfFill = hltHISinglePhoton10.clone(partialPathName = "HLT_HISinglePhoton20ForEndOfFill_v",
0151                                                     triggerSelection = "HLT_HISinglePhoton20ForEndOfFill_v*",
0152                                                     dqmhistolabel = "hltHISinglePhoton20ForEndOfFill"
0153     )
0154     ret.append(hltHISinglePhoton20ForEndOfFill)
0155 
0156     return ret
0157 
0158 def getFullTrackVPSet():
0159     ret=cms.VPSet()
0160     thresholds = [12, 20, 30, 50]
0161     for t in thresholds:
0162         partialPathName = "HLT_FullTrack"+str(t)+"_v"
0163         hltFullTrack =  cms.PSet(
0164             triggerSelection = cms.string(partialPathName+"*"),
0165             handlerType = cms.string("FromHLT"),
0166             partialPathName = cms.string(partialPathName),
0167             partialFilterName  = cms.string("hltHighPtFullTrack"),
0168             dqmhistolabel  = cms.string("hltHighPtFullTrack"),
0169             mainDQMDirname = cms.untracked.string(dirname),
0170             singleObjectsPreselection = cms.string("1==1"),
0171             singleObjectDrawables =  cms.VPSet(
0172                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
0173                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0174                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0175             ),
0176             combinedObjectSelection =  cms.string("1==1"),
0177             combinedObjectSortCriteria = cms.string("at(0).pt"),
0178             combinedObjectDimension = cms.int32(1),
0179             combinedObjectDrawables =  cms.VPSet()
0180         )
0181         ret.append(hltFullTrack)
0182 
0183     thresholds2 = [12]
0184     for t in thresholds2:
0185         partialPathName = "HLT_FullTrack"+str(t)+"ForEndOfFill_v"
0186         hltFullTrack =  cms.PSet(
0187             triggerSelection = cms.string(partialPathName+"*"),
0188             handlerType = cms.string("FromHLT"),
0189             partialPathName = cms.string(partialPathName),
0190             partialFilterName  = cms.string("hltHighPtFullTrack"),
0191             dqmhistolabel  = cms.string("hltHighPtFullTrack"),
0192             mainDQMDirname = cms.untracked.string(dirname),
0193             singleObjectsPreselection = cms.string("1==1"),
0194             singleObjectDrawables =  cms.VPSet(
0195                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
0196                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0197                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0198             ),
0199             combinedObjectSelection =  cms.string("1==1"),
0200             combinedObjectSortCriteria = cms.string("at(0).pt"),
0201             combinedObjectDimension = cms.int32(1),
0202             combinedObjectDrawables =  cms.VPSet()
0203         )
0204         ret.append(hltFullTrack)
0205 
0206     thresholds3 = [85,105,135,155]
0207     for t in thresholds3:
0208         partialPathName = "HLT_FullTracks_Multiplicity"+str(t)+"_v"
0209         hltFullTrackMult =  cms.PSet(
0210             triggerSelection = cms.string(partialPathName+"*"),
0211             handlerType = cms.string("FromHLT"),
0212             partialPathName = cms.string(partialPathName),
0213             partialFilterName  = cms.string("hltFullTrackHighMult"),
0214             dqmhistolabel  = cms.string("hltFullTrackHighMult"),
0215             mainDQMDirname = cms.untracked.string(dirname),
0216             singleObjectsPreselection = cms.string("1==1"),
0217             singleObjectDrawables =  cms.VPSet(
0218                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
0219                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0220                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0221             ),
0222             combinedObjectSelection =  cms.string("1==1"),
0223             combinedObjectSortCriteria = cms.string("at(0).pt"),
0224             combinedObjectDimension = cms.int32(1),
0225             combinedObjectDrawables =  cms.VPSet()
0226         )
0227         ret.append(hltFullTrackMult)
0228 
0229     thresholds4 = [20, 30, 40]
0230     for t in thresholds4:
0231         partialPathName = "HLT_PAFullTracks_HighPt"+str(t)+"_v"
0232         hltPAFullTrack =  cms.PSet(
0233             triggerSelection = cms.string(partialPathName+"*"),
0234             handlerType = cms.string("FromHLT"),
0235             partialPathName = cms.string(partialPathName),
0236             partialFilterName  = cms.string("hltPAFullTrack"),
0237             dqmhistolabel  = cms.string("hltPAFullTrack"),
0238             mainDQMDirname = cms.untracked.string(dirname),
0239             singleObjectsPreselection = cms.string("1==1"),
0240             singleObjectDrawables =  cms.VPSet(
0241                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(0), max = cms.double(100)),
0242                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0243                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0244             ),
0245             combinedObjectSelection =  cms.string("1==1"),
0246             combinedObjectSortCriteria = cms.string("at(0).pt"),
0247             combinedObjectDimension = cms.int32(1),
0248             combinedObjectDrawables =  cms.VPSet()
0249         )
0250         ret.append(hltPAFullTrack)
0251 
0252     return ret
0253 
0254 def getPAHighMultVPSet():
0255     ret=cms.VPSet()
0256     thresholds = [120, 150, 185, 220, 250, 280]
0257     for t in thresholds:
0258         partialPathName = "HLT_PAFullTracks_Multiplicity"+str(t)+"_v"
0259 
0260         hltPAFullTracks =  cms.PSet(
0261             triggerSelection = cms.string(partialPathName+"*"),
0262             handlerType = cms.string("FromHLT"),
0263             partialPathName = cms.string(partialPathName),
0264             partialFilterName  = cms.string("hltPAFullTrackHighMult"),
0265             dqmhistolabel  = cms.string("hltPAFullTracks"),
0266             mainDQMDirname = cms.untracked.string(dirname),
0267             singleObjectsPreselection = cms.string("1==1"),
0268             singleObjectDrawables =  cms.VPSet(
0269                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0270                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0271                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0272             ),
0273             combinedObjectSelection =  cms.string("1==1"),
0274             combinedObjectSortCriteria = cms.string("at(0).pt"),
0275             combinedObjectDimension = cms.int32(1),
0276             combinedObjectDrawables =  cms.VPSet()
0277         )
0278         ret.append(hltPAFullTracks)
0279 
0280     return ret
0281 
0282 def getPAHighMultHighPtVPSet():
0283     ret=cms.VPSet()
0284     thresholds = [8, 16]
0285     for t in thresholds:
0286         partialPathName = "HLT_PAFullTracks_Multiplicity110_HighPt"+str(t)+"_v"
0287 
0288         hltPAFullTracks =  cms.PSet(
0289             triggerSelection = cms.string(partialPathName+"*"),
0290             handlerType = cms.string("FromHLT"),
0291             partialPathName = cms.string(partialPathName),
0292             partialFilterName  = cms.string("hltPAFullTrackHighPt"),
0293             dqmhistolabel  = cms.string("hltPAFullTracks"),
0294             mainDQMDirname = cms.untracked.string(dirname),
0295             singleObjectsPreselection = cms.string("1==1"),
0296             singleObjectDrawables =  cms.VPSet(
0297                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0298                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0299                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0300             ),
0301             combinedObjectSelection =  cms.string("1==1"),
0302             combinedObjectSortCriteria = cms.string("at(0).pt"),
0303             combinedObjectDimension = cms.int32(1),
0304             combinedObjectDrawables =  cms.VPSet()
0305         )
0306         ret.append(hltPAFullTracks)
0307 
0308     thresholds = [8, 16]
0309     for t in thresholds:
0310         partialPathName = "HLT_PAFullTracks_HFSumEt005_HighPt"+str(t)+"_v"
0311 
0312         hltPAFullTracks =  cms.PSet(
0313             triggerSelection = cms.string(partialPathName+"*"),
0314             handlerType = cms.string("FromHLT"),
0315             partialPathName = cms.string(partialPathName),
0316             partialFilterName  = cms.string("hltPAFullTrackHighPt"),
0317             dqmhistolabel  = cms.string("hltPAFullTracks"),
0318             mainDQMDirname = cms.untracked.string(dirname),
0319             singleObjectsPreselection = cms.string("1==1"),
0320             singleObjectDrawables =  cms.VPSet(
0321                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0322                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0323                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0324             ),
0325             combinedObjectSelection =  cms.string("1==1"),
0326             combinedObjectSortCriteria = cms.string("at(0).pt"),
0327             combinedObjectDimension = cms.int32(1),
0328             combinedObjectDrawables =  cms.VPSet()
0329         )
0330         ret.append(hltPAFullTracks)
0331 
0332     return ret
0333 
0334 def getPAHighPtVPSet():
0335     ret=cms.VPSet()
0336     jetTypes = ["Calo", "PF"]
0337     jetThresholds = [40, 60, 80, 100, 120]
0338     jetThresholdsFor1 = [40, 60]
0339     jetThresholdsFor2 = [40]
0340     jetThresholdsForMB = [40]
0341     bjetThresholds = [40, 60, 80]
0342     dijetAveThresholds = [40, 60, 80]
0343     gammaThresholds = [10, 15, 20, 30, 40]
0344     gammaMBThresholds = [15, 20]
0345     gammaThresholdsEGJet = [30, 40]
0346     isogammaThresholds = [20]
0347     eleThresholds = [20]
0348 
0349     jetThresholdsMu = [30, 40, 60]
0350     gammaThresholdsMu = [10, 15, 20]
0351     muThresholds = [3, 5]
0352 
0353     for jType in jetTypes:
0354         for t in jetThresholds:
0355             if jType == "Calo" and t == 120:
0356                 continue
0357             partialPathName = "HLT_PAAK4" + jType + "Jet" + str(t) + "_Eta5p1_v"
0358             hltSingleJet =  cms.PSet(
0359                 triggerSelection = cms.string(partialPathName+"*"),
0360                 handlerType = cms.string("FromHLT"),
0361                 partialPathName = cms.string(partialPathName),
0362                 partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet"),
0363                 dqmhistolabel  = cms.string("hltSingleAK4" + jType + "Jet" + str(t)),
0364                 mainDQMDirname = cms.untracked.string(dirname),
0365                 singleObjectsPreselection = cms.string("1==1"),
0366                   singleObjectDrawables =  cms.VPSet(
0367                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0368                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0369                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0370                     ),
0371                 combinedObjectSelection =  cms.string("1==1"),
0372                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0373                 combinedObjectDimension = cms.int32(1),
0374                 combinedObjectDrawables =  cms.VPSet()
0375                 )
0376             ret.append(hltSingleJet)
0377 
0378         for t in jetThresholdsForMB:
0379             partialPathName = "HLT_PAAK4" + jType + "Jet" + str(t) + "_Eta5p1_SeededWithMB_v"
0380             hltSingleJet =  cms.PSet(
0381                 triggerSelection = cms.string(partialPathName+"*"),
0382                 handlerType = cms.string("FromHLT"),
0383                 partialPathName = cms.string(partialPathName),
0384                 partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet"),
0385                 dqmhistolabel  = cms.string("hltSingleAK4" + jType + "Jet" + str(t)),
0386                 mainDQMDirname = cms.untracked.string(dirname),
0387                 singleObjectsPreselection = cms.string("1==1"),
0388                   singleObjectDrawables =  cms.VPSet(
0389                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0390                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0391                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0392                     ),
0393                 combinedObjectSelection =  cms.string("1==1"),
0394                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0395                 combinedObjectDimension = cms.int32(1),
0396                 combinedObjectDrawables =  cms.VPSet()
0397                 )
0398             ret.append(hltSingleJet)
0399 
0400         for t in jetThresholdsFor1:
0401             partialPathName = "HLT_PAAK4" + jType + "Jet" + str(t) + "_Eta1p9toEta5p1_v"
0402             hltSingleJet =  cms.PSet(
0403                 triggerSelection = cms.string(partialPathName+"*"),
0404                 handlerType = cms.string("FromHLT"),
0405                 partialPathName = cms.string(partialPathName),
0406                 partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet" + str(t) + "MinEta1p9"),
0407                 dqmhistolabel  = cms.string("hltSingleAK4" + jType + "Jet" + str(t) + "MinEta1p9"),
0408                 mainDQMDirname = cms.untracked.string(dirname),
0409                 singleObjectsPreselection = cms.string("1==1"),
0410                 singleObjectDrawables =  cms.VPSet(
0411                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0412                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0413                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0414                     ),
0415                 combinedObjectSelection =  cms.string("1==1"),
0416                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0417                 combinedObjectDimension = cms.int32(1),
0418                 combinedObjectDrawables =  cms.VPSet()
0419                   )
0420             ret.append(hltSingleJet)
0421 
0422         for t in jetThresholdsFor2:
0423             partialPathName = "HLT_PAAK4" + jType + "Jet" + str(t) + "_Eta2p9toEta5p1_v"
0424             hltSingleJet =  cms.PSet(
0425                 triggerSelection = cms.string(partialPathName+"*"),
0426                 handlerType = cms.string("FromHLT"),
0427                 partialPathName = cms.string(partialPathName),
0428                 partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet" + str(t) + "MinEta2p9"),
0429                 dqmhistolabel  = cms.string("hltSingleAK4" + jType + "Jet" + str(t) + "MinEta2p9"),
0430                 mainDQMDirname = cms.untracked.string(dirname),
0431                 singleObjectsPreselection = cms.string("1==1"),
0432                 singleObjectDrawables =  cms.VPSet(
0433                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0434                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0435                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0436                     ),
0437                 combinedObjectSelection =  cms.string("1==1"),
0438                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0439                 combinedObjectDimension = cms.int32(1),
0440                 combinedObjectDrawables =  cms.VPSet()
0441                 )
0442             ret.append(hltSingleJet)
0443 
0444         for t in dijetAveThresholds:
0445             partialPathName = "HLT_PADiAK4" + jType + "JetAve" + str(t) + "_Eta5p1_v"
0446             hltSingleJet =  cms.PSet(
0447                 triggerSelection = cms.string(partialPathName+"*"),
0448                 handlerType = cms.string("FromHLT"),
0449                 partialPathName = cms.string(partialPathName),
0450                 partialFilterName  = cms.string("hltDiAk4" + jType + "JetAve"),
0451                 dqmhistolabel  = cms.string("hltDiAk4" + jType + "JetAve" + str(t)),
0452                 mainDQMDirname = cms.untracked.string(dirname),
0453                 singleObjectsPreselection = cms.string("1==1"),
0454                 singleObjectDrawables =  cms.VPSet(
0455                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0456                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0457                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0458                     ),
0459                 combinedObjectSelection =  cms.string("1==1"),
0460                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0461                 combinedObjectDimension = cms.int32(1),
0462                 combinedObjectDrawables =  cms.VPSet()
0463                 )
0464             ret.append(hltSingleJet)
0465 
0466         for t in bjetThresholds:
0467             partialPathName = "HLT_PAAK4" + jType + "BJetCSV" + str(t) + "_Eta2p1_v"
0468             hltSingleJet =  cms.PSet(
0469                 triggerSelection = cms.string(partialPathName+"*"),
0470                 handlerType = cms.string("FromHLT"),
0471                 partialPathName = cms.string(partialPathName),
0472                 partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet"),
0473                 dqmhistolabel  = cms.string("hltSinglePAAK4" + jType + "BJetCSV" + str(t)),
0474                 mainDQMDirname = cms.untracked.string(dirname),
0475                 singleObjectsPreselection = cms.string("1==1"),
0476                 singleObjectDrawables =  cms.VPSet(
0477                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0478                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0479                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0480                     ),
0481                 combinedObjectSelection =  cms.string("1==1"),
0482                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0483                 combinedObjectDimension = cms.int32(1),
0484                 combinedObjectDrawables =  cms.VPSet()
0485                 )
0486             ret.append(hltSingleJet)
0487 
0488     for t in bjetThresholds:
0489         partialPathName = "HLT_PAAK4" + "PF" + "BJetCSV" + str(t) + "_CommonTracking_Eta2p1_v"
0490         hltSingleJet =  cms.PSet(
0491             triggerSelection = cms.string(partialPathName+"*"),
0492             handlerType = cms.string("FromHLT"),
0493             partialPathName = cms.string(partialPathName),
0494             partialFilterName  = cms.string("hltSinglePAAK4" + jType + "Jet"),
0495             dqmhistolabel  = cms.string("hltSinglePAAK4" + jType + "BJetCSV" + str(t) + "CommonTracking"),
0496             mainDQMDirname = cms.untracked.string(dirname),
0497             singleObjectsPreselection = cms.string("1==1"),
0498             singleObjectDrawables =  cms.VPSet(
0499                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0500                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0501                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0502                 ),
0503             combinedObjectSelection =  cms.string("1==1"),
0504             combinedObjectSortCriteria = cms.string("at(0).pt"),
0505             combinedObjectDimension = cms.int32(1),
0506             combinedObjectDrawables =  cms.VPSet()
0507             )
0508         ret.append(hltSingleJet)
0509 
0510     for t in gammaThresholds:
0511         partialPathName = "HLT_PASinglePhoton" + str(t) + "_Eta3p1_v"
0512         hltSingleGamma =  cms.PSet(
0513             triggerSelection = cms.string(partialPathName+"*"),
0514             handlerType = cms.string("FromHLT"),
0515             partialPathName = cms.string(partialPathName),
0516             partialFilterName  = cms.string("hltHIPhoton"),
0517             dqmhistolabel  = cms.string("hltHIPhoton" + str(t)),
0518             mainDQMDirname = cms.untracked.string(dirname),
0519             singleObjectsPreselection = cms.string("1==1"),
0520             singleObjectDrawables =  cms.VPSet(
0521                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0522                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0523                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0524                 ),
0525             combinedObjectSelection =  cms.string("1==1"),
0526             combinedObjectSortCriteria = cms.string("at(0).pt"),
0527             combinedObjectDimension = cms.int32(1),
0528             combinedObjectDrawables =  cms.VPSet()
0529             )
0530         ret.append(hltSingleGamma)
0531 
0532     for t in gammaMBThresholds:
0533         partialPathName = "HLT_PASinglePhoton" + str(t) + "_Eta3p1_SeededWithMB_v"
0534         hltSingleGamma =  cms.PSet(
0535             triggerSelection = cms.string(partialPathName+"*"),
0536             handlerType = cms.string("FromHLT"),
0537             partialPathName = cms.string(partialPathName),
0538             partialFilterName  = cms.string("hltHIPhoton"),
0539             dqmhistolabel  = cms.string("hltHIPhoton" + str(t)),
0540             mainDQMDirname = cms.untracked.string(dirname),
0541             singleObjectsPreselection = cms.string("1==1"),
0542             singleObjectDrawables =  cms.VPSet(
0543                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0544                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0545                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0546                 ),
0547             combinedObjectSelection =  cms.string("1==1"),
0548             combinedObjectSortCriteria = cms.string("at(0).pt"),
0549             combinedObjectDimension = cms.int32(1),
0550             combinedObjectDrawables =  cms.VPSet()
0551             )
0552         ret.append(hltSingleGamma)
0553 
0554     for t in gammaThresholdsEGJet:
0555         partialPathName = "HLT_PASinglePhoton" + str(t) + "_L1EGJet_Eta3p1_v"
0556         hltSingleGamma =  cms.PSet(
0557             triggerSelection = cms.string(partialPathName+"*"),
0558             handlerType = cms.string("FromHLT"),
0559             partialPathName = cms.string(partialPathName),
0560             partialFilterName  = cms.string("hltHIPhoton"),
0561             dqmhistolabel  = cms.string("hltHIPhoton" + str(t)),
0562             mainDQMDirname = cms.untracked.string(dirname),
0563             singleObjectsPreselection = cms.string("1==1"),
0564             singleObjectDrawables =  cms.VPSet(
0565                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0566                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0567                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0568                 ),
0569             combinedObjectSelection =  cms.string("1==1"),
0570             combinedObjectSortCriteria = cms.string("at(0).pt"),
0571             combinedObjectDimension = cms.int32(1),
0572             combinedObjectDrawables =  cms.VPSet()
0573             )
0574         ret.append(hltSingleGamma)
0575 
0576     for t in gammaThresholds:
0577         partialPathName = "HLT_PAPhoton" + str(t) + "_Eta3p1_PPStyle_v"
0578         hltSingleGamma =  cms.PSet(
0579             triggerSelection = cms.string(partialPathName+"*"),
0580             handlerType = cms.string("FromHLT"),
0581             partialPathName = cms.string(partialPathName),
0582             partialFilterName  = cms.string("hltEGBptxAND" + str(t) + "EtFilter"),
0583             dqmhistolabel  = cms.string("hltHIPhoton" + str(t) + "PPStyle"),
0584             mainDQMDirname = cms.untracked.string(dirname),
0585             singleObjectsPreselection = cms.string("1==1"),
0586             singleObjectDrawables =  cms.VPSet(
0587                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0588                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0589                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0590                 ),
0591             combinedObjectSelection =  cms.string("1==1"),
0592             combinedObjectSortCriteria = cms.string("at(0).pt"),
0593             combinedObjectDimension = cms.int32(1),
0594             combinedObjectDrawables =  cms.VPSet()
0595             )
0596         ret.append(hltSingleGamma)
0597 
0598     for t in isogammaThresholds:
0599         partialPathName = "HLT_PASingleIsoPhoton" + str(t) + "_Eta3p1_v"
0600         hltSingleGamma =  cms.PSet(
0601             triggerSelection = cms.string(partialPathName+"*"),
0602             handlerType = cms.string("FromHLT"),
0603             partialPathName = cms.string(partialPathName),
0604             partialFilterName  = cms.string("hltHIPhoton"),
0605             dqmhistolabel  = cms.string("hltHIIsoPhoton" + str(t)),
0606             mainDQMDirname = cms.untracked.string(dirname),
0607             singleObjectsPreselection = cms.string("1==1"),
0608             singleObjectDrawables =  cms.VPSet(
0609                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0610                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0611                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0612                 ),
0613             combinedObjectSelection =  cms.string("1==1"),
0614             combinedObjectSortCriteria = cms.string("at(0).pt"),
0615             combinedObjectDimension = cms.int32(1),
0616             combinedObjectDrawables =  cms.VPSet()
0617             )
0618         ret.append(hltSingleGamma)
0619 
0620     for t in isogammaThresholds:
0621         partialPathName = "HLT_PAIsoPhoton" + str(t) + "_Eta3p1_PPStyle_v"
0622         hltSingleGamma =  cms.PSet(
0623             triggerSelection = cms.string(partialPathName+"*"),
0624             handlerType = cms.string("FromHLT"),
0625             partialPathName = cms.string(partialPathName),
0626             partialFilterName  = cms.string("hltIsoEGBptxAND" + str(t) + "EtFilter"),
0627             dqmhistolabel  = cms.string("hltHIIsoPhoton" + str(t) + "PPStyle"),
0628             mainDQMDirname = cms.untracked.string(dirname),
0629             singleObjectsPreselection = cms.string("1==1"),
0630             singleObjectDrawables =  cms.VPSet(
0631                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0632                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0633                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0634                 ),
0635             combinedObjectSelection =  cms.string("1==1"),
0636             combinedObjectSortCriteria = cms.string("at(0).pt"),
0637             combinedObjectDimension = cms.int32(1),
0638             combinedObjectDrawables =  cms.VPSet()
0639             )
0640         ret.append(hltSingleGamma)
0641 
0642     for t in eleThresholds:
0643         partialPathName = "HLT_PAEle" + str(t) + "_WPLoose_Gsf_v"
0644         hltSingleElectron =  cms.PSet(
0645             triggerSelection = cms.string(partialPathName+"*"),
0646             handlerType = cms.string("FromHLT"),
0647             partialPathName = cms.string(partialPathName),
0648             partialFilterName  = cms.string("hltPAEle" + str(t) + "WPLooseGsfTrackIsoFilter"),
0649             dqmhistolabel  = cms.string("hltHIPAElectron" + str(t)),
0650             mainDQMDirname = cms.untracked.string(dirname),
0651             singleObjectsPreselection = cms.string("1==1"),
0652             singleObjectDrawables =  cms.VPSet(
0653                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0654                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0655                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0656                 ),
0657             combinedObjectSelection =  cms.string("1==1"),
0658             combinedObjectSortCriteria = cms.string("at(0).pt"),
0659             combinedObjectDimension = cms.int32(1),
0660             combinedObjectDrawables =  cms.VPSet()
0661             )
0662         ret.append(hltSingleElectron)
0663 
0664     for t in jetThresholdsMu:
0665         for tMu in muThresholds:
0666             partialPathName = "HLT_PAAK4CaloJet" + str(t) + "_Eta5p1_PAL3Mu" + str(tMu) + "_v"
0667             hltJetMu =  cms.PSet(
0668                 triggerSelection = cms.string(partialPathName+"*"),
0669                 handlerType = cms.string("FromHLT"),
0670                 partialPathName = cms.string(partialPathName),
0671                 partialFilterName  = cms.string("hltSinglePAAK4CaloJet"),
0672                 dqmhistolabel  = cms.string("hltSingleAK4CaloJet" + str(t)),
0673                 mainDQMDirname = cms.untracked.string(dirname),
0674                 singleObjectsPreselection = cms.string("1==1"),
0675                 singleObjectDrawables =  cms.VPSet(
0676                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(420)),
0677                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5.0), max = cms.double(5.0)),
0678                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0679                     ),
0680                 combinedObjectSelection =  cms.string("1==1"),
0681                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0682                 combinedObjectDimension = cms.int32(1),
0683                 combinedObjectDrawables =  cms.VPSet()
0684                 )
0685             ret.append(hltJetMu)
0686 
0687     for t in gammaThresholdsMu:
0688         for tMu in muThresholds:
0689             partialPathName = "HLT_PASinglePhoton" + str(t) + "_Eta3p1_PAL3Mu" + str(tMu) + "_v"
0690             hltGammaMu =  cms.PSet(
0691                 triggerSelection = cms.string(partialPathName+"*"),
0692                 handlerType = cms.string("FromHLT"),
0693                 partialPathName = cms.string(partialPathName),
0694                 partialFilterName  = cms.string("hltHIPhoton"),
0695                 dqmhistolabel  = cms.string("hltHIPhoton" + str(t)),
0696                 mainDQMDirname = cms.untracked.string(dirname),
0697                 singleObjectsPreselection = cms.string("1==1"),
0698                 singleObjectDrawables =  cms.VPSet(
0699                     cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0700                     cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0701                     cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0702                     ),
0703                 combinedObjectSelection =  cms.string("1==1"),
0704                 combinedObjectSortCriteria = cms.string("at(0).pt"),
0705                 combinedObjectDimension = cms.int32(1),
0706                 combinedObjectDrawables =  cms.VPSet()
0707                 )
0708             ret.append(hltGammaMu)
0709 
0710     partialPathName = "HLT_PADoublePhoton15_Eta3p1_Mass50_1000_v"
0711     hltDoubleGamma =  cms.PSet(
0712         triggerSelection = cms.string(partialPathName+"*"),
0713         handlerType = cms.string("FromHLT"),
0714         partialPathName = cms.string(partialPathName),
0715         partialFilterName  = cms.string("hltHIDoublePhotonCut"),
0716         dqmhistolabel  = cms.string("hltHIDoublePhotonCut15"),
0717         mainDQMDirname = cms.untracked.string(dirname),
0718         singleObjectsPreselection = cms.string("1==1"),
0719         singleObjectDrawables =  cms.VPSet(
0720             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
0721             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
0722             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0723             ),
0724         combinedObjectSelection =  cms.string("1==1"),
0725         combinedObjectSortCriteria = cms.string("at(0).pt"),
0726         combinedObjectDimension = cms.int32(1),
0727         combinedObjectDrawables =  cms.VPSet()
0728         )
0729 
0730     ret.append(hltDoubleGamma)
0731 
0732     return ret
0733 
0734 
0735 
0736 
0737 def getPAMBVPSet():
0738     ret=cms.VPSet()
0739     partialPathName = "HLT_PAL1MinimumBiasHF_OR_SinglePixelTrack_v"
0740     hltPAMBPixelTracks =  cms.PSet(
0741         triggerSelection = cms.string(partialPathName+"*"),
0742         handlerType = cms.string("FromHLT"),
0743         partialPathName = cms.string(partialPathName),
0744         partialFilterName  = cms.string("hltPAPixelFilter"),
0745         dqmhistolabel  = cms.string("hltPAMBPixelTracks"),
0746         mainDQMDirname = cms.untracked.string(dirname),
0747         singleObjectsPreselection = cms.string("1==1"),
0748         singleObjectDrawables =  cms.VPSet(
0749             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0750             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0751             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0752         ),
0753         combinedObjectSelection =  cms.string("1==1"),
0754         combinedObjectSortCriteria = cms.string("at(0).pt"),
0755         combinedObjectDimension = cms.int32(1),
0756         combinedObjectDrawables =  cms.VPSet()
0757     )
0758     ret.append(hltPAMBPixelTracks)
0759 
0760     partialPathName = "HLT_PAL1MinimumBiasHF_AND_SinglePixelTrack_v"
0761     hltPAMBPixelTracks =  cms.PSet(
0762         triggerSelection = cms.string(partialPathName+"*"),
0763         handlerType = cms.string("FromHLT"),
0764         partialPathName = cms.string(partialPathName),
0765         partialFilterName  = cms.string("hltPAPixelFilter"),
0766         dqmhistolabel  = cms.string("hltPAMBPixelTracks"),
0767         mainDQMDirname = cms.untracked.string(dirname),
0768         singleObjectsPreselection = cms.string("1==1"),
0769         singleObjectDrawables =  cms.VPSet(
0770             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0771             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0772             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0773         ),
0774         combinedObjectSelection =  cms.string("1==1"),
0775         combinedObjectSortCriteria = cms.string("at(0).pt"),
0776         combinedObjectDimension = cms.int32(1),
0777         combinedObjectDrawables =  cms.VPSet()
0778     )
0779     ret.append(hltPAMBPixelTracks)
0780 
0781     partialPathName = "HLT_PAZeroBias_SinglePixelTrack_v"
0782     hltPAMBPixelTracks =  cms.PSet(
0783         triggerSelection = cms.string(partialPathName+"*"),
0784         handlerType = cms.string("FromHLT"),
0785         partialPathName = cms.string(partialPathName),
0786         partialFilterName  = cms.string("hltPAPixelFilter"),
0787         dqmhistolabel  = cms.string("hltPAMBPixelTracks"),
0788         mainDQMDirname = cms.untracked.string(dirname),
0789         singleObjectsPreselection = cms.string("1==1"),
0790         singleObjectDrawables =  cms.VPSet(
0791             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0792             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0793             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0794         ),
0795         combinedObjectSelection =  cms.string("1==1"),
0796         combinedObjectSortCriteria = cms.string("at(0).pt"),
0797         combinedObjectDimension = cms.int32(1),
0798         combinedObjectDrawables =  cms.VPSet()
0799     )
0800     ret.append(hltPAMBPixelTracks)
0801 
0802     partialPathName = "HLT_PAZeroBias_DoublePixelTrack_v"
0803     hltPAMBPixelTracks =  cms.PSet(
0804         triggerSelection = cms.string(partialPathName+"*"),
0805         handlerType = cms.string("FromHLT"),
0806         partialPathName = cms.string(partialPathName),
0807         partialFilterName  = cms.string("hltPAPixelFilter"),
0808         dqmhistolabel  = cms.string("hltPAMBPixelTracks"),
0809         mainDQMDirname = cms.untracked.string(dirname),
0810         singleObjectsPreselection = cms.string("1==1"),
0811         singleObjectDrawables =  cms.VPSet(
0812             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0813             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0814             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0815         ),
0816         combinedObjectSelection =  cms.string("1==1"),
0817         combinedObjectSortCriteria = cms.string("at(0).pt"),
0818         combinedObjectDimension = cms.int32(1),
0819         combinedObjectDrawables =  cms.VPSet()
0820     )
0821     ret.append(hltPAMBPixelTracks)
0822 
0823     partialPathName = "HLT_PASingleEG5_HFTwoTowerVeto_SingleTrack_v"
0824     hltPAMBPixelTracks =  cms.PSet(
0825         triggerSelection = cms.string(partialPathName+"*"),
0826         handlerType = cms.string("FromHLT"),
0827         partialPathName = cms.string(partialPathName),
0828         partialFilterName  = cms.string("hltPAPixelFilter"),
0829         dqmhistolabel  = cms.string("hlt_PASingleEG5_HFTTV_ST"),
0830         mainDQMDirname = cms.untracked.string(dirname),
0831         singleObjectsPreselection = cms.string("1==1"),
0832         singleObjectDrawables =  cms.VPSet(
0833             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0834             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0835             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0836         ),
0837         combinedObjectSelection =  cms.string("1==1"),
0838         combinedObjectSortCriteria = cms.string("at(0).pt"),
0839         combinedObjectDimension = cms.int32(1),
0840         combinedObjectDrawables =  cms.VPSet()
0841     )
0842     ret.append(hltPAMBPixelTracks)
0843 
0844     partialPathName = "HLT_PASingleEG5_HFOneTowerVeto_SingleTrack_v"
0845     hltPAMBPixelTracks =  cms.PSet(
0846         triggerSelection = cms.string(partialPathName+"*"),
0847         handlerType = cms.string("FromHLT"),
0848         partialPathName = cms.string(partialPathName),
0849         partialFilterName  = cms.string("hltPAPixelFilter"),
0850         dqmhistolabel  = cms.string("hlt_PASingleEG5_HFOTV_ST"),
0851         mainDQMDirname = cms.untracked.string(dirname),
0852         singleObjectsPreselection = cms.string("1==1"),
0853         singleObjectDrawables =  cms.VPSet(
0854             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0855             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0856             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0857         ),
0858         combinedObjectSelection =  cms.string("1==1"),
0859         combinedObjectSortCriteria = cms.string("at(0).pt"),
0860         combinedObjectDimension = cms.int32(1),
0861         combinedObjectDrawables =  cms.VPSet()
0862     )
0863     ret.append(hltPAMBPixelTracks)
0864 
0865     partialPathName = "HLT_PADoubleEG2_HFTwoTowerVeto_SingleTrack_v"
0866     hltPAMBPixelTracks =  cms.PSet(
0867         triggerSelection = cms.string(partialPathName+"*"),
0868         handlerType = cms.string("FromHLT"),
0869         partialPathName = cms.string(partialPathName),
0870         partialFilterName  = cms.string("hltPAPixelFilter"),
0871         dqmhistolabel  = cms.string("hlt_PADoubleEG2_HFTTV_ST"),
0872         mainDQMDirname = cms.untracked.string(dirname),
0873         singleObjectsPreselection = cms.string("1==1"),
0874         singleObjectDrawables =  cms.VPSet(
0875             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0876             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0877             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0878         ),
0879         combinedObjectSelection =  cms.string("1==1"),
0880         combinedObjectSortCriteria = cms.string("at(0).pt"),
0881         combinedObjectDimension = cms.int32(1),
0882         combinedObjectDrawables =  cms.VPSet()
0883     )
0884     ret.append(hltPAMBPixelTracks)
0885 
0886     partialPathName = "HLT_PADoubleEG2_HFOneTowerVeto_SingleTrack_v"
0887     hltPAMBPixelTracks =  cms.PSet(
0888         triggerSelection = cms.string(partialPathName+"*"),
0889         handlerType = cms.string("FromHLT"),
0890         partialPathName = cms.string(partialPathName),
0891         partialFilterName  = cms.string("hltPAPixelFilter"),
0892         dqmhistolabel  = cms.string("hlt_PADoubleEG2_HFOTV_ST"),
0893         mainDQMDirname = cms.untracked.string(dirname),
0894         singleObjectsPreselection = cms.string("1==1"),
0895         singleObjectDrawables =  cms.VPSet(
0896             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(200), min = cms.double(0.0), max = cms.double(100)),
0897             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-2.5), max = cms.double(2.5)),
0898             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0899         ),
0900         combinedObjectSelection =  cms.string("1==1"),
0901         combinedObjectSortCriteria = cms.string("at(0).pt"),
0902         combinedObjectDimension = cms.int32(1),
0903         combinedObjectDrawables =  cms.VPSet()
0904     )
0905     ret.append(hltPAMBPixelTracks)
0906 
0907     return ret
0908 
0909 #Note that jet triggers up to Jet100 are pre-covered; need to handle Jets120 and photon
0910 def getHILowPU2017Triggers():
0911     ret=cms.VPSet()
0912     partialPathName = "HLT_AK4CaloJet120_v"
0913     hltHICaloJet120 =  cms.PSet(
0914         triggerSelection = cms.string(partialPathName+"*"),
0915         handlerType = cms.string("FromHLT"),
0916         partialPathName = cms.string(partialPathName),
0917         partialFilterName  = cms.string("hltSingleAK4CaloJet"),
0918         dqmhistolabel  = cms.string("hltHICaloJet120"),
0919         mainDQMDirname = cms.untracked.string(dirname),
0920         singleObjectsPreselection = cms.string("1==1"),
0921         singleObjectDrawables =  cms.VPSet(
0922             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
0923             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5), max = cms.double(5)),
0924             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0925         ),
0926         combinedObjectSelection =  cms.string("1==1"),
0927         combinedObjectSortCriteria = cms.string("at(0).pt"),
0928         combinedObjectDimension = cms.int32(1),
0929         combinedObjectDrawables =  cms.VPSet()
0930     )
0931     ret.append(hltHICaloJet120)
0932 
0933     hltHIPFJet120 = hltHICaloJet120.clone(partialPathName = "HLT_AK4PFJet120_v",
0934                                           triggerSelection = "HLT_AK4PFJet120_v*",
0935                                           dqmhistolabel = "hltHIPFJet120",
0936                                           partialFilterName = "hltSingleAK4PFJet",
0937                                           )
0938     ret.append(hltHIPFJet120)
0939 
0940     photonThresh = ['10', '15', '20', '30', '40', '50', '60']
0941     photonThresh2 = ['20', '30', '40', '50', '60']
0942 
0943     for thresh in photonThresh:
0944         inString = 'HLT_HISinglePhoton' + thresh + '_Eta3p1ForPPRef_v'
0945         inStringAsterisk = 'HLT_HISinglePhoton' + thresh + '_Eta3p1ForPPRef_v*'
0946         inStringHistoLabel = 'hltHIPhoton' + thresh
0947 
0948         temp = hltHICaloJet120.clone(partialPathName = inString,
0949                                      triggerSelection = inStringAsterisk,
0950                                      dqmhistolabel = inStringHistoLabel,
0951                                      partialFilterName  = "hltHIPhoton",
0952                                      singleObjectDrawables =  cms.VPSet(cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
0953                                                                         cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3), max = cms.double(3)),
0954                                                                         cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0955                                                                         )
0956                                      )
0957         ret.append(temp)
0958 
0959     for thresh in photonThresh2:
0960         inString = 'HLT_Photon' + thresh + '_HoverELoose_v'
0961         inStringAsterisk = 'HLT_Photon' + thresh + '_HoverELoose_v*'
0962         inStringHistoLabel = 'hltPhoton' + thresh
0963         filterName = "hltEG" + thresh + "EtFilterLoose"
0964 
0965         temp = hltHICaloJet120.clone(partialPathName = inString,
0966                                      triggerSelection = inStringAsterisk,
0967                                      dqmhistolabel = inStringHistoLabel,
0968                                      partialFilterName  = filterName,
0969                                      singleObjectDrawables =  cms.VPSet(cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
0970                                                                         cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3), max = cms.double(3)),
0971                                                                         cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0972                                                                         )
0973                                      )
0974         ret.append(temp)
0975 
0976     return ret
0977 
0978 def getPPRefHighPtVPSet():
0979     ret=cms.VPSet()
0980 
0981     # Calo Jets: 60
0982     partialPathName = "HLT_AK4CaloJet60_v"
0983     hltHICaloJet60 =  cms.PSet(
0984         triggerSelection = cms.string(partialPathName+"*"),
0985         handlerType = cms.string("FromHLT"),
0986         partialPathName = cms.string(partialPathName),
0987         partialFilterName  = cms.string("hltSingleAK4CaloJet"),
0988         dqmhistolabel  = cms.string("hltHICaloJet60"),
0989         mainDQMDirname = cms.untracked.string(dirname),
0990         singleObjectsPreselection = cms.string("1==1"),
0991         singleObjectDrawables =  cms.VPSet(
0992             cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
0993             cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-5), max = cms.double(5)),
0994             cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
0995         ),
0996         combinedObjectSelection =  cms.string("1==1"),
0997         combinedObjectSortCriteria = cms.string("at(0).pt"),
0998         combinedObjectDimension = cms.int32(1),
0999         combinedObjectDrawables =  cms.VPSet()
1000     )
1001     ret.append(hltHICaloJet60)
1002 
1003     # PF Jets: 40, 60
1004     hltHIPFJet40 = hltHICaloJet60.clone(partialPathName = "HLT_AK4PFJet40_v",
1005         triggerSelection = "HLT_AK4PFJet40_v*",
1006         dqmhistolabel = "hltHIPFJet40",
1007         partialFilterName  = "hltSingleAK4PFJet"
1008     )
1009     ret.append(hltHIPFJet40)
1010 
1011     hltHIPFJet60 = hltHICaloJet60.clone(partialPathName = "HLT_AK4PFJet60_v",
1012         triggerSelection = "HLT_AK4PFJet60_v*",
1013         dqmhistolabel = "hltHIPFJet60",
1014         partialFilterName  = "hltSingleAK4PFJet"
1015     )
1016     ret.append(hltHIPFJet60)
1017 
1018     # BJets: 30, 40, 60, 80
1019     BJetThresholds = ['30', '40', '60', '80']
1020     for thresh in BJetThresholds:
1021         hltHIBJet = hltHICaloJet60.clone(partialPathName = "HLT_AK4PFJet" + thresh + "_bTag_v",
1022             triggerSelection = "HLT_AK4PFJet" + thresh + "_bTag_v*",
1023             dqmhistolabel = "hltHIPFBJet" + thresh + "",
1024             partialFilterName  = "hltSingleAK4PFJet" + thresh
1025             )
1026         ret.append(hltHIBJet)
1027 
1028     # Calo FWD: 30, 40, 60, 80
1029     CaloFWDThresholds = ['30', '40', '60', '80']
1030     for thresh in CaloFWDThresholds:
1031         hltHICaloJetFWD = hltHICaloJet60.clone(partialPathName = cms.string("HLT_AK4CaloJet" + thresh + "FWD_v"),
1032             triggerSelection = cms.string("HLT_AK4CaloJet" + thresh + "FWD_v*"),
1033             dqmhistolabel = cms.string("hltHICaloJet" + thresh + "FWD"),
1034             partialFilterName  = cms.string("hltSingleAK4CaloJet" + thresh + "FWD")
1035             )
1036         ret.append(hltHICaloJetFWD)
1037 
1038     # PF Jet FWD: 30, 40, 60, 80
1039     PFFWDThresholds = ['30', '40', '60', '80']
1040     for thresh in PFFWDThresholds:
1041         hltHIPFJetFWD = hltHIPFJet60.clone(partialPathName = "HLT_AK4PFJet" + thresh + "FWD_v",
1042             triggerSelection = "HLT_AK4PFJet" + thresh + "FWD_v*",
1043             dqmhistolabel = "hltHIPFJet" + thresh + "FWD",
1044             partialFilterName  = "hltSingleAK4PFJet" + thresh + "FWD"
1045             )
1046         ret.append(hltHIPFJetFWD)
1047 
1048     # Single Photon Eta 1p5
1049     photonThresh = ['10', '15', '20', '30', '40', '50', '60']
1050     for thresh in photonThresh:
1051         inString = 'HLT_HISinglePhoton' + thresh + '_Eta1p5ForPPRef_v'
1052         inStringAsterisk = inString + '*'
1053         inStringHistoLabel = 'hltHIPhoton' + thresh + '1p5'
1054 
1055         temp = hltHICaloJet60.clone(partialPathName = inString,
1056             triggerSelection = inStringAsterisk,
1057             dqmhistolabel = inStringHistoLabel,
1058             partialFilterName  = "hltHIPhoton" + thresh + "Eta1p5",
1059             singleObjectDrawables =  cms.VPSet(cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
1060                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3), max = cms.double(3)),
1061                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
1062                 )
1063             )
1064         ret.append(temp)
1065 
1066     # Electrons: 10, 15, 20, 30, 40
1067     ElectronThreshold = ['10', '15', '20', '30', '40']
1068 
1069     for thresh in ElectronThreshold:
1070         inString = 'HLT_Ele' + thresh + '_WPLoose_Gsf_v'
1071         inStringAsterisk = inString + '*'
1072         inStringHistoLabel = 'hltHIEle' + thresh
1073 
1074         temp = hltHICaloJet60.clone(partialPathName = inString,
1075             triggerSelection = inStringAsterisk,
1076             dqmhistolabel = inStringHistoLabel,
1077             partialFilterName  = "hltEle" + thresh + 'WPLoose1GsfTrackIsoFilter',
1078             singleObjectDrawables =  cms.VPSet(cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(58), min = cms.double(10), max = cms.double(300)),
1079                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3), max = cms.double(3)),
1080                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
1081                 )
1082             )
1083         ret.append(temp)
1084 
1085     # EG+Jet
1086     hltHIEGJet = hltHIPFJet60.clone(partialPathName = "HLT_Ele20_eta2p1_WPTight_Gsf_CentralPFJet15_EleCleaned_v",
1087         triggerSelection = "HLT_Ele20_eta2p1_WPTight_Gsf_CentralPFJet15_EleCleaned_v*",
1088         dqmhistolabel = "hltHIEle20WPLooseAK4PFJet15",
1089         partialFilterName  = "hltEle20PFJet15EleCleaned"
1090         )
1091     ret.append(hltHIEGJet)
1092 
1093     # Ele+Ele
1094     hltHIEGEG = hltHIPFJet60.clone(partialPathName = "HLT_Ele20_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v",
1095         triggerSelection = "HLT_Ele20_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*",
1096         dqmhistolabel = "hltHIEle20Ele12CaloIdLTrackIdLIsoVLDZ",
1097         partialFilterName  = "hltEle20Ele12CaloIdLTrackIdLIsoVLDZFilter"
1098         )
1099     ret.append(hltHIEGEG)
1100 
1101     # Double photon with mass
1102     DoublePhotonThreshold = ['15', '20And15', '20']
1103     for threshold in DoublePhotonThreshold:
1104         partialPathName = "HLT_HIDoublePhoton" + threshold + "_Eta3p1ForPPRef_Mass50to1000_v"
1105         hltDoubleGamma =  cms.PSet(
1106             triggerSelection = cms.string(partialPathName+"*"),
1107             handlerType = cms.string("FromHLT"),
1108             partialPathName = cms.string(partialPathName),
1109             partialFilterName  = cms.string("hltHIDoublePhoton" + threshold[-2:] + "Eta3p1"),
1110             dqmhistolabel  = cms.string("hltHIDoublePhoton" + threshold + '_Eta3p1ForPPRef'),
1111             mainDQMDirname = cms.untracked.string(dirname),
1112             singleObjectsPreselection = cms.string("1==1"),
1113             singleObjectDrawables =  cms.VPSet(
1114                 cms.PSet (name = cms.string("pt"), expression = cms.string("pt"), bins = cms.int32(100), min = cms.double(20), max = cms.double(220)),
1115                 cms.PSet (name = cms.string("eta"), expression = cms.string("eta"), bins = cms.int32(100), min = cms.double(-3.0), max = cms.double(3.0)),
1116                 cms.PSet (name = cms.string("phi"), expression = cms.string("phi"), bins = cms.int32(100), min = cms.double(-3.15), max = cms.double(3.15))
1117                 ),
1118             combinedObjectSelection =  cms.string("1==1"),
1119             combinedObjectSortCriteria = cms.string("at(0).pt"),
1120             combinedObjectDimension = cms.int32(1),
1121             combinedObjectDrawables =  cms.VPSet()
1122             )
1123 
1124         ret.append(hltDoubleGamma)
1125 
1126     return ret
1127 
1128 def getHILowLumi():
1129     ret = cms.VPSet()
1130     ret.extend(getHILowLumiTriggers())
1131     ret.extend(getFullTrackVPSet())
1132     ret.extend(getPAHighMultVPSet())
1133     ret.extend(getPAHighMultHighPtVPSet())
1134     ret.extend(getPAMBVPSet())
1135     ret.extend(getPAHighPtVPSet())
1136     ret.extend(getHILowPU2017Triggers())
1137     ret.extend(getPPRefHighPtVPSet())
1138     return ret
1139 
1140 dirname = "HLT/HI/"
1141 
1142 processName = "HLT"
1143 
1144 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
1145 HILowLumiHLTOfflineSource = DQMEDAnalyzer('FSQDiJetAve',
1146     triggerConfiguration =  cms.PSet(
1147       hltResults = cms.InputTag('TriggerResults','',processName),
1148       l1tResults = cms.InputTag(''),
1149       l1tIgnoreMaskAndPrescale = cms.bool( False ),
1150       throw = cms.bool( False )
1151     ),
1152 
1153 #                                           hltProcessName = cms.string("HLT"),
1154     # HLT paths passing any one of these regular expressions will be included
1155 
1156 #    hltPathsToCheck = cms.vstring(
1157 #      "HLT_HISinglePhoton10_v1",
1158 #    ),
1159 
1160 #    requiredTriggers = cms.untracked.vstring(
1161 #      "HLT_HISinglePhoton10_v1",
1162 #    ),
1163 
1164 
1165     triggerSummaryLabel = cms.InputTag("hltTriggerSummaryAOD","", processName),
1166     triggerResultsLabel = cms.InputTag("TriggerResults","", processName),
1167     useGenWeight = cms.bool(False),
1168     #useGenWeight = cms.bool(True),
1169     todo = cms.VPSet(getHILowLumi())
1170 )
1171 
1172 #from JetMETCorrections.Configuration.CorrectedJetProducers_cff import *
1173 HILowLumiHLTOfflineSourceSequence = cms.Sequence(HILowLumiHLTOfflineSource)