CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  debugModules = cms.untracked.vstring('*'),
19  destinations = cms.untracked.vstring('cout')
20 )
21 
22 process.source = cms.Source("EmptyIOVSource",
23  firstValue = cms.uint64(1),
24  lastValue = cms.uint64(1),
25  timetype = cms.string('runnumber'),
26  interval = cms.uint64(1)
27 )
28 
29 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
30  process.CondDBCommon,
31  toPut = cms.VPSet(cms.PSet(
32  record = cms.string('EcalPedestalsRcd'),
33  tag = cms.string('EcalPedestals_TL1000_IL5E34_mc')
34  ),
35  cms.PSet(
36  record = cms.string('EcalLaserAPDPNRatiosRcd'),
37  tag = cms.string('EcalLaserAPDPNRatios_TL1000_IL5E34_mc')
38  ),
39  cms.PSet(
40  record = cms.string('EcalIntercalibConstantsRcd'),
41  tag = cms.string('EcalIntercalibConstants_TL1000_IL5E34_mc')
42  ) , cms.PSet(
43  record = cms.string('EcalIntercalibConstantsMCRcd'),
44  tag = cms.string('EcalIntercalibConstantsMC_TL1000_IL5E34_mc')
45  )
46  )
47 )
48 
49 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
50  timetype = cms.string('runnumber'),
51  toCopy = cms.VPSet(cms.PSet(
52  record = cms.string('EcalPedestalsRcd'),
53  container = cms.string('EcalPedestals')
54  ),
55  cms.PSet(
56  record = cms.string('EcalLaserAPDPNRatiosRcd'),
57  container = cms.string('EcalLaserAPDPNRatios')
58  ),
59  cms.PSet(
60  record = cms.string('EcalIntercalibConstantsRcd'),
61  container = cms.string('EcalIntercalibConstants')
62  ),
63  cms.PSet(
64  record = cms.string('EcalIntercalibConstantsMCRcd'),
65  container = cms.string('EcalIntercalibConstantsMC')
66  ))
67 )
68 
69 
70 
71 process.p = cms.Path(process.dbCopy)
72