CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  cerr = cms.untracked.PSet(
13  enable = cms.untracked.bool(False)
14  ),
15  cout = cms.untracked.PSet(
16  enable = cms.untracked.bool(True)
17  ),
18  debugModules = cms.untracked.vstring('*')
19 )
20 
21 process.source = cms.Source("EmptyIOVSource",
22  firstValue = cms.uint64(1),
23  lastValue = cms.uint64(1),
24  timetype = cms.string('runnumber'),
25  interval = cms.uint64(1)
26 )
27 
28 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
29  process.CondDBCommon,
30  toPut = cms.VPSet(cms.PSet(
31  record = cms.string('EcalPedestalsRcd'),
32  tag = cms.string('EcalPedestals_mc')
33  ),
34  cms.PSet(
35  record = cms.string('EcalADCToGeVConstantRcd'),
36  tag = cms.string('EcalADCToGeVConstant_mc')
37  ),
38  cms.PSet(
39  record = cms.string('EcalChannelStatusRcd'),
40  tag = cms.string('EcalChannelStatus_mc')
41  ),
42  cms.PSet(
43  record = cms.string('EcalIntercalibConstantsRcd'),
44  tag = cms.string('EcalIntercalibConstants_mc')
45  ),
46  cms.PSet(
47  record = cms.string('EcalIntercalibErrorsRcd'),
48  tag = cms.string('EcalIntercalibErrors_mc')
49  ),
50  cms.PSet(
51  record = cms.string('EcalIntercalibConstantsMCRcd'),
52  tag = cms.string('EcalIntercalibConstantsMC_mc')
53  ),
54  cms.PSet(
55  record = cms.string('EcalGainRatiosRcd'),
56  tag = cms.string('EcalGainRatios_mc')
57  ),
58  cms.PSet(
59  record = cms.string('EcalWeightXtalGroupsRcd'),
60  tag = cms.string('EcalWeightXtalGroups_mc')
61  ),
62  cms.PSet(
63  record = cms.string('EcalTBWeightsRcd'),
64  tag = cms.string('EcalTBWeights_mc')
65  ),
66  cms.PSet(
67  record = cms.string('EcalClusterCrackCorrParametersRcd'),
68  tag = cms.string('EcalClusterCrackCorrParameters_mc')
69  ),
70  cms.PSet(
71  record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
72  tag = cms.string('EcalClusterEnergyUncertaintyParameters_mc')
73  ),
74  cms.PSet(
75  record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
76  tag = cms.string('EcalClusterEnergyCorrectionParameters_mc')
77  ),
78  cms.PSet(
79  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
80  tag = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
81  ),
82  cms.PSet(
83  record = cms.string('EcalTimeCalibConstantsRcd'),
84  tag = cms.string('EcalTimeCalibConstants_mc')
85  ),
86  cms.PSet(
87  record = cms.string('EcalClusterLocalContCorrParametersRcd'),
88  tag = cms.string('EcalClusterLocalContCorrParameters_mc')
89  ))
90 )
91 
92 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
93  timetype = cms.string('runnumber'),
94  toCopy = cms.VPSet(cms.PSet(
95  record = cms.string('EcalPedestalsRcd'),
96  container = cms.string('EcalPedestals')
97  ),
98  cms.PSet(
99  record = cms.string('EcalADCToGeVConstantRcd'),
100  container = cms.string('EcalADCToGeVConstant')
101  ),
102  cms.PSet(
103  record = cms.string('EcalChannelStatusRcd'),
104  container = cms.string('EcalChannelStatus')
105  ),
106  cms.PSet(
107  record = cms.string('EcalIntercalibConstantsRcd'),
108  container = cms.string('EcalIntercalibConstants')
109  ),
110  cms.PSet(
111  record = cms.string('EcalIntercalibErrorsRcd'),
112  container = cms.string('EcalIntercalibErrors')
113  ),
114  cms.PSet(
115  record = cms.string('EcalIntercalibConstantsMCRcd'),
116  container = cms.string('EcalIntercalibConstantsMC')
117  ),
118  cms.PSet(
119  record = cms.string('EcalGainRatiosRcd'),
120  container = cms.string('EcalGainRatios')
121  ),
122  cms.PSet(
123  record = cms.string('EcalWeightXtalGroupsRcd'),
124  container = cms.string('EcalWeightXtalGroups')
125  ),
126  cms.PSet(
127  record = cms.string('EcalTBWeightsRcd'),
128  container = cms.string('EcalTBWeights')
129  ),
130  cms.PSet(
131  record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
132  container = cms.string('EcalClusterEnergyUncertaintyParameters')
133  ),
134  cms.PSet(
135  record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
136  container = cms.string('EcalClusterEnergyCorrectionParameters')
137  ),
138  cms.PSet(
139  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
140  container = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters')
141  ),
142  cms.PSet(
143  record = cms.string('EcalClusterLocalContCorrParametersRcd'),
144  container = cms.string('EcalClusterLocalContCorrParameters')
145  ),
146  cms.PSet(
147  record = cms.string('EcalTimeCalibConstantsRcd'),
148  container = cms.string('EcalTimeCalibConstants')
149  ))
150 )
151 
152 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
153 
154 process.p = cms.Path(process.prod*process.dbCopy)
155