CMS 3D CMS Logo

copyTrivial_aging_cfg.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 process.EcalTrivialConditionRetriever.TotLumi = cms.untracked.double(1000.0)
6 process.EcalTrivialConditionRetriever.InstLumi = cms.untracked.double(5.0e+34)
7 process.EcalTrivialConditionRetriever.intercalibConstantsFile = cms.untracked.string("EcalIntercalibConstants_2011_V3_Bon_start_mc.xml")
8 process.EcalTrivialConditionRetriever.intercalibConstantsMCFile = cms.untracked.string("EcalIntercalibConstantsMC_digi_2011_V3_Bon_mc.xml")
9 
10 
11 
12 process.load("CondCore.DBCommon.CondDBCommon_cfi")
13 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
14 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
15 process.CondDBCommon.connect = 'sqlite_file:DB.db'
16 
17 process.MessageLogger = cms.Service("MessageLogger",
18  cerr = cms.untracked.PSet(
19  enable = cms.untracked.bool(False)
20  ),
21  cout = cms.untracked.PSet(
22  enable = cms.untracked.bool(True)
23  ),
24  debugModules = cms.untracked.vstring('*')
25 )
26 
27 process.source = cms.Source("EmptyIOVSource",
28  firstValue = cms.uint64(1),
29  lastValue = cms.uint64(1),
30  timetype = cms.string('runnumber'),
31  interval = cms.uint64(1)
32 )
33 
34 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
35  process.CondDBCommon,
36  toPut = cms.VPSet(cms.PSet(
37  record = cms.string('EcalPedestalsRcd'),
38  tag = cms.string('EcalPedestals_TL1000_IL5E34_mc')
39  ),
40  cms.PSet(
41  record = cms.string('EcalLaserAPDPNRatiosRcd'),
42  tag = cms.string('EcalLaserAPDPNRatios_TL1000_IL5E34_mc')
43  ),
44  cms.PSet(
45  record = cms.string('EcalIntercalibConstantsRcd'),
46  tag = cms.string('EcalIntercalibConstants_TL1000_IL5E34_mc')
47  ) , cms.PSet(
48  record = cms.string('EcalIntercalibConstantsMCRcd'),
49  tag = cms.string('EcalIntercalibConstantsMC_TL1000_IL5E34_mc')
50  )
51  )
52 )
53 
54 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
55  timetype = cms.string('runnumber'),
56  toCopy = cms.VPSet(cms.PSet(
57  record = cms.string('EcalPedestalsRcd'),
58  container = cms.string('EcalPedestals')
59  ),
60  cms.PSet(
61  record = cms.string('EcalLaserAPDPNRatiosRcd'),
62  container = cms.string('EcalLaserAPDPNRatios')
63  ),
64  cms.PSet(
65  record = cms.string('EcalIntercalibConstantsRcd'),
66  container = cms.string('EcalIntercalibConstants')
67  ),
68  cms.PSet(
69  record = cms.string('EcalIntercalibConstantsMCRcd'),
70  container = cms.string('EcalIntercalibConstantsMC')
71  ))
72 )
73 
74 
75 
76 process.p = cms.Path(process.dbCopy)
77