1 import FWCore.ParameterSet.Config
as cms
5 from Calibration.EcalCalibAlgos.EcalPhiSymRecHitProducers_cfi
import EcalPhiSymRecHitProducerRun, EcalPhiSymRecHitProducerLumi
8 ALCARECOEcalPhiSymRecHitProducerRun = EcalPhiSymRecHitProducerRun.clone()
9 ALCARECOEcalPhiSymRecHitProducerLumi = EcalPhiSymRecHitProducerLumi.clone()
12 import Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi
13 ALCARECOecalPhiSymRecHitRunTableEB = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymRecHitRunTableEB
14 ALCARECOecalPhiSymRecHitRunTableEE = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymRecHitRunTableEE
15 ALCARECOecalPhiSymInfoRunTable = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymInfoRunTable
16 ALCARECOecalPhiSymRecHitLumiTableEB = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymRecHitLumiTableEB
17 ALCARECOecalPhiSymRecHitLumiTableEE = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymRecHitLumiTableEE
18 ALCARECOecalPhiSymInfoLumiTable = Calibration.EcalCalibAlgos.EcalPhiSymFlatTableProducers_cfi.ecalPhiSymInfoLumiTable
20 ALCARECOecalPhiSymRecHitRunTableEB.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerRun",
"EB")
21 ALCARECOecalPhiSymRecHitRunTableEE.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerRun",
"EE")
22 ALCARECOecalPhiSymInfoRunTable.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerRun")
23 ALCARECOecalPhiSymRecHitLumiTableEB.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerLumi",
"EB")
24 ALCARECOecalPhiSymRecHitLumiTableEE.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerLumi",
"EE")
25 ALCARECOecalPhiSymInfoLumiTable.src = cms.InputTag(
"ALCARECOEcalPhiSymRecHitProducerLumi")
27 nmis = ALCARECOEcalPhiSymRecHitProducerRun.nMisCalib.value()
28 for imis
in range(1, nmis+1):
31 var_name =
'sumEt_m'+
str(
abs(
int(imis-(nmis/2)-1)))
32 var =
Var(f
'sumEt({imis})', float, doc=
'ECAL PhiSym rechits: '+
str(imis-(nmis/2)-1)+
'*miscalib et', precision=23)
34 var_name =
'sumEt_p'+
str(
int(imis-(nmis/2)))
35 var =
Var(f
'sumEt({imis})', float, doc=
'ECAL PhiSym rechits: '+
str(imis-(nmis/2))+
'*miscalib et', precision=23)
37 setattr(ALCARECOecalPhiSymRecHitRunTableEB.variables, var_name, var)
38 setattr(ALCARECOecalPhiSymRecHitRunTableEE.variables, var_name, var)
39 setattr(ALCARECOecalPhiSymRecHitLumiTableEB.variables, var_name, var)
40 setattr(ALCARECOecalPhiSymRecHitLumiTableEE.variables, var_name, var)
43 seqALCARECOEcalPhiSymByRun = cms.Sequence( ALCARECOEcalPhiSymRecHitProducerRun *
44 ALCARECOecalPhiSymRecHitRunTableEB *
45 ALCARECOecalPhiSymRecHitRunTableEE *
46 ALCARECOecalPhiSymInfoRunTable )
47 seqALCARECOEcalPhiSymByLumi = cms.Sequence( ALCARECOEcalPhiSymRecHitProducerLumi *
48 ALCARECOecalPhiSymRecHitLumiTableEB *
49 ALCARECOecalPhiSymRecHitLumiTableEE *
50 ALCARECOecalPhiSymInfoLumiTable )
def Var(expr, valtype, doc=None, precision=-1)
Abs< T >::type abs(const T &t)