CMS 3D CMS Logo

ElectronMcSignalValidatorMiniAOD_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoEgamma.EgammaElectronProducers.gedGsfElectronFinalizer_cfi import gedGsfElectrons as _gedGsfElectrons
4 
5 electronMcSignalHistosCfg = cms.PSet(
6  Nbinxyz=cms.int32(50),
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),
21  NbinELE = cms.int32(11), ELE_min = cms.double(-0.5), ELE_max = cms.double(10.5), # ELE : recEleNum
22 )
23 
24 electronPFIsolationCfg = cms.PSet(
25  pfSumChargedHadronPtTmp=cms.InputTag("miniAODElectronIsolation",
26  _gedGsfElectrons.pfIsolationValues.pfSumChargedHadronPt.getProductInstanceLabel()),
27  pfSumNeutralHadronEtTmp=cms.InputTag("miniAODElectronIsolation",
28  _gedGsfElectrons.pfIsolationValues.pfSumNeutralHadronEt.getProductInstanceLabel()),
29  pfSumPhotonEtTmp=cms.InputTag("miniAODElectronIsolation",
30  _gedGsfElectrons.pfIsolationValues.pfSumPhotonEt.getProductInstanceLabel()),
31 )
32 
33 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
34 
35 electronMcSignalValidatorMiniAOD = DQMEDAnalyzer('ElectronMcSignalValidatorMiniAOD',
36 
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"),
42  OutputFolderName=cms.string("EgammaV/ElectronMcSignalValidatorMiniAOD"),
43  mcTruthCollection=cms.InputTag("prunedGenParticles"),
44  electrons=cms.InputTag("slimmedElectrons"),
45  electrons_endcaps=cms.InputTag("slimmedElectrons"),
46 
47  MaxPt=cms.double(100.0),
48  DeltaR=cms.double(0.05),
49  MaxAbsEta=cms.double(2.5),
50  MatchingID=cms.vint32(11, -11),
51  MatchingMotherID=cms.vint32(23, 24, -24, 32),
52  histosCfg=cms.PSet(electronMcSignalHistosCfg),
53  isolationCfg=cms.PSet(electronPFIsolationCfg),
54 )
55 
56 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
57 
58 phase2_hgcal.toModify(
59  electronMcSignalValidatorMiniAOD,
60  electrons_endcaps=cms.InputTag("slimmedElectronsHGC"),
61  MaxAbsEta=3.0,
62  histosCfg=dict(
63  Nbineta=60,
64  Nbineta2D=60,
65  Etamin=-3.0,
66  Etamax=3.0,
67  ),
68 )