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), Detamatchmax = cms.double(0.05),
12  Nbinphi = cms.int32(64), Nbinphi2D = cms.int32(32), Phimin = cms.double(-3.2), Phimax = cms.double(3.2),
13  Nbindphi = cms.int32(100), Dphimin = cms.double(-0.01), Dphimax = cms.double(0.01),
14  Nbindphimatch = cms.int32(100), Nbindphimatch2D = cms.int32(50), Dphimatchmin = cms.double(-0.2), Dphimatchmax = cms.double(0.2),
15  Nbinmee = cms.int32(100), Meemin = cms.double(0.0), Meemax = cms.double(150.),
16  Nbinhoe = cms.int32(100), Hoemin = cms.double(0.0), Hoemax = cms.double(0.5),
17  Nbinpoptrue = cms.int32(75), Poptruemin = cms.double(0.0), Poptruemax = cms.double(1.5),
18  EfficiencyFlag = cms.bool(True), StatOverflowFlag = cms.bool(False)
19 )
20 
21 electronPFIsolationCfg = cms.PSet(
22  pfSumChargedHadronPtTmp = cms.InputTag("miniAODElectronIsolation", _gedGsfElectrons.pfIsolationValues.pfSumChargedHadronPt.getProductInstanceLabel()),
23  pfSumNeutralHadronEtTmp = cms.InputTag("miniAODElectronIsolation", _gedGsfElectrons.pfIsolationValues.pfSumNeutralHadronEt.getProductInstanceLabel()), #
24  pfSumPhotonEtTmp = cms.InputTag("miniAODElectronIsolation", _gedGsfElectrons.pfIsolationValues.pfSumPhotonEt.getProductInstanceLabel()), #
25 )
26 
27 electronMcSignalValidatorMiniAOD = cms.EDAnalyzer("ElectronMcSignalValidatorMiniAOD",
28 
29  Verbosity = cms.untracked.int32(0),
30  FinalStep = cms.string("AtJobEnd"),
31  InputFile = cms.string(""),
32  OutputFile = cms.string(""),
33  InputFolderName = cms.string("EgammaV/ElectronMcSignalValidatorMiniAOD"), #
34  OutputFolderName = cms.string("EgammaV/ElectronMcSignalValidatorMiniAOD"), #
35 
36  mcTruthCollection = cms.InputTag("prunedGenParticles"),
37  electrons = cms.InputTag("slimmedElectrons"),
38 
39  MaxPt = cms.double(100.0),
40  DeltaR = cms.double(0.05),
41  MaxAbsEta = cms.double(2.5),
42  MatchingID = cms.vint32(11,-11),
43  MatchingMotherID = cms.vint32(23,24,-24,32),
44  histosCfg = cms.PSet(electronMcSignalHistosCfg),
45  isolationCfg = cms.PSet(electronPFIsolationCfg),
46 )