Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #this is the config to define t&p based DQM offline monitoring for e/gamma
0004 
0005 etBinsStd=cms.vdouble(5,10,12.5,15,17.5,20,22.5,25,30,35,40,45,50,60,80,100,150,200,250,300,350,400)
0006 scEtaBinsStd = cms.vdouble(-2.5,-2.4,-2.3,-2.2,-2.1,-2.0,-1.9,-1.8,-1.7,-1.566,-1.4442,-1.3,-1.2,-1.1,-1.0,-0.9,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4442,1.566,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5)
0007 scEtaBinsHEP17 = cms.vdouble(1.3,1.4442,1.566,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5)
0008 scEtaBinsHEM17 = cms.vdouble(-2.5,-2.4,-2.3,-2.2,-2.1,-2.0,-1.9,-1.8,-1.7,-1.566,-1.4442,-1.3)
0009 phiBinsStd = cms.vdouble(-3.32,-2.97,-2.62,-2.27,-1.92,-1.57,-1.22,-0.87,-0.52,-0.18,0.18,0.52,0.87,1.22,1.57,1.92,2.27,2.62,2.97,3.32)
0010 phiBinsHE17 = cms.vdouble(-0.87,-0.80,-0.73,-0.66,-0.59,-0.52)
0011 
0012 etRangeCut= cms.PSet(
0013     rangeVar=cms.string("et"),
0014     allowedRanges=cms.vstring("0:10000"),
0015     )
0016 ecalBarrelEtaCut=cms.PSet(
0017     rangeVar=cms.string("scEta"),
0018     allowedRanges=cms.vstring("-1.4442:1.4442")
0019     )
0020 ecalEndcapEtaCut=cms.PSet(
0021     rangeVar=cms.string("scEta"),
0022     allowedRanges=cms.vstring("-2.5:-1.556","1.556:2.5")
0023     )
0024 ecalEndcapHighEtaCut=cms.PSet(
0025     rangeVar=cms.string("scEta"),
0026     allowedRanges=cms.vstring("-3.0:-2.5","2.5:3.0")
0027     )
0028 ecalEndcapPosHighEtaCut= cms.PSet(
0029     rangeVar=cms.string("scEta"),
0030     allowedRanges=cms.vstring("2.5:3.0"),
0031     )
0032 ecalEndcapNegHighEtaCut= cms.PSet(
0033     rangeVar=cms.string("scEta"),
0034     allowedRanges=cms.vstring("-3.0:-2.5"),
0035     )
0036 
0037 ecalBarrelAndEndcapEtaCut = cms.PSet(
0038     rangeVar=cms.string("scEta"),
0039     allowedRanges=cms.vstring("-1.4442:1.4442","-2.5:-1.556","1.556:2.5"),
0040     )
0041 hcalPosEtaCut= cms.PSet(
0042     rangeVar=cms.string("scEta"),
0043     allowedRanges=cms.vstring("1.3:1.4442","1.556:2.5"),
0044     )
0045 
0046 hcalNegEtaCut= cms.PSet(
0047     rangeVar=cms.string("scEta"),
0048     allowedRanges=cms.vstring("-2.5:-1.556","-1.4442:-1.3"),
0049     )
0050 hcalPhi17Cut = cms.PSet(
0051     rangeVar=cms.string("phi"),
0052     allowedRanges=cms.vstring("-0.87:-0.52"),
0053     )
0054 
0055 muonEtaCut=cms.PSet(
0056     rangeVar=cms.string("eta"),
0057     allowedRanges=cms.vstring("-2.4:2.4")
0058     )
0059 tagAndProbeConfigEle27WPTight = cms.PSet(
0060     trigEvent = cms.InputTag("hltTriggerSummaryAOD","","HLT"),
0061     tagColl = cms.InputTag("gedGsfElectrons"),
0062     probeColl = cms.InputTag("gedGsfElectrons"),
0063     tagVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Summer16-80X-V1-tight"),
0064     probeVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Summer16-80X-V1-tight"),
0065     sampleTrigRequirements = cms.PSet(
0066         hltInputTag = cms.InputTag("TriggerResults","","HLT"),
0067         hltPaths = cms.vstring("HLT_Ele27_WPTight_Gsf_v*","HLT_Ele32_WPTight_Gsf_v*","HLT_Ele35_WPTight_Gsf_v*"
0068                                "HLT_Ele38_WPTight_Gsf_v*",
0069                                "HLT_Ele27_WPTight_Gsf_L1DoubleEG_v*","HLT_Ele32_WPTight_Gsf_L1DoubleEG_v*",
0070                                )
0071         ),
0072     #it is intended that these are the filters of the triggers listed for sampleTrigRequirements
0073     tagFilters = cms.vstring("hltEle27WPTightGsfTrackIsoFilter",
0074                              "hltEle32WPTightGsfTrackIsoFilter"
0075                              "hltEle35noerWPTightGsfTrackIsoFilter"
0076                              "hltEle38noerWPTightGsfTrackIsoFilter"
0077                              "hltEle27L1DoubleEGWPTightGsfTrackIsoFilter",
0078                              "hltEle32L1DoubleEGWPTightGsfTrackIsoFilter" ),
0079     tagFiltersORed = cms.bool(True),
0080     tagRangeCuts = cms.VPSet(ecalBarrelEtaCut),
0081     probeFilters = cms.vstring(),
0082     probeFiltersORed = cms.bool(False),
0083     probeRangeCuts = cms.VPSet(ecalBarrelAndEndcapEtaCut),
0084     minTagProbeDR = cms.double(0),
0085     minMass = cms.double(70.0),
0086     maxMass = cms.double(110.0),
0087     requireOpSign = cms.bool(False),
0088   
0089     
0090     ) 
0091 tagAndProbeConfigEle27WPTightHEP17 = tagAndProbeConfigEle27WPTight.clone( 
0092     probeRangeCuts = cms.VPSet(
0093         hcalPosEtaCut,
0094         hcalPhi17Cut,
0095 ))
0096 tagAndProbeConfigEle27WPTightHEM17 = tagAndProbeConfigEle27WPTight.clone( 
0097     probeRangeCuts = cms.VPSet(
0098         hcalNegEtaCut,
0099         hcalPhi17Cut,
0100 ))
0101 
0102 
0103 tagAndProbeElePhoConfigEle27WPTight = tagAndProbeConfigEle27WPTight.clone(
0104     probeColl=cms.InputTag("gedPhotons"),
0105     probeVIDCuts=cms.InputTag("cutBasedPhotonID-Spring16-V2p2-loose"),
0106     minTagProbeDR=cms.double(0.1)
0107 )
0108 
0109 tagAndProbeElePhoConfigEle27WPTightHEP17 = tagAndProbeElePhoConfigEle27WPTight.clone(
0110      probeRangeCuts = cms.VPSet(
0111         hcalPosEtaCut,
0112         hcalPhi17Cut,
0113 ))
0114 tagAndProbeElePhoConfigEle27WPTightHEM17 = tagAndProbeElePhoConfigEle27WPTight.clone(
0115      probeRangeCuts = cms.VPSet(
0116         hcalNegEtaCut,
0117         hcalPhi17Cut,
0118 ))
0119 
0120 tagAndProbeElePhoHighEtaConfigEle27WPTight = tagAndProbeConfigEle27WPTight.clone(
0121     probeColl=cms.InputTag("gedPhotons"),
0122     probeVIDCuts=cms.InputTag("cutBasedPhotonID-Spring16-V2p2-loose"),
0123     probeRangeCuts = cms.VPSet(),
0124     minTagProbeDR=cms.double(0.1)
0125 )
0126 tagAndProbeElePhoHighEtaConfigEle27WPTightHEP17 = tagAndProbeElePhoHighEtaConfigEle27WPTight.clone(
0127      probeRangeCuts = cms.VPSet(
0128         ecalEndcapPosHighEtaCut,
0129         hcalPhi17Cut,
0130 ))
0131 tagAndProbeElePhoHighEtaConfigEle27WPTightHEM17 = tagAndProbeElePhoHighEtaConfigEle27WPTight.clone(
0132      probeRangeCuts = cms.VPSet(
0133         ecalEndcapPosHighEtaCut,
0134         hcalPhi17Cut,
0135 ))
0136 
0137 
0138 tagAndProbeMuonEleConfigIsoMu = cms.PSet(
0139     trigEvent = cms.InputTag("hltTriggerSummaryAOD","","HLT"),
0140     tagColl = cms.InputTag("muons"),
0141     probeColl = cms.InputTag("gedGsfElectrons"),
0142     tagVIDCuts = cms.InputTag("egmDQMSelectedMuons"),
0143     probeVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Summer16-80X-V1-tight"),
0144     sampleTrigRequirements = cms.PSet(
0145         hltInputTag = cms.InputTag("TriggerResults","","HLT"),
0146         hltPaths = cms.vstring("HLT_IsoMu27_v*")
0147                                
0148         ),
0149     #it is intended that these are the filters of the triggers listed for sampleTrigRequirements
0150     tagFilters = cms.vstring("hltL3crIsoL1sMu22Or25L1f0L2f10QL3f27QL3trkIsoFiltered0p07"),
0151     tagFiltersORed = cms.bool(True),
0152     tagRangeCuts = cms.VPSet(muonEtaCut),
0153     probeFilters = cms.vstring(),
0154     probeFiltersORed = cms.bool(False),
0155     probeRangeCuts = cms.VPSet(ecalBarrelAndEndcapEtaCut),
0156     minTagProbeDR = cms.double(0.4),
0157     minMass = cms.double(-1),
0158     maxMass = cms.double(-1),
0159     requireOpSign = cms.bool(False),
0160     )
0161 
0162 tagAndProbeMuonEleConfigIsoMuHEP17 = tagAndProbeMuonEleConfigIsoMu.clone(
0163     probeRangeCuts = cms.VPSet(
0164         hcalPosEtaCut,
0165         hcalPhi17Cut,
0166         )
0167     )
0168 tagAndProbeMuonEleConfigIsoMuHEM17 = tagAndProbeMuonEleConfigIsoMu.clone(
0169     probeRangeCuts = cms.VPSet(
0170         hcalNegEtaCut,
0171         hcalPhi17Cut,
0172         )
0173     )
0174 
0175 tagAndProbeMuonPhoConfigIsoMu = tagAndProbeMuonEleConfigIsoMu.clone(
0176     probeColl=cms.InputTag("gedPhotons"),
0177     probeVIDCuts=cms.InputTag("cutBasedPhotonID-Spring16-V2p2-loose"),
0178 )
0179 tagAndProbeMuonPhoConfigIsoMuHEP17 = tagAndProbeMuonPhoConfigIsoMu.clone(
0180     probeRangeCuts = cms.VPSet(
0181         hcalPosEtaCut,
0182         hcalPhi17Cut,
0183         )
0184     )
0185 tagAndProbeMuonPhoConfigIsoMuHEM17 = tagAndProbeMuonPhoConfigIsoMu.clone(
0186     probeRangeCuts = cms.VPSet(
0187         hcalNegEtaCut,
0188         hcalPhi17Cut,
0189         )
0190     )
0191 
0192 
0193 egammaStdHistConfigs = cms.VPSet(
0194     cms.PSet(
0195         histType=cms.string("1D"),
0196         vsVar=cms.string("et"),
0197         nameSuffex=cms.string("_EBvsEt"),
0198         rangeCuts=cms.VPSet(ecalBarrelEtaCut),
0199         binLowEdges=etBinsStd,
0200         ),
0201     cms.PSet(
0202         histType=cms.string("1D"),
0203         vsVar=cms.string("et"),
0204         nameSuffex=cms.string("_EEvsEt"),
0205         rangeCuts=cms.VPSet(ecalEndcapEtaCut),
0206         binLowEdges=etBinsStd,
0207         ),
0208     cms.PSet(
0209         histType=cms.string("1D"),
0210         vsVar=cms.string("scEta"),
0211         nameSuffex=cms.string("_vsSCEta"),
0212         rangeCuts=cms.VPSet(),
0213         binLowEdges=scEtaBinsStd,
0214         ),
0215     cms.PSet(
0216         histType=cms.string("1D"),
0217         vsVar=cms.string("phi"),
0218         nameSuffex=cms.string("_EBvsPhi"),
0219         rangeCuts=cms.VPSet(ecalBarrelEtaCut),
0220         binLowEdges=phiBinsStd,
0221         ),
0222     cms.PSet(
0223         histType=cms.string("1D"),
0224         vsVar=cms.string("phi"),
0225         nameSuffex=cms.string("_EEvsPhi"),
0226         rangeCuts=cms.VPSet(ecalEndcapEtaCut),
0227         binLowEdges=phiBinsStd,
0228         ),
0229     cms.PSet(
0230         histType=cms.string("2D"),
0231         xVar=cms.string("scEta"),
0232         yVar=cms.string("phi"),
0233         nameSuffex=cms.string("_vsSCEtaPhi"), 
0234         rangeCuts=cms.VPSet(),
0235         xBinLowEdges=scEtaBinsStd,
0236         yBinLowEdges=phiBinsStd,
0237         ),
0238     
0239     )
0240 
0241 egammaHEP17HistConfigs = cms.VPSet(
0242     cms.PSet(
0243         histType=cms.string("1D"),
0244         vsVar=cms.string("et"),
0245         nameSuffex=cms.string("_vsEt"),
0246         rangeCuts=cms.VPSet(),
0247         binLowEdges=etBinsStd,
0248         ),
0249     cms.PSet(
0250         histType=cms.string("1D"),
0251         vsVar=cms.string("scEta"),
0252         nameSuffex=cms.string("_vsSCEta"),
0253         rangeCuts=cms.VPSet(),
0254         binLowEdges=scEtaBinsHEP17,
0255         ),
0256     cms.PSet(
0257         histType=cms.string("1D"),
0258         vsVar=cms.string("phi"),
0259         nameSuffex=cms.string("_vsPhi"),
0260         rangeCuts=cms.VPSet(),
0261         binLowEdges=phiBinsHE17,
0262     )
0263 )
0264 egammaHEM17HistConfigs = cms.VPSet(
0265     cms.PSet(
0266         histType=cms.string("1D"),
0267         vsVar=cms.string("et"),
0268         nameSuffex=cms.string("_vsEt"),
0269         rangeCuts=cms.VPSet(),
0270         binLowEdges=etBinsStd,
0271         ),
0272     cms.PSet(
0273         histType=cms.string("1D"),
0274         vsVar=cms.string("scEta"),
0275         nameSuffex=cms.string("_vsSCEta"),
0276         rangeCuts=cms.VPSet(),
0277         binLowEdges=scEtaBinsHEM17,
0278         ),
0279     cms.PSet(
0280         histType=cms.string("1D"),
0281         vsVar=cms.string("phi"),
0282         nameSuffex=cms.string("_vsPhi"),
0283         rangeCuts=cms.VPSet(),
0284         binLowEdges=phiBinsHE17,
0285     )
0286 )
0287 egammaHighEtaHistConfigs = cms.VPSet(
0288     cms.PSet(
0289         histType=cms.string("1D"),
0290         vsVar=cms.string("et"),
0291         nameSuffex=cms.string("_vsEt"),
0292         rangeCuts=cms.VPSet(),
0293         binLowEdges=etBinsStd,
0294         ),
0295     cms.PSet(
0296         histType=cms.string("1D"),
0297         vsVar=cms.string("scEta"),
0298         nameSuffex=cms.string("_vsSCEta"),
0299         rangeCuts=cms.VPSet(),
0300         binLowEdges=cms.vdouble(-3.0,-2.9,-2.8,-2.7,-2.6,-2.5,2.5,2.6,2.7,2.8,2.9,3.0),
0301         ),
0302     cms.PSet(
0303         histType=cms.string("1D"),
0304         vsVar=cms.string("phi"),
0305         nameSuffex=cms.string("_vsPhi"),
0306         rangeCuts=cms.VPSet(),
0307         binLowEdges=phiBinsStd,
0308         ),
0309     cms.PSet(
0310         histType=cms.string("2D"),
0311         xVar=cms.string("scEta"),
0312         yVar=cms.string("phi"),
0313         nameSuffex=cms.string("_vsSCEtaPhi"), 
0314         rangeCuts=cms.VPSet(),
0315         xBinLowEdges=cms.vdouble(-3.0,-2.9,-2.8,-2.7,-2.6,-2.5,2.5,2.6,2.7,2.8,2.9,3.0),
0316         yBinLowEdges=phiBinsStd,
0317         ),
0318     
0319     )
0320 
0321 egammaStdFiltersToMonitor= cms.VPSet(
0322     cms.PSet(
0323         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
0324         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
0325         filterName = cms.string("hltEle33CaloIdLMWPMS2Filter"),
0326         histTitle = cms.string(""),
0327         tagExtraFilter = cms.string(""),
0328         ),
0329     cms.PSet(
0330         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
0331         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
0332         filterName = cms.string("hltDiEle33CaloIdLMWPMS2UnseededFilter"),
0333         histTitle = cms.string(""),
0334         tagExtraFilter = cms.string("hltEle33CaloIdLMWPMS2Filter"),
0335         ),
0336     cms.PSet(
0337         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon300_NoHE"),
0338         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("320:99999")),),
0339         filterName = cms.string("hltEG300erFilter"),
0340         histTitle = cms.string(""),
0341         tagExtraFilter = cms.string(""),
0342         ),
0343     cms.PSet(
0344         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton70"),
0345         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
0346         filterName = cms.string("hltEG70HEFilter"),
0347         histTitle = cms.string(""),
0348         tagExtraFilter = cms.string(""),
0349         ),
0350     cms.PSet(
0351         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton70"),
0352         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
0353         filterName = cms.string("hltDiEG70HEUnseededFilter"),
0354         histTitle = cms.string(""),
0355         tagExtraFilter = cms.string("hltEG70HEFilter"),
0356         ),
0357     cms.PSet(
0358         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton85"),
0359         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("90:99999")),),
0360         filterName = cms.string("hltEG85HEFilter"),
0361         histTitle = cms.string(""),
0362         tagExtraFilter = cms.string(""),
0363         ),
0364     cms.PSet(
0365         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton85"),
0366         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
0367         filterName = cms.string("hltDiEG85HEUnseededFilter"),
0368         histTitle = cms.string(""),
0369         tagExtraFilter = cms.string("hltEG85HEFilter"),
0370         ),
0371     
0372     cms.PSet(
0373         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiSC30_18_EIso_AND_HE_Mass70"),
0374         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0375         filterName = cms.string("hltEG30EIso15HE30EcalIsoLastFilter"),
0376         histTitle = cms.string(""),
0377         tagExtraFilter = cms.string(""),
0378         ),
0379     cms.PSet(
0380         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiSC30_18_EIso_AND_HE_Mass70"),
0381         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0382         filterName = cms.string("hltEG18EIso15HE30EcalIsoUnseededFilter"),
0383         histTitle = cms.string(""),
0384         tagExtraFilter = cms.string("hltEG30EIso15HE30EcalIsoLastFilter"),
0385         ),
0386     cms.PSet(
0387         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL"),
0388         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("26:99999")),),
0389         filterName = cms.string("hltEle23Ele12CaloIdLTrackIdLIsoVLTrackIsoLeg1Filter"),
0390         histTitle = cms.string(""),
0391         tagExtraFilter = cms.string(""),
0392         ),
0393     cms.PSet(
0394         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL"),
0395         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
0396         filterName = cms.string("hltEle23Ele12CaloIdLTrackIdLIsoVLTrackIsoLeg2Filter"),
0397         histTitle = cms.string(""),
0398         tagExtraFilter = cms.string(""),
0399         ),
0400     cms.PSet(
0401         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_WPTight_Gsf"),
0402         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0403         filterName = cms.string("hltEle27WPTightGsfTrackIsoFilter"),
0404         histTitle = cms.string(""),
0405         tagExtraFilter = cms.string(""),
0406         ),
0407     cms.PSet(
0408         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf"),
0409         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0410         filterName = cms.string("hltEle32WPTightGsfTrackIsoFilter"),
0411         histTitle = cms.string(""),
0412         tagExtraFilter = cms.string(""),
0413         ),
0414     cms.PSet(
0415         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele35_WPTight_Gsf"),
0416         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
0417         filterName = cms.string("hltEle35noerWPTightGsfTrackIsoFilter"),
0418         histTitle = cms.string(""),
0419         tagExtraFilter = cms.string(""),
0420         ),
0421     cms.PSet(
0422         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele38_WPTight_Gsf"),
0423         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
0424         filterName = cms.string("hltEle38noerWPTightGsfTrackIsoFilter"),
0425         histTitle = cms.string(""),
0426         tagExtraFilter = cms.string(""),
0427         ),
0428     cms.PSet(
0429         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_WPTight_Gsf_L1DoubleEG"),
0430         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0431         filterName = cms.string("hltEle27L1DoubleEGWPTightGsfTrackIsoFilter"),
0432         histTitle = cms.string(""),
0433         tagExtraFilter = cms.string(""),
0434         ),
0435     cms.PSet(
0436         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf_L1DoubleEG"),
0437         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0438         filterName = cms.string("hltEle32L1DoubleEGWPTightGsfTrackIsoFilter"),
0439         histTitle = cms.string(""),
0440         tagExtraFilter = cms.string(""),
0441         ), 
0442     cms.PSet(
0443         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon25"),
0444         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("28:99999")),),
0445         filterName = cms.string("hltEG25L1EG18HEFilter"),
0446         histTitle = cms.string(""),
0447         tagExtraFilter = cms.string(""),
0448         ),
0449 
0450     cms.PSet(
0451         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon33"),
0452         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0453         filterName = cms.string("hltEG33L1EG26HEFilter"),
0454         histTitle = cms.string(""),
0455         tagExtraFilter = cms.string(""),
0456         ),
0457     cms.PSet(
0458         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon50"),
0459         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("55:99999")),),
0460         filterName = cms.string("hltEG50HEFilter"),
0461         histTitle = cms.string(""),
0462         tagExtraFilter = cms.string(""),
0463         ),  
0464     cms.PSet(
0465         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon75"),
0466         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
0467         filterName = cms.string("hltEG75HEFilter"),
0468         histTitle = cms.string(""),
0469         tagExtraFilter = cms.string(""),
0470         ),
0471     cms.PSet(
0472         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon90"),
0473         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("95:99999")),),
0474         filterName = cms.string("hltEG90HEFilter"),
0475         histTitle = cms.string(""),
0476         tagExtraFilter = cms.string(""),
0477         ), 
0478     cms.PSet(
0479         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon120"),
0480         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("95:99999")),),
0481          filterName = cms.string("hltEG120HEFilter"),
0482         histTitle = cms.string(""),
0483         tagExtraFilter = cms.string(""),
0484         ),
0485     cms.PSet(
0486         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon150"),
0487         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("160:99999")),),
0488         filterName = cms.string("hltEG150HEFilter"),
0489         histTitle = cms.string(""),
0490         tagExtraFilter = cms.string(""),
0491         ), 
0492     cms.PSet(
0493         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon175"),
0494         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("180:99999")),),
0495         filterName = cms.string("hltEG175HEFilter"),
0496         histTitle = cms.string(""),
0497         tagExtraFilter = cms.string(""),
0498         ),
0499     cms.PSet(
0500         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon200"),
0501         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("220:99999")),),
0502         filterName = cms.string("hltEG200HEFilter"),
0503         histTitle = cms.string(""),
0504         tagExtraFilter = cms.string(""),
0505         ), 
0506     cms.PSet(
0507         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_CaloJet500"),
0508         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("500:99999")),),
0509         filterName = cms.string("hltSingleCaloJet500"),
0510         histTitle = cms.string(""),
0511         tagExtraFilter = cms.string(""),
0512         ),
0513     cms.PSet(
0514         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_CaloJet550"),
0515         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("550:99999")),),
0516         filterName = cms.string("hltSingleCaloJet550"),
0517         histTitle = cms.string(""),
0518         tagExtraFilter = cms.string(""),
0519         ),
0520     cms.PSet(
0521         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
0522         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("32:99999")),),
0523         filterName = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
0524         histTitle = cms.string(""),
0525         tagExtraFilter = cms.string(""),
0526         ),
0527     cms.PSet(
0528         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele50_CaloIdVT_GsfTrkIdT_PFJet165"),
0529         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("55:99999")),),
0530         filterName = cms.string("hltEle50CaloIdVTGsfTrkIdTGsfDphiFilter"),
0531         histTitle = cms.string(""),
0532         tagExtraFilter = cms.string(""), 
0533         ),
0534     cms.PSet(
0535         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele115_CaloIdVT_GsfTrkIdT"),
0536         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("120:99999")),),
0537         filterName = cms.string("hltEle115CaloIdVTGsfTrkIdTGsfDphiFilter"),
0538         histTitle = cms.string(""),
0539         tagExtraFilter = cms.string(""),
0540         ),
0541     cms.PSet(
0542         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele135_CaloIdVT_GsfTrkIdT"),
0543         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("140:99999")),),
0544         filterName = cms.string("hltEle135CaloIdVTGsfTrkIdTGsfDphiFilter"),
0545         histTitle = cms.string(""),
0546         tagExtraFilter = cms.string(""),
0547         ),
0548     cms.PSet(
0549         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele145_CaloIdVT_GsfTrkIdT"),
0550         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("150:99999")),),
0551         filterName = cms.string("hltEle145CaloIdVTGsfTrkIdTGsfDphiFilter"),
0552         histTitle = cms.string(""),
0553         tagExtraFilter = cms.string(""),
0554         ), 
0555     cms.PSet(
0556         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele200_CaloIdVT_GsfTrkIdT"),
0557         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("210:99999")),),
0558         filterName = cms.string("hltEle200CaloIdVTGsfTrkIdTGsfDphiFilter"),
0559         histTitle = cms.string(""),
0560         tagExtraFilter = cms.string(""),
0561         ),
0562     cms.PSet(
0563         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele250_CaloIdVT_GsfTrkIdT"),
0564         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("260:99999")),),
0565         filterName = cms.string("hltEle250CaloIdVTGsfTrkIdTGsfDphiFilter"),
0566         histTitle = cms.string(""),
0567         tagExtraFilter = cms.string(""),
0568         ),
0569     cms.PSet(
0570         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele300_CaloIdVT_GsfTrkIdT"),
0571         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("310:99999")),),
0572         filterName = cms.string("hltEle300CaloIdVTGsfTrkIdTGsfDphiFilter"),
0573         histTitle = cms.string(""),
0574         tagExtraFilter = cms.string(""),
0575         ),
0576     cms.PSet(
0577         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele20_WPLoose_Gsf"),
0578         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0579         filterName = cms.string("hltEle20WPLoose1GsfTrackIsoFilter"),
0580         histTitle = cms.string(""),
0581         tagExtraFilter = cms.string(""),
0582         ),
0583     cms.PSet(
0584         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele20_eta2p1_WPLoose_Gsf"),
0585         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0586         filterName = cms.string("hltEle20erWPLoose1GsfTrackIsoFilter"),
0587         histTitle = cms.string(""),
0588         tagExtraFilter = cms.string(""),
0589         ), 
0590     cms.PSet(
0591         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele20_WPTight_Gsf"),
0592         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0593         filterName = cms.string("hltEle20WPTightGsfTrackIsoFilter"),
0594         histTitle = cms.string(""),
0595         tagExtraFilter = cms.string(""),
0596         ), 
0597     cms.PSet(
0598         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiEle27_WPTightCaloOnly_L1DoubleEG"),
0599         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0600         filterName = cms.string("hltEle27L1DoubleEGWPTightEcalIsoFilter"),
0601         histTitle = cms.string(""),
0602         tagExtraFilter = cms.string(""),
0603         ), 
0604     cms.PSet(
0605         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiEle27_WPTightCaloOnly_L1DoubleEG"),
0606         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0607         filterName = cms.string("hltDiEle27L1DoubleEGWPTightEcalIsoFilter"),
0608         histTitle = cms.string(""),
0609         tagExtraFilter = cms.string("hltEle27L1DoubleEGWPTightEcalIsoFilter"),
0610         ),
0611     cms.PSet(
0612         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle27_CaloIdL_MW"),
0613         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0614         filterName = cms.string("hltEle27CaloIdLMWPMS2Filter"),
0615         histTitle = cms.string(""),
0616         tagExtraFilter = cms.string(""),
0617         ), 
0618     cms.PSet(
0619         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle27_CaloIdL_MW"),
0620         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0621         filterName = cms.string("hltDiEle27CaloIdLMWPMS2UnseededFilter"),
0622         histTitle = cms.string(""),
0623         tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
0624         ), 
0625     cms.PSet(
0626         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle25_CaloIdL_MW"),
0627         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("28:99999")),),
0628         filterName = cms.string("hltEle25CaloIdLMWPMS2Filter"),
0629         histTitle = cms.string(""),
0630         tagExtraFilter = cms.string(""),
0631         ), 
0632     cms.PSet(
0633         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle25_CaloIdL_MW"),
0634         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("28:99999")),),
0635         filterName = cms.string("hltDiEle25CaloIdLMWPMS2UnseededFilter"),
0636         histTitle = cms.string(""),
0637         tagExtraFilter = cms.string("hltEle25CaloIdLMWPMS2Filter"),
0638         ),  
0639     cms.PSet(
0640         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
0641         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0642         filterName = cms.string("hltEle27CaloIdLMWPMS2Filter"),
0643         histTitle = cms.string(""),
0644         tagExtraFilter = cms.string(""),
0645         ),
0646      cms.PSet(
0647         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
0648         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0649         filterName = cms.string("hltDiEle27CaloIdLMWPMS2UnseededFilter"),
0650         histTitle = cms.string(""),
0651         tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
0652         ),
0653      cms.PSet(
0654         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
0655         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
0656         filterName = cms.string("hltEle37CaloIdLMWPMS2UnseededFilter"),
0657         histTitle = cms.string(""),
0658         tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
0659         ),
0660     cms.PSet(
0661         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele35_WPTight_Gsf_L1EGMT"),
0662         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("38:99999")),),
0663         filterName = cms.string("hltSingleEle35WPTightGsfL1EGMTTrackIsoFilter"),
0664         histTitle = cms.string(""),
0665         tagExtraFilter = cms.string(""),
0666         ),
0667     
0668      )
0669 
0670 
0671   
0672 egammaPhoHighEtaFiltersToMonitor= cms.VPSet(
0673     cms.PSet(
0674         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
0675         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("22:99999")),
0676                               ecalEndcapHighEtaCut
0677                               ),
0678         filterName = cms.string("hltEle28HighEtaSC20Mass55Filter"),
0679         histTitle = cms.string(""),
0680         tagExtraFilter = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
0681         ), 
0682     cms.PSet(
0683         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
0684         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("22:99999")),
0685                               ecalEndcapHighEtaCut
0686                               ),
0687         filterName = cms.string("hltEle28HighEtaSC20HcalIsoFilterUnseeded"),
0688         histTitle = cms.string(""),
0689         tagExtraFilter = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
0690         ),
0691   
0692 ) 
0693 egammaPhoFiltersToMonitor= cms.VPSet(
0694     cms.PSet(
0695         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2"),
0696         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0697         filterName = cms.string("hltEG20CaloIdLV2ClusterShapeL1TripleEGFilter"),
0698         histTitle = cms.string(""),
0699         tagExtraFilter = cms.string(""),
0700         ), 
0701     cms.PSet(
0702         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2"),
0703         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0704         filterName = cms.string("hltTriEG20CaloIdLV2ClusterShapeUnseededFilter"),
0705         histTitle = cms.string(""),
0706         tagExtraFilter = cms.string("hltEG20CaloIdLV2ClusterShapeL1TripleEGFilter"),
0707         ), 
0708     cms.PSet(
0709         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2_R9IdVL"),
0710         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0711         filterName = cms.string("hltEG20CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0712         histTitle = cms.string(""),
0713         tagExtraFilter = cms.string(""),
0714         ), 
0715     cms.PSet(
0716         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2_R9IdVL"),
0717         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0718         filterName = cms.string("hltTriEG20CaloIdLV2R9IdVLR9IdUnseededFilter"),
0719         histTitle = cms.string(""),
0720         tagExtraFilter = cms.string("hltEG20CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0721         ), 
0722     #first seeded leg
0723     cms.PSet(
0724         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
0725         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0726         filterName = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
0727         histTitle = cms.string(""),
0728         tagExtraFilter = cms.string(""),
0729         ), 
0730     #second unseeded leg, 10 GeV 
0731     cms.PSet(
0732         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
0733         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
0734         filterName = cms.string("hltEG10CaloIdLV2ClusterShapeUnseededFilter"),
0735         histTitle = cms.string(""),
0736         tagExtraFilter = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
0737         ), 
0738     #second unseded leg, 30 GeV
0739     cms.PSet(
0740         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
0741         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0742         filterName = cms.string("hltDiEG30CaloIdLV2EtUnseededFilter"),
0743         histTitle = cms.string(""),
0744         tagExtraFilter = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
0745         ), 
0746     #first seeded leg
0747     cms.PSet(
0748         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
0749         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0750         filterName = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0751         histTitle = cms.string(""),
0752         tagExtraFilter = cms.string(""),
0753         ), 
0754     #second unseeded leg, 10 GeV
0755     cms.PSet(
0756         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
0757         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
0758         filterName = cms.string("hltEG10CaloIdLV2R9IdVLR9IdUnseededFilter"),
0759         histTitle = cms.string(""),
0760         tagExtraFilter = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0761                                      
0762         ), 
0763     #second unseeded leg, 30 GeV
0764      cms.PSet(
0765         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
0766         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0767         filterName = cms.string("hltDiEG30CaloIdLV2R9IdVLEtUnseededFilter"),
0768         histTitle = cms.string(""),
0769         tagExtraFilter = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0770         ), 
0771     #first seeded leg
0772      cms.PSet(
0773         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
0774         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("38:99999")),),
0775         filterName = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0776         histTitle = cms.string(""),
0777         tagExtraFilter = cms.string(""),
0778         ), 
0779     #second unseeded leg, 5 GeV
0780     cms.PSet(
0781         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
0782         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("10:99999")),),
0783         filterName = cms.string("hltEG5CaloIdLV2R9IdVLR9IdUnseededFilter"),
0784         histTitle = cms.string(""),
0785         tagExtraFilter = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0786         ), 
0787     #second unseeded leg, 35 GeV
0788     cms.PSet(
0789         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
0790         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("38:99999")),),
0791         filterName = cms.string("hltDiEG35CaloIdLV2R9IdVLEtUnseededFilter"),
0792         histTitle = cms.string(""),
0793         tagExtraFilter = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
0794         ), 
0795 
0796 ) 
0797 
0798 
0799 egammaMuPhoFiltersToMonitor= cms.VPSet(
0800     cms.PSet(
0801         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu12_DoublePhoton20"),
0802         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0803         filterName = cms.string("hltMu12DiEG20HEUnseededFilter"),
0804         histTitle = cms.string(""),
0805         tagExtraFilter = cms.string("hltL3fL1sMu12Diphoton20L1f0L2f8QL3Filtered12"),
0806         ), 
0807 )
0808 
0809 egammaMuEleFiltersToMonitor= cms.VPSet(
0810     cms.PSet(
0811         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu12_DoublePhoton20"),
0812         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
0813         filterName = cms.string("hltMu12DiEG20HEUnseededFilter"),
0814         histTitle = cms.string(""),
0815         tagExtraFilter = cms.string("hltL3fL1sMu12Diphoton20L1f0L2f8QL3Filtered12"),
0816         ), 
0817     cms.PSet(
0818         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu37_Ele27_CaloIdL_MW"),
0819         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
0820         filterName = cms.string("hltEle27CaloIdLMWPMS2UnseededFilter"),
0821         histTitle = cms.string(""),
0822         tagExtraFilter = cms.string("hltL3fL1sMu16orMu25L1f0L2f10QL3Filtered37Q"),
0823         ), 
0824     cms.PSet(
0825         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu27_Ele37_CaloIdL_MW"),
0826         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
0827         filterName = cms.string("hltEle37CaloIdLMWPMS2UnseededFilter"),
0828         histTitle = cms.string(""),
0829         tagExtraFilter = cms.string("hltL3fL1sMu16orMu25L1f0L2f10QL3Filtered27Q"),
0830         ),
0831     cms.PSet(
0832         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
0833         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
0834         filterName = cms.string("hltEle33CaloIdLMWPMS2Filter"),
0835         histTitle = cms.string(""),
0836         tagExtraFilter = cms.string(""),
0837         ),
0838     cms.PSet(
0839         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf"),
0840         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0841         filterName = cms.string("hltEle32WPTightGsfTrackIsoFilter"),
0842         histTitle = cms.string(""),
0843         tagExtraFilter = cms.string(""),
0844         ),
0845     cms.PSet(
0846         folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf_L1DoubleEG"),
0847         rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
0848         filterName = cms.string("hltEle32L1DoubleEGWPTightGsfTrackIsoFilter"),
0849         histTitle = cms.string(""),
0850         tagExtraFilter = cms.string(""),
0851         ),
0852 )
0853 
0854 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0855 egHLTDQMOfflineTnPSource = DQMEDAnalyzer("HLTEleTagAndProbeOfflineSource",
0856                                           tagAndProbeCollections = cms.VPSet(
0857         cms.PSet( 
0858             tagAndProbeConfigEle27WPTight,
0859             histConfigs = egammaStdHistConfigs,
0860             baseHistName = cms.string("eleWPTightTag_"),
0861             filterConfigs = egammaStdFiltersToMonitor,
0862         ),
0863         cms.PSet(
0864             tagAndProbeConfigEle27WPTightHEM17,
0865             histConfigs = egammaHEM17HistConfigs,
0866             baseHistName = cms.string("eleWPTightTag-HEM17_"),
0867             filterConfigs = egammaStdFiltersToMonitor,
0868         ),
0869         cms.PSet(
0870             tagAndProbeConfigEle27WPTightHEP17,
0871             histConfigs = egammaHEP17HistConfigs,
0872             baseHistName = cms.string("eleWPTightTag-HEP17_"),
0873             filterConfigs = egammaStdFiltersToMonitor,
0874         ),
0875            
0876         )
0877 )
0878 
0879 egHLTElePhoHighEtaDQMOfflineTnPSource = DQMEDAnalyzer("HLTElePhoTagAndProbeOfflineSource",
0880                                                        tagAndProbeCollections = cms.VPSet(
0881         cms.PSet( 
0882             tagAndProbeElePhoHighEtaConfigEle27WPTight,
0883             histConfigs = egammaHighEtaHistConfigs,
0884             baseHistName = cms.string("eleWPTightTagPhoHighEtaProbe_"),
0885             filterConfigs = egammaPhoHighEtaFiltersToMonitor,
0886         ),
0887         cms.PSet(
0888             tagAndProbeElePhoHighEtaConfigEle27WPTightHEM17,
0889             histConfigs = egammaHighEtaHistConfigs,
0890             baseHistName = cms.string("eleWPTightTagPhoHighEtaProbe-HEM17_"),
0891             filterConfigs = egammaPhoHighEtaFiltersToMonitor,
0892         ),
0893         cms.PSet(
0894             tagAndProbeElePhoHighEtaConfigEle27WPTightHEP17,
0895             histConfigs = egammaHighEtaHistConfigs,
0896             baseHistName = cms.string("eleWPTightTagPhoHighEtaProbe-HEP17_"),
0897             filterConfigs = egammaPhoHighEtaFiltersToMonitor,
0898         ),
0899            
0900         )
0901                                                 )
0902 egHLTElePhoDQMOfflineTnPSource = DQMEDAnalyzer("HLTElePhoTagAndProbeOfflineSource",
0903                                                 tagAndProbeCollections = cms.VPSet(
0904         cms.PSet( 
0905             tagAndProbeElePhoConfigEle27WPTight,
0906             histConfigs = egammaStdHistConfigs,
0907             baseHistName = cms.string("eleWPTightTagPhoProbe_"),
0908             filterConfigs = egammaPhoFiltersToMonitor,
0909         ),
0910         cms.PSet(
0911             tagAndProbeElePhoConfigEle27WPTightHEM17,
0912             histConfigs = egammaHEM17HistConfigs,
0913             baseHistName = cms.string("eleWPTightTagPhoProbe-HEM17_"),
0914             filterConfigs = egammaPhoFiltersToMonitor,
0915         ),
0916         cms.PSet(
0917             tagAndProbeElePhoConfigEle27WPTightHEP17,
0918             histConfigs = egammaHEM17HistConfigs,
0919             baseHistName = cms.string("eleWPTightTagPhoProbe-HEP17_"),
0920             filterConfigs = egammaPhoFiltersToMonitor,
0921         ),
0922            
0923         )
0924 )
0925 
0926 egHLTMuonEleDQMOfflineTnPSource = DQMEDAnalyzer("HLTMuEleTagAndProbeOfflineSource",
0927                                                  tagAndProbeCollections = cms.VPSet(
0928         cms.PSet( 
0929             tagAndProbeMuonEleConfigIsoMu,
0930             histConfigs = egammaStdHistConfigs,
0931             baseHistName = cms.string("muonIsoMuTagEleProbe_"),
0932             filterConfigs = egammaMuEleFiltersToMonitor,
0933         ),
0934         cms.PSet(
0935             tagAndProbeMuonEleConfigIsoMuHEM17,
0936             histConfigs = egammaHEM17HistConfigs,
0937             baseHistName = cms.string("muonIsoMuTagEleProbe-HEM17_"),
0938             filterConfigs = egammaMuEleFiltersToMonitor,
0939         ),
0940         cms.PSet(
0941             tagAndProbeMuonPhoConfigIsoMuHEP17,
0942             histConfigs = egammaHEP17HistConfigs,
0943             baseHistName = cms.string("muonIsoMuTagEleProbe-HEP17_"),
0944             filterConfigs = egammaMuEleFiltersToMonitor,
0945         ),
0946            
0947         )
0948 )
0949 egHLTMuonPhoDQMOfflineTnPSource = DQMEDAnalyzer("HLTMuPhoTagAndProbeOfflineSource",
0950                                                  tagAndProbeCollections = cms.VPSet(
0951         cms.PSet( 
0952             tagAndProbeMuonPhoConfigIsoMu,
0953             histConfigs = egammaStdHistConfigs,
0954             baseHistName = cms.string("muonIsoMuTagPhoProbe_"),
0955             filterConfigs = egammaMuPhoFiltersToMonitor,
0956         ),
0957         cms.PSet(
0958             tagAndProbeMuonPhoConfigIsoMuHEM17,
0959             histConfigs = egammaHEM17HistConfigs,
0960             baseHistName = cms.string("muonIsoMuTagPhoProbe-HEM17_"),
0961             filterConfigs = egammaMuPhoFiltersToMonitor,
0962         ),
0963         cms.PSet(
0964             tagAndProbeMuonPhoConfigIsoMuHEP17,
0965             histConfigs = egammaHEP17HistConfigs,
0966             baseHistName = cms.string("muonIsoMuTagPhoProbe-HEP17_"),
0967             filterConfigs = egammaMuPhoFiltersToMonitor,
0968         ),
0969            
0970         )
0971 )
0972 
0973 
0974 from RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cff import egmGsfElectronIDs
0975 
0976 egmGsfElectronIDsForDQM = egmGsfElectronIDs.clone()
0977 egmGsfElectronIDsForDQM.physicsObjectsIDs = cms.VPSet()
0978 egmGsfElectronIDsForDQM.physicsObjectSrc == cms.InputTag('gedGsfElectrons')
0979 #note: be careful here to when selecting new ids that the vid tools dont do extra setup for them
0980 #for example the HEEP cuts need an extra producer which vid tools automatically handles
0981 from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection
0982 my_id_modules = ['RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff',
0983                  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V1_cff']
0984 for id_module_name in my_id_modules: 
0985     idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow'])
0986     for name in dir(idmod):
0987         item = getattr(idmod,name)
0988         if hasattr(item,'idName') and hasattr(item,'cutFlow'):
0989             setupVIDSelection(egmGsfElectronIDsForDQM,item)
0990 
0991 
0992 from RecoEgamma.PhotonIdentification.photonIDValueMapProducer_cff import photonIDValueMapProducer
0993 from RecoEgamma.PhotonIdentification.egmPhotonIDs_cfi import egmPhotonIDs
0994 photonIDValueMapProducerForDQM = photonIDValueMapProducer.clone(
0995     src="gedPhotons",
0996     vertices="offlinePrimaryVertices",
0997     ebReducedRecHitCollection="reducedEcalRecHitsEB",
0998     eeReducedRecHitCollection="reducedEcalRecHitsEE",
0999     esReducedRecHitCollection="reducedEcalRecHitsES",
1000     pfCandidates="particleFlow",
1001     isAOD=True,
1002 )
1003 egmPhotonIDsForDQM = egmPhotonIDs.clone()
1004 #note: be careful here to when selecting new ids that the vid tools dont do extra setup for them
1005 #for example the HEEP cuts need an extra producer which vid tools automatically handles
1006 from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection
1007 my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring16_V2p2_cff']
1008 for id_module_name in my_id_modules: 
1009     idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow'])
1010     for name in dir(idmod):
1011         item = getattr(idmod,name)
1012         if hasattr(item,'idName') and hasattr(item,'cutFlow'):
1013             setupVIDSelection(egmPhotonIDsForDQM,item)
1014 egmPhotonIDSequenceForDQM = cms.Sequence(photonIDValueMapProducerForDQM*
1015                                          egmPhotonIDsForDQM)
1016 
1017 egmDQMSelectedMuons = cms.EDProducer("HLTDQMMuonSelector",
1018                                      objs=cms.InputTag("muons"),
1019                                      vertices=cms.InputTag("offlinePrimaryVertices"),
1020                                      selection=cms.string("pt > 20"),
1021                                      muonSelectionType=cms.string("tight")
1022                                      )
1023 egmMuonIDSequenceForDQM = cms.Sequence(egmDQMSelectedMuons)