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 )
22 
23 electronPFIsolationCfg = cms.PSet(
24  pfSumChargedHadronPtTmp=cms.InputTag("miniAODElectronIsolation",
25  _gedGsfElectrons.pfIsolationValues.pfSumChargedHadronPt.getProductInstanceLabel()),
26  pfSumNeutralHadronEtTmp=cms.InputTag("miniAODElectronIsolation",
27  _gedGsfElectrons.pfIsolationValues.pfSumNeutralHadronEt.getProductInstanceLabel()),
28  #
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  #
43  OutputFolderName=cms.string(
44  "EgammaV/ElectronMcSignalValidatorMiniAOD"), #
45 
46  mcTruthCollection=cms.InputTag("prunedGenParticles"),
47  electrons=cms.InputTag("slimmedElectrons"),
48  electrons_endcaps=cms.InputTag("slimmedElectrons"),
49  # temp for miniAOD tests
50 
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),
58  )
59 
60 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
61 
62 phase2_hgcal.toModify(
63  electronMcSignalValidatorMiniAOD,
64  # electrons = cms.InputTag("slimmedElectronsFromMultiCl"),
65  electrons_endcaps=cms.InputTag("slimmedElectronsFromMultiCl"),
66  MaxAbsEta=cms.double(3.0),
67  histosCfg=dict(
68  Nbineta=60,
69  Nbineta2D=60,
70  Etamin=-3.0,
71  Etamax=3.0,
72  ),
73 )
gedGsfElectronFinalizer_cfi
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1