File indexing completed on 2024-04-06 11:58:40
0001 import FWCore.ParameterSet.Config as cms
0002 from PhysicsTools.NanoAOD.common_cff import *
0003
0004
0005 ecalPhiSymRecHitLumiTableEB = cms.EDProducer("EcalPhiSymRecHitFlatTableProducerLumi",
0006 src = cms.InputTag("EcalPhiSymRecHitProducerLumi", "EB"),
0007 cut = cms.string(""),
0008 name = cms.string("EcalPhiSymEB"),
0009 doc = cms.string("ECAL RecHits with information summed over a LS"),
0010 variables = cms.PSet(
0011 id = Var("rawId()", int, doc="ECAL PhiSym rechits: channel detector id"),
0012 status = Var("statusCode()", int, doc="ECAL PhiSym rechits: channel status"),
0013 nHits = Var("nHits()", int, doc="ECAL PhiSym rechits: number of recorded hits"),
0014 sumEt = Var("sumEt(0)", float, doc="ECAL PhiSym rechits: nominal et", precision=23),
0015 sumEt2 = Var("sumEt2()", float, doc="ECAL PhiSym rechits: sum et^2", precision=23),
0016 sumLC = Var("lcSum()", float, doc="ECAL PhiSym rechits: laser correction", precision=23),
0017 sumLC2 = Var("lc2Sum()", float, doc="ECAL PhiSym rechits: sum lc^2", precision=23)
0018 )
0019 )
0020
0021 ecalPhiSymRecHitLumiTableEE = ecalPhiSymRecHitLumiTableEB.clone(
0022 src = cms.InputTag("EcalPhiSymRecHitProducerLumi", "EE"),
0023 name = cms.string("EcalPhiSymEE")
0024 )
0025
0026 setattr(ecalPhiSymRecHitLumiTableEE.variables, 'ring', Var("eeRing()", int, doc="ECAL PhiSym rechits: EE channel ring index"))
0027
0028 ecalPhiSymInfoLumiTable = cms.EDProducer("EcalPhiSymInfoFlatTableProducerLumi",
0029 src = cms.InputTag("EcalPhiSymRecHitProducerLumi"),
0030 cut = cms.string(""),
0031 name = cms.string("EcalPhiSymInfo"),
0032 doc = cms.string("Global phisym info with information summed over one or more LS"),
0033 variables = cms.PSet(
0034 hitsEB = Var("totHitsEB()", int, doc="Total number of rechits in EB"),
0035 hitsEE = Var("totHitsEE()", int, doc="Total number of rechits in EE"),
0036 nEvents = Var("nEvents()", int, doc="Total number of events recorded"),
0037 nLumis = Var("nLumis()", int, doc="Total number of lumis recorded"),
0038 fill = Var("fillNumber()", int, doc="LHC fill number"),
0039 delivLumi = Var("delivLumi()", float, doc="LHC delivered integrated luminosity"),
0040 recLumi = Var("recLumi()", float, doc="CMS recorded integrated luminosity"),
0041 nMis = Var("nMis()", float, doc="Number of mis-calibration steps injected (nominal value excluded)"),
0042 minMisEB = Var("minMisEB()", float, doc="Minimum mis-calibration value in EB"),
0043 maxMisEB = Var("maxMisEB()", float, doc="Maximum mis-calibration value in EB"),
0044 minMisEE = Var("minMisEE()", float, doc="Minimum mis-calibration value in EE"),
0045 maxMisEE = Var("maxMisEE()", float, doc="Maximum mis-calibration value in EE")))
0046
0047
0048
0049 ecalPhiSymRecHitRunTableEB = cms.EDProducer("EcalPhiSymRecHitFlatTableProducerRun",
0050 src = cms.InputTag("EcalPhiSymRecHitProducerRun", "EB"),
0051 cut = cms.string(""),
0052 name = cms.string("EcalPhiSymEB"),
0053 doc = cms.string("ECAL RecHits with information summed over a Run"),
0054 variables = cms.PSet()
0055 )
0056 ecalPhiSymRecHitRunTableEB.variables = ecalPhiSymRecHitLumiTableEB.variables
0057
0058 ecalPhiSymRecHitRunTableEE = ecalPhiSymRecHitRunTableEB.clone(
0059 src = cms.InputTag("EcalPhiSymRecHitProducerRun", "EE"),
0060 name = cms.string("EcalPhiSymEE")
0061 )
0062
0063 setattr(ecalPhiSymRecHitRunTableEE.variables, 'ring', Var("eeRing()", int, doc="ECAL PhiSym rechits: EE channel ring index"))
0064
0065 ecalPhiSymInfoRunTable = cms.EDProducer("EcalPhiSymInfoFlatTableProducerRun",
0066 src = cms.InputTag("EcalPhiSymRecHitProducerRun"),
0067 cut = cms.string(""),
0068 name = cms.string("EcalPhiSymInfo"),
0069 doc = cms.string("Global phisym info with information summed over a run"),
0070 variables = cms.PSet()
0071 )
0072
0073 ecalPhiSymInfoRunTable.variables = ecalPhiSymInfoLumiTable.variables
0074