CMS 3D CMS Logo

copyTrivialLin.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("TEST")
4 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 
6 process.load("CondCore.DBCommon.CondDBCommon_cfi")
7 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
8 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
9 process.CondDBCommon.connect = 'sqlite_file:DB.db'
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  debugModules = cms.untracked.vstring('*'),
13  destinations = cms.untracked.vstring('cout')
14 )
15 
16 process.source = cms.Source("EmptyIOVSource",
17  firstValue = cms.uint64(1),
18  lastValue = cms.uint64(1),
19  timetype = cms.string('runnumber'),
20  interval = cms.uint64(1)
21 )
22 
23 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
24  process.CondDBCommon,
25  toPut = cms.VPSet(cms.PSet(
26  record = cms.string('EcalPedestalsRcd'),
27  tag = cms.string('EcalPedestals_mc')
28  ),
29  cms.PSet(
30  record = cms.string('EcalADCToGeVConstantRcd'),
31  tag = cms.string('EcalADCToGeVConstant_mc')
32  ),
33  cms.PSet(
34  record = cms.string('EcalChannelStatusRcd'),
35  tag = cms.string('EcalChannelStatus_mc')
36  ),
37  cms.PSet(
38  record = cms.string('EcalIntercalibConstantsRcd'),
39  tag = cms.string('EcalIntercalibConstants_mc')
40  ),
41  cms.PSet(
42  record = cms.string('EcalIntercalibErrorsRcd'),
43  tag = cms.string('EcalIntercalibErrors_mc')
44  ),
45  cms.PSet(
46  record = cms.string('EcalIntercalibConstantsMCRcd'),
47  tag = cms.string('EcalIntercalibConstantsMC_mc')
48  ),
49  cms.PSet(
50  record = cms.string('EcalGainRatiosRcd'),
51  tag = cms.string('EcalGainRatios_mc')
52  ),
53  cms.PSet(
54  record = cms.string('EcalWeightXtalGroupsRcd'),
55  tag = cms.string('EcalWeightXtalGroups_mc')
56  ),
57  cms.PSet(
58  record = cms.string('EcalTBWeightsRcd'),
59  tag = cms.string('EcalTBWeights_mc')
60  ),
61  cms.PSet(
62  record = cms.string('EcalClusterCrackCorrParametersRcd'),
63  tag = cms.string('EcalClusterCrackCorrParameters_mc')
64  ),
65  cms.PSet(
66  record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
67  tag = cms.string('EcalClusterEnergyUncertaintyParameters_mc')
68  ),
69  cms.PSet(
70  record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
71  tag = cms.string('EcalClusterEnergyCorrectionParameters_mc')
72  ),
73  cms.PSet(
74  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
75  tag = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
76  ),
77  cms.PSet(
78  record = cms.string('EcalTimeCalibConstantsRcd'),
79  tag = cms.string('EcalTimeCalibConstants_mc')
80  ),
81  cms.PSet(
82  record = cms.string('EcalClusterLocalContCorrParametersRcd'),
83  tag = cms.string('EcalClusterLocalContCorrParameters_mc')
84  ))
85 )
86 
87 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
88  timetype = cms.string('runnumber'),
89  toCopy = cms.VPSet(cms.PSet(
90  record = cms.string('EcalPedestalsRcd'),
91  container = cms.string('EcalPedestals')
92  ),
93  cms.PSet(
94  record = cms.string('EcalADCToGeVConstantRcd'),
95  container = cms.string('EcalADCToGeVConstant')
96  ),
97  cms.PSet(
98  record = cms.string('EcalChannelStatusRcd'),
99  container = cms.string('EcalChannelStatus')
100  ),
101  cms.PSet(
102  record = cms.string('EcalIntercalibConstantsRcd'),
103  container = cms.string('EcalIntercalibConstants')
104  ),
105  cms.PSet(
106  record = cms.string('EcalIntercalibErrorsRcd'),
107  container = cms.string('EcalIntercalibErrors')
108  ),
109  cms.PSet(
110  record = cms.string('EcalIntercalibConstantsMCRcd'),
111  container = cms.string('EcalIntercalibConstantsMC')
112  ),
113  cms.PSet(
114  record = cms.string('EcalGainRatiosRcd'),
115  container = cms.string('EcalGainRatios')
116  ),
117  cms.PSet(
118  record = cms.string('EcalWeightXtalGroupsRcd'),
119  container = cms.string('EcalWeightXtalGroups')
120  ),
121  cms.PSet(
122  record = cms.string('EcalTBWeightsRcd'),
123  container = cms.string('EcalTBWeights')
124  ),
125  cms.PSet(
126  record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
127  container = cms.string('EcalClusterEnergyUncertaintyParameters')
128  ),
129  cms.PSet(
130  record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
131  container = cms.string('EcalClusterEnergyCorrectionParameters')
132  ),
133  cms.PSet(
134  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
135  container = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters')
136  ),
137  cms.PSet(
138  record = cms.string('EcalClusterLocalContCorrParametersRcd'),
139  container = cms.string('EcalClusterLocalContCorrParameters')
140  ),
141  cms.PSet(
142  record = cms.string('EcalTimeCalibConstantsRcd'),
143  container = cms.string('EcalTimeCalibConstants')
144  ))
145 )
146 
147 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
148 
149 process.p = cms.Path(process.prod*process.dbCopy)
150