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 electronMcFakeHistosCfg = cms.PSet(
0004   Nbinxyz = cms.int32(50),
0005   Nbinp = cms.int32(50), Nbinp2D = cms.int32(50), Pmax = cms.double(300.0),
0006   Nbinpt = cms.int32(50), Nbinpt2D = cms.int32(50), Nbinpteff = cms.int32(19),Ptmax = cms.double(100.0),
0007   Nbinfhits = cms.int32(30), Fhitsmax = cms.double(30.0),
0008   Nbinlhits = cms.int32(5), Lhitsmax = cms.double(10.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), Detamatchmax = cms.double(0.05),
0012   Nbinphi = cms.int32(64), Nbinphi2D = cms.int32(32), Phimin = cms.double(-3.2), Phimax = cms.double(3.2),
0013   Nbindphi = cms.int32(100), Dphimin = cms.double(-0.01), Dphimax = cms.double(0.01),
0014   Nbindphimatch = cms.int32(100), Nbindphimatch2D = cms.int32(50), Dphimatchmin = cms.double(-0.2), Dphimatchmax = cms.double(0.2),
0015   Nbineop = cms.int32(50), Nbineop2D = cms.int32(30), Eopmax = cms.double(5.0), Eopmaxsht = cms.double(3.0),
0016   Nbinmee = cms.int32(100), Meemin = cms.double(0.0), Meemax = cms.double(150.),
0017   Nbinhoe = cms.int32(100), Hoemin = cms.double(0.0), Hoemax = cms.double(0.5),
0018   Nbinpopmatching = cms.int32(75), Popmatchingmin = cms.double(0.0), Popmatchingmax = cms.double(1.5),
0019   Nbinerror = cms.int32(30), Energyerrormax = cms.double(30.0),
0020   EfficiencyFlag = cms.bool(True), StatOverflowFlag = cms.bool(False),
0021   NbinOPV = cms.int32(80), OPV_min = cms.double(-0.5), OPV_max = cms.double(79.5), # OPV : Offline Primary Vertices
0022   NbinELE = cms.int32(11), ELE_min = cms.double(-0.5), ELE_max = cms.double(10.5), # ELE : recEleNum
0023   NbinCORE = cms.int32(21), CORE_min = cms.double(-0.5), CORE_max = cms.double(20.5), # CORE : recCoreNum
0024   NbinTRACK = cms.int32(41), TRACK_min = cms.double(-0.5), TRACK_max = cms.double(40.5), # TRACK : recTrackNum
0025   NbinSEED = cms.int32(101), SEED_min = cms.double(-0.5), SEED_max = cms.double(100.5), # SEED : recSeedNum
0026 )
0027 
0028 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0029 electronMcFakeValidator = DQMEDAnalyzer('ElectronMcFakeValidator',
0030 
0031   Verbosity = cms.untracked.int32(0),
0032   FinalStep = cms.string("AtJobEnd"),
0033   InputFile = cms.string(""),
0034   OutputFile = cms.string(""),
0035   InputFolderName = cms.string("EgammaV/ElectronMcFakeValidator"),
0036   OutputFolderName = cms.string("EgammaV/ElectronMcFakeValidator"),
0037     
0038   matchingObjectCollection = cms.InputTag("ak4GenJets"),
0039   electronCollection = cms.InputTag("gedGsfElectrons"),
0040   electronCollectionEndcaps = cms.InputTag("gedGsfElectrons"),
0041   electronCoreCollection = cms.InputTag("gedGsfElectronCores"),
0042   electronTrackCollection = cms.InputTag("electronGsfTracks"),
0043   electronSeedCollection = cms.InputTag("electronMergedSeeds"),
0044   offlinePrimaryVertices = cms.InputTag("offlinePrimaryVertices"),
0045   
0046   beamSpot = cms.InputTag("offlineBeamSpot"),
0047   readAOD = cms.bool(False),
0048   
0049   isoFromDepsTk03            = cms.InputTag(""),
0050   isoFromDepsTk04            = cms.InputTag(""),
0051   isoFromDepsEcalFull03      = cms.InputTag(""),
0052   isoFromDepsEcalFull04      = cms.InputTag(""),
0053   isoFromDepsEcalReduced03   = cms.InputTag(""),
0054   isoFromDepsEcalReduced04   = cms.InputTag(""),
0055   isoFromDepsHcal03          = cms.InputTag(""),
0056   isoFromDepsHcal04          = cms.InputTag(""),
0057   
0058   MaxPt = cms.double(100.0),
0059   DeltaR = cms.double(0.3),
0060   MaxAbsEta = cms.double(2.5),
0061   histosCfg = cms.PSet(electronMcFakeHistosCfg)
0062 )
0063 
0064 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0065 phase2_hgcal.toModify(
0066     electronMcFakeValidator,
0067     electronCollectionEndcaps = 'ecalDrivenGsfElectronsHGC',
0068     electronCoreCollection = 'ecalDrivenGsfElectronCoresHGC',
0069     MaxAbsEta = 3.0,
0070     histosCfg = dict( 
0071         Nbineta = 60 ,
0072         Nbineta2D = 60 ,
0073         Etamin = -3.0 ,
0074         Etamax = 3.0 ,
0075     
0076         NbinOPV = 125, OPV_min = -0.5, OPV_max = 249.5,
0077         NbinELE = 100, ELE_min = -0.5, ELE_max = 999.5,
0078         NbinCORE = 100, CORE_min = -0.5, CORE_max = 999.5,
0079         NbinTRACK = 100, TRACK_min = -0.5, TRACK_max = 999.5,
0080         NbinSEED = 100, SEED_min = -0.5, SEED_max = 9999.5,
0081 ),
0082 )