CMS 3D CMS Logo

copyFileAlignEE_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:EEAlignment_test.db'
18 
19 process.MessageLogger = cms.Service("MessageLogger",
20  debugModules = cms.untracked.vstring('*'),
21  destinations = cms.untracked.vstring('cout')
22 )
23 
24 process.source = cms.Source("EmptyIOVSource",
25  firstValue = cms.uint64(1),
26  lastValue = cms.uint64(1),
27  timetype = cms.string('runnumber'),
28  interval = cms.uint64(1)
29 )
30 
31 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
32  process.CondDB,
33  timetype = cms.untracked.string('runnumber'),
34  toPut = cms.VPSet(
35  cms.PSet(
36  record = cms.string('EEAlignmentRcd'),
37  tag = cms.string('EEAlignment_test')
38  )
39  )
40 )
41 
42 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
43  timetype = cms.string('runnumber'),
44  toCopy = cms.VPSet(
45  cms.PSet(
46  record = cms.string('EEAlignmentRcd'),
47  container = cms.string('EEAlignment')
48  )
49  )
50 )
51 
52 
53 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
54 
55 process.p = cms.Path(process.prod*process.dbCopy)
56