Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-17 23:31:28

0001 from builtins import range
0002 import FWCore.ParameterSet.Config as cms
0003 from DQMOffline.L1Trigger.L1THistDefinitions_cff import histDefinitions
0004 
0005 electronEfficiencyThresholds = [34, 36, 38, 40, 42]
0006 
0007 electronEfficiencyBins = []
0008 electronEfficiencyBins.extend(list(range(2, 42, 2)))
0009 electronEfficiencyBins.extend(list(range(42, 45, 3)))
0010 electronEfficiencyBins.extend(list(range(45, 50, 5)))
0011 electronEfficiencyBins.extend(list(range(50, 70, 10)))
0012 electronEfficiencyBins.extend(list(range(70, 101, 30)))
0013 
0014 # additional efficiency vs eta, phi and # vertices plots will
0015 # be created for the following probe electron pT thresholds
0016 deepInspectionElectronThresholds = [48, 50]
0017 
0018 # offset for 2D efficiency plots, uses
0019 # electronEfficiencyBins + probeToL1Offset (GeV)
0020 probeToL1Offset = 10
0021 
0022 # just copy for now
0023 photonEfficiencyThresholds = electronEfficiencyThresholds
0024 photonEfficiencyBins = electronEfficiencyBins
0025 
0026 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0027 l1tEGammaOfflineDQM = DQMEDAnalyzer(
0028     "L1TEGammaOffline",
0029     electronCollection=cms.InputTag("gedGsfElectrons"),
0030     photonCollection=cms.InputTag("photons"),
0031     caloJetCollection=cms.InputTag("ak4CaloJets"),
0032     caloMETCollection=cms.InputTag("caloMet"),
0033     conversionsCollection=cms.InputTag("allConversions"),
0034     PVCollection=cms.InputTag("offlinePrimaryVerticesWithBS"),
0035     beamSpotCollection=cms.InputTag("offlineBeamSpot"),
0036 
0037     triggerInputTag=cms.InputTag('hltTriggerSummaryAOD', '', 'HLT'),
0038     triggerProcess=cms.string('HLT'),
0039     triggerResults=cms.InputTag('TriggerResults', '', 'HLT'),
0040     triggerNames = cms.vstring(
0041         'HLT_Ele32_WPTight_Gsf_v*',
0042     ),
0043 
0044     stage2CaloLayer2EGammaSource=cms.InputTag("caloStage2Digis", "EGamma"),
0045 
0046     histFolder=cms.string('L1T/L1TObjects/L1TEGamma/L1TriggerVsReco'),
0047 
0048     electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds),
0049     electronEfficiencyBins=cms.vdouble(electronEfficiencyBins),
0050     probeToL1Offset=cms.double(probeToL1Offset),
0051     deepInspectionElectronThresholds=cms.vdouble(deepInspectionElectronThresholds),
0052 
0053     photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds),
0054     photonEfficiencyBins=cms.vdouble(photonEfficiencyBins),
0055     maxDeltaRForL1Matching=cms.double(0.3),
0056     maxDeltaRForHLTMatching=cms.double(0.3),
0057     recoToL1TThresholdFactor=cms.double(1.25),
0058 
0059     histDefinitions=cms.PSet(
0060         nVertex=histDefinitions.nVertex.clone(),
0061         ETvsET=histDefinitions.ETvsET.clone(),
0062         PHIvsPHI=histDefinitions.PHIvsPHI.clone(),
0063     ),
0064 )
0065 
0066 # modifications for the pp reference run
0067 electronEfficiencyThresholds_HI = [5, 10, 15, 21]
0068 deepInspectionElectronThresholds_HI = [15]
0069 
0070 electronEfficiencyBins_HI = []
0071 electronEfficiencyBins_HI.extend(list(range(1, 26, 1)))
0072 electronEfficiencyBins_HI.extend(list(range(26, 42, 2)))
0073 electronEfficiencyBins_HI.extend(list(range(42, 45, 3)))
0074 electronEfficiencyBins_HI.extend(list(range(45, 50, 5)))
0075 electronEfficiencyBins_HI.extend(list(range(50, 70, 10)))
0076 electronEfficiencyBins_HI.extend(list(range(70, 101, 30)))
0077 
0078 photonEfficiencyThresholds_HI = electronEfficiencyThresholds_HI
0079 photonEfficiencyBins_HI = electronEfficiencyBins_HI
0080 
0081 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0082 ppRef_2017.toModify(
0083     l1tEGammaOfflineDQM,
0084     TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
0085     TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
0086     electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds_HI),
0087     electronEfficiencyBins=cms.vdouble(electronEfficiencyBins_HI),
0088     deepInspectionElectronThresholds=cms.vdouble(deepInspectionElectronThresholds_HI),
0089     photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds_HI),
0090     photonEfficiencyBins=cms.vdouble(photonEfficiencyBins_HI)
0091 )
0092 
0093 # emulator module
0094 l1tEGammaOfflineDQMEmu = l1tEGammaOfflineDQM.clone(
0095     stage2CaloLayer2EGammaSource = "simCaloStage2Digis",
0096     histFolder = 'L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco'
0097 )