CMS 3D CMS Logo

EcalPhiSymFlatTableProducers_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 # LuminosityBlock flat table producers
5 ecalPhiSymRecHitLumiTableEB = cms.EDProducer("EcalPhiSymRecHitFlatTableProducerLumi",
6  src = cms.InputTag("EcalPhiSymRecHitProducerLumi", "EB"),
7  cut = cms.string(""),
8  name = cms.string("EcalPhiSymEB"),
9  doc = cms.string("ECAL RecHits with information summed over a LS"),
10  variables = cms.PSet(
11  id = Var("rawId()", int, doc="ECAL PhiSym rechits: channel detector id"),
12  status = Var("statusCode()", int, doc="ECAL PhiSym rechits: channel status"),
13  nHits = Var("nHits()", int, doc="ECAL PhiSym rechits: number of recorded hits"),
14  sumEt = Var("sumEt(0)", float, doc="ECAL PhiSym rechits: nominal et", precision=23),
15  sumEt2 = Var("sumEt2()", float, doc="ECAL PhiSym rechits: sum et^2", precision=23),
16  sumLC = Var("lcSum()", float, doc="ECAL PhiSym rechits: laser correction", precision=23),
17  sumLC2 = Var("lc2Sum()", float, doc="ECAL PhiSym rechits: sum lc^2", precision=23)
18  )
19  )
20 
21 ecalPhiSymRecHitLumiTableEE = ecalPhiSymRecHitLumiTableEB.clone(
22  src = cms.InputTag("EcalPhiSymRecHitProducerLumi", "EE"),
23  name = cms.string("EcalPhiSymEE")
24 )
25 # iring is saved only for EE channels
26 setattr(ecalPhiSymRecHitLumiTableEE.variables, 'ring', Var("eeRing()", int, doc="ECAL PhiSym rechits: EE channel ring index"))
27 
28 ecalPhiSymInfoLumiTable = cms.EDProducer("EcalPhiSymInfoFlatTableProducerLumi",
29  src = cms.InputTag("EcalPhiSymRecHitProducerLumi"),
30  cut = cms.string(""),
31  name = cms.string("EcalPhiSymInfo"),
32  doc = cms.string("Global phisym info with information summed over one or more LS"),
33  variables = cms.PSet(
34  hitsEB = Var("totHitsEB()", int, doc="Total number of rechits in EB"),
35  hitsEE = Var("totHitsEE()", int, doc="Total number of rechits in EE"),
36  nEvents = Var("nEvents()", int, doc="Total number of events recorded"),
37  nLumis = Var("nLumis()", int, doc="Total number of lumis recorded"),
38  fill = Var("fillNumber()", int, doc="LHC fill number"),
39  delivLumi = Var("delivLumi()", float, doc="LHC delivered integrated luminosity"),
40  recLumi = Var("recLumi()", float, doc="CMS recorded integrated luminosity"),
41  nMis = Var("nMis()", float, doc="Number of mis-calibration steps injected (nominal value excluded)"),
42  minMisEB = Var("minMisEB()", float, doc="Minimum mis-calibration value in EB"),
43  maxMisEB = Var("maxMisEB()", float, doc="Maximum mis-calibration value in EB"),
44  minMisEE = Var("minMisEE()", float, doc="Minimum mis-calibration value in EE"),
45  maxMisEE = Var("maxMisEE()", float, doc="Maximum mis-calibration value in EE")))
46 
47 
48 # Run flat table producers
49 ecalPhiSymRecHitRunTableEB = cms.EDProducer("EcalPhiSymRecHitFlatTableProducerRun",
50  src = cms.InputTag("EcalPhiSymRecHitProducerRun", "EB"),
51  cut = cms.string(""),
52  name = cms.string("EcalPhiSymEB"),
53  doc = cms.string("ECAL RecHits with information summed over a Run"),
54  variables = cms.PSet()
55  )
56 ecalPhiSymRecHitRunTableEB.variables = ecalPhiSymRecHitLumiTableEB.variables
57 
58 ecalPhiSymRecHitRunTableEE = ecalPhiSymRecHitRunTableEB.clone(
59  src = cms.InputTag("EcalPhiSymRecHitProducerRun", "EE"),
60  name = cms.string("EcalPhiSymEE")
61 )
62 # iring is saved only for EE channels
63 setattr(ecalPhiSymRecHitRunTableEE.variables, 'ring', Var("eeRing()", int, doc="ECAL PhiSym rechits: EE channel ring index"))
64 
65 ecalPhiSymInfoRunTable = cms.EDProducer("EcalPhiSymInfoFlatTableProducerRun",
66  src = cms.InputTag("EcalPhiSymRecHitProducerRun"),
67  cut = cms.string(""),
68  name = cms.string("EcalPhiSymInfo"),
69  doc = cms.string("Global phisym info with information summed over a run"),
70  variables = cms.PSet()
71  )
72 
73 ecalPhiSymInfoRunTable.variables = ecalPhiSymInfoLumiTable.variables
74 
def Var(expr, valtype, doc=None, precision=-1)
Definition: common_cff.py:16