CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
copyFileAlignEB_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.getEBAlignmentFromFile = cms.untracked.bool(True)
6 process.EcalTrivialConditionRetriever.EBAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/EBAlignment_2018.txt')
7 process.EcalTrivialConditionRetriever.getEEAlignmentFromFile = cms.untracked.bool(True)
8 process.EcalTrivialConditionRetriever.EEAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/EEAlignment_2018.txt')
9 process.EcalTrivialConditionRetriever.getESAlignmentFromFile = cms.untracked.bool(True)
10 process.EcalTrivialConditionRetriever.ESAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/ESAlignment_2018.txt')
11 
12 #process.load("EcalTrivialAlignment_cfi")
13 
14 process.load("CondCore.CondDB.CondDB_cfi")
15 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
16 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
17 process.CondDB.connect = 'sqlite_file:EBAlignment_test.db'
18 
19 process.MessageLogger = cms.Service("MessageLogger",
20  cerr = cms.untracked.PSet(
21  enable = cms.untracked.bool(False)
22  ),
23  cout = cms.untracked.PSet(
24  enable = cms.untracked.bool(True)
25  ),
26  debugModules = cms.untracked.vstring('*')
27 )
28 
29 process.source = cms.Source("EmptyIOVSource",
30  firstValue = cms.uint64(1),
31  lastValue = cms.uint64(1),
32  timetype = cms.string('runnumber'),
33  interval = cms.uint64(1)
34 )
35 
36 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
37  process.CondDB,
38  timetype = cms.untracked.string('runnumber'),
39  toPut = cms.VPSet(
40  cms.PSet(
41  record = cms.string('EBAlignmentRcd'),
42  tag = cms.string('EBAlignment_test')
43  )
44  )
45 )
46 
47 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
48  timetype = cms.string('runnumber'),
49  toCopy = cms.VPSet(
50  cms.PSet(
51  record = cms.string('EBAlignmentRcd'),
52  container = cms.string('EBAlignment')
53  )
54  )
55 )
56 
57 
58 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
59 
60 process.p = cms.Path(process.prod*process.dbCopy)
61