CMS 3D CMS Logo

copyFileAlignES_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("TEST")
4 
5 process.load("EcalTrivialAlignment_cfi")
6 
7 process.load("CondCore.CondDB.CondDB_cfi")
8 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
9 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
10 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
11 process.CondDB.connect = 'sqlite_file:ESAlign_2016.db'
12 
13 process.MessageLogger = cms.Service("MessageLogger",
14  debugModules = cms.untracked.vstring('*'),
15  destinations = cms.untracked.vstring('cout')
16 )
17 
18 process.source = cms.Source("EmptyIOVSource",
19  firstValue = cms.uint64(1),
20  lastValue = cms.uint64(1),
21  timetype = cms.string('runnumber'),
22  interval = cms.uint64(1)
23 )
24 
25 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
26  process.CondDB,
27  timetype = cms.untracked.string('runnumber'),
28  toPut = cms.VPSet(
29  cms.PSet(
30  record = cms.string('ESAlignmentRcd'),
31  tag = cms.string('ESAlignment_2016')
32  )
33  )
34 )
35 
36 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
37  timetype = cms.string('runnumber'),
38  toCopy = cms.VPSet(
39  cms.PSet(
40  record = cms.string('ESAlignmentRcd'),
41  container = cms.string('ESAlignment')
42  )
43  )
44 )
45 
46 
47 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
48 
49 process.p = cms.Path(process.prod*process.dbCopy)
50