1 import FWCore.ParameterSet.Config
as cms
5 electronMcSignalHistosCfg = cms.PSet(
7 Nbinpt=cms.int32(50), Nbinpt2D=cms.int32(50), Nbinpteff=cms.int32(19), Ptmax=cms.double(100.0),
8 Nbinfhits=cms.int32(30), Fhitsmax=cms.double(30.0),
9 Nbineta=cms.int32(50), Nbineta2D=cms.int32(50), Etamin=cms.double(-2.5), Etamax=cms.double(2.5),
10 Nbindeta=cms.int32(100), Detamin=cms.double(-0.005), Detamax=cms.double(0.005),
11 Nbindetamatch=cms.int32(100), Nbindetamatch2D=cms.int32(50), Detamatchmin=cms.double(-0.05),
12 Detamatchmax=cms.double(0.05),
13 Nbinphi=cms.int32(64), Nbinphi2D=cms.int32(32), Phimin=cms.double(-3.2), Phimax=cms.double(3.2),
14 Nbindphi=cms.int32(100), Dphimin=cms.double(-0.01), Dphimax=cms.double(0.01),
15 Nbindphimatch=cms.int32(100), Nbindphimatch2D=cms.int32(50), Dphimatchmin=cms.double(-0.2),
16 Dphimatchmax=cms.double(0.2),
17 Nbinmee=cms.int32(100), Meemin=cms.double(0.0), Meemax=cms.double(150.),
18 Nbinhoe=cms.int32(100), Hoemin=cms.double(0.0), Hoemax=cms.double(0.5),
19 Nbinpoptrue=cms.int32(75), Poptruemin=cms.double(0.0), Poptruemax=cms.double(1.5),
20 EfficiencyFlag=cms.bool(
True), StatOverflowFlag=cms.bool(
False)
23 electronPFIsolationCfg = cms.PSet(
24 pfSumChargedHadronPtTmp=cms.InputTag(
"miniAODElectronIsolation",
25 _gedGsfElectrons.pfIsolationValues.pfSumChargedHadronPt.getProductInstanceLabel()),
26 pfSumNeutralHadronEtTmp=cms.InputTag(
"miniAODElectronIsolation",
27 _gedGsfElectrons.pfIsolationValues.pfSumNeutralHadronEt.getProductInstanceLabel()),
29 pfSumPhotonEtTmp=cms.InputTag(
"miniAODElectronIsolation",
30 _gedGsfElectrons.pfIsolationValues.pfSumPhotonEt.getProductInstanceLabel()),
33 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
35 electronMcSignalValidatorMiniAOD =
DQMEDAnalyzer(
'ElectronMcSignalValidatorMiniAOD',
37 Verbosity=cms.untracked.int32(0),
38 FinalStep=cms.string(
"AtJobEnd"),
39 InputFile=cms.string(
""),
40 OutputFile=cms.string(
""),
41 InputFolderName=cms.string(
"EgammaV/ElectronMcSignalValidatorMiniAOD"),
43 OutputFolderName=cms.string(
44 "EgammaV/ElectronMcSignalValidatorMiniAOD"),
46 mcTruthCollection=cms.InputTag(
"prunedGenParticles"),
47 electrons=cms.InputTag(
"slimmedElectrons"),
48 electrons_endcaps=cms.InputTag(
"slimmedElectrons"),
51 MaxPt=cms.double(100.0),
52 DeltaR=cms.double(0.05),
53 MaxAbsEta=cms.double(2.5),
54 MatchingID=cms.vint32(11, -11),
55 MatchingMotherID=cms.vint32(23, 24, -24, 32),
56 histosCfg=cms.PSet(electronMcSignalHistosCfg),
57 isolationCfg=cms.PSet(electronPFIsolationCfg),
60 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
62 phase2_hgcal.toModify(
63 electronMcSignalValidatorMiniAOD,
65 electrons_endcaps=cms.InputTag(
"slimmedElectronsFromMultiCl"),
66 MaxAbsEta=cms.double(3.0),