CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivial_Laser_hlt.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.load("EcalTrivialAlpha_cfi")
6 
7 process.load("CondCore.DBCommon.CondDBCommon_cfi")
8 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_43X_ECAL'
9 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
10 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15 )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22 )
23 
24 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
25  process.CondDBCommon,
26  timetype = cms.untracked.string('runnumber'),
27  toPut = cms.VPSet(
28  cms.PSet(
29  record = cms.string('EcalLaserAlphasRcd'),
30  tag = cms.string('EcalLaserAlphas_v2_hlt')
31  ),
32  cms.PSet(
33  record = cms.string('EcalLaserAPDPNRatiosRcd'),
34  tag = cms.string('EcalLaserAPDPNRatios_v2_hlt')
35  ),
36  cms.PSet(
37  record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
38  tag = cms.string('EcalLaserAPDPNRatiosRef_v2_hlt')
39  )
40  )
41 )
42 
43 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
44  timetype = cms.string('runnumber'),
45  toCopy = cms.VPSet(
46  cms.PSet(
47  record = cms.string('EcalLaserAlphasRcd'),
48  container = cms.string('EcalLaserAlphas')
49  ),
50  cms.PSet(
51  record = cms.string('EcalLaserAPDPNRatiosRcd'),
52  container = cms.string('EcalLaserAPDPNRatios')
53  ),
54  cms.PSet(
55  record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
56  container = cms.string('EcalLaserAPDPNRatiosRef')
57  )
58  )
59 )
60 
61 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
62 
63 process.p = cms.Path(process.prod*process.dbCopy)
64