CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivial_orcoff_LaserOnly.py
Go to the documentation of this file.
2 
3 process = cms.Process("TEST")
4 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 process.EcalTrivialConditionRetriever.laserAPDPNTime1 = cms.untracked.string('0')
6 process.EcalTrivialConditionRetriever.laserAPDPNTime2 = cms.untracked.string('1')
7 process.EcalTrivialConditionRetriever.laserAPDPNTime3 = cms.untracked.string('2')
8 
9 process.load("CondCore.DBCommon.CondDBCommon_cfi")
10 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
11 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
12 process.CondDBCommon.connect = 'sqlite_file:DB.db'
13 
14 process.MessageLogger = cms.Service("MessageLogger",
15  debugModules = cms.untracked.vstring('*'),
16  destinations = cms.untracked.vstring('cout')
17 )
18 
19 process.source = cms.Source("EmptyIOVSource",
20  firstValue = cms.uint64(1),
21  lastValue = cms.uint64(1),
22  timetype = cms.string('runnumber'),
23  interval = cms.uint64(1)
24 )
25 
26 
27 # timetype = cms.untracked.string('timestamp'),
28 
29 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
30  process.CondDBCommon,
31  timetype = cms.untracked.string('timestamp'),
32  toPut = cms.VPSet(
33  cms.PSet(
34  record = cms.string('EcalLaserAlphasRcd'),
35  tag = cms.string('EcalLaserAlphas_mc')
36  ),
37  cms.PSet(
38  record = cms.string('EcalLaserAPDPNRatiosRcd'),
39  tag = cms.string('EcalLaserAPDPNRatios_mc')
40  ),
41  cms.PSet(
42  record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
43  tag = cms.string('EcalLaserAPDPNRatiosRef_mc')
44  ))
45 )
46 
47 
48 # timetype = cms.string('timestamp'),
49 
50 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
51  timetype = cms.string('timestamp'),
52  toCopy = cms.VPSet(
53  cms.PSet(
54  record = cms.string('EcalLaserAlphasRcd'),
55  container = cms.string('EcalLaserAlphas')
56  ),
57  cms.PSet(
58  record = cms.string('EcalLaserAPDPNRatiosRcd'),
59  container = cms.string('EcalLaserAPDPNRatios')
60  ),
61  cms.PSet(
62  record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
63  container = cms.string('EcalLaserAPDPNRatiosRef')
64  ))
65 )
66 
67 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
68 
69 process.p = cms.Path(process.prod*process.dbCopy)
70