Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-16 03:24:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoEgamma.EgammaElectronProducers.gedGsfElectronFinalizer_cfi import gedGsfElectrons as _gedGsfElectrons
0004 
0005 electronMcSignalHistosCfg = cms.PSet(
0006     Nbinxyz=cms.int32(50),
0007     Nbinpt=cms.int32(50), Nbinpt2D=cms.int32(50), Nbinpteff=cms.int32(19), Ptmax=cms.double(100.0),
0008     Nbinfhits=cms.int32(30), Fhitsmax=cms.double(30.0),
0009     Nbineta=cms.int32(50), Nbineta2D=cms.int32(50), Etamin=cms.double(-2.5), Etamax=cms.double(2.5),
0010     Nbindeta=cms.int32(100), Detamin=cms.double(-0.005), Detamax=cms.double(0.005),
0011     Nbindetamatch=cms.int32(100), Nbindetamatch2D=cms.int32(50), Detamatchmin=cms.double(-0.05),
0012     Detamatchmax=cms.double(0.05),
0013     Nbinphi=cms.int32(64), Nbinphi2D=cms.int32(32), Phimin=cms.double(-3.2), Phimax=cms.double(3.2),
0014     Nbindphi=cms.int32(100), Dphimin=cms.double(-0.01), Dphimax=cms.double(0.01),
0015     Nbindphimatch=cms.int32(100), Nbindphimatch2D=cms.int32(50), Dphimatchmin=cms.double(-0.2),
0016     Dphimatchmax=cms.double(0.2),
0017     Nbinmee=cms.int32(100), Meemin=cms.double(0.0), Meemax=cms.double(150.),
0018     Nbinhoe=cms.int32(100), Hoemin=cms.double(0.0), Hoemax=cms.double(0.5),
0019     Nbinpoptrue=cms.int32(75), Poptruemin=cms.double(0.0), Poptruemax=cms.double(1.5),
0020     EfficiencyFlag=cms.bool(True), StatOverflowFlag=cms.bool(False),
0021     NbinELE = cms.int32(11), ELE_min = cms.double(-0.5), ELE_max = cms.double(10.5), # ELE : recEleNum
0022 )
0023 
0024 electronPFIsolationCfg = cms.PSet(
0025     pfSumChargedHadronPtTmp=cms.InputTag("miniAODElectronIsolation",
0026                                          _gedGsfElectrons.pfIsolationValues.pfSumChargedHadronPt.getProductInstanceLabel()),
0027     pfSumNeutralHadronEtTmp=cms.InputTag("miniAODElectronIsolation",
0028                                          _gedGsfElectrons.pfIsolationValues.pfSumNeutralHadronEt.getProductInstanceLabel()),
0029     pfSumPhotonEtTmp=cms.InputTag("miniAODElectronIsolation",
0030                                   _gedGsfElectrons.pfIsolationValues.pfSumPhotonEt.getProductInstanceLabel()),
0031 )
0032 
0033 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0034 
0035 electronMcSignalValidatorMiniAOD = DQMEDAnalyzer('ElectronMcSignalValidatorMiniAOD',
0036 
0037     Verbosity=cms.untracked.int32(0),
0038     FinalStep=cms.string("AtJobEnd"),
0039     InputFile=cms.string(""),
0040     OutputFile=cms.string(""),
0041     InputFolderName=cms.string("EgammaV/ElectronMcSignalValidatorMiniAOD"),
0042     OutputFolderName=cms.string("EgammaV/ElectronMcSignalValidatorMiniAOD"),
0043     mcTruthCollection=cms.InputTag("prunedGenParticles"),
0044     electrons=cms.InputTag("slimmedElectrons"),
0045     electrons_endcaps=cms.InputTag("slimmedElectrons"),
0046 
0047     MaxPt=cms.double(100.0),
0048     DeltaR=cms.double(0.05),
0049     MaxAbsEta=cms.double(2.5),
0050     MatchingID=cms.vint32(11, -11),
0051     MatchingMotherID=cms.vint32(23, 24, -24, 32),
0052     histosCfg=cms.PSet(electronMcSignalHistosCfg),
0053     isolationCfg=cms.PSet(electronPFIsolationCfg),
0054 )
0055 
0056 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0057 
0058 phase2_hgcal.toModify(
0059     electronMcSignalValidatorMiniAOD,
0060     electrons_endcaps=cms.InputTag("slimmedElectronsHGC"),
0061     MaxAbsEta=3.0,
0062     histosCfg=dict(
0063         Nbineta=60,
0064         Nbineta2D=60,
0065         Etamin=-3.0,
0066         Etamax=3.0,
0067     ),
0068 )