CMS 3D CMS Logo

updateIntercali.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("ProcessOne")
4 
5 process.MessageLogger = cms.Service("MessageLogger",
6  cerr = cms.untracked.PSet(
7  enable = cms.untracked.bool(False)
8  ),
9  cout = cms.untracked.PSet(
10  enable = cms.untracked.bool(True),
11  threshold = cms.untracked.string('DEBUG')
12  ),
13  debugModules = cms.untracked.vstring('*')
14 )
15 
16 process.source = cms.Source("EmptyIOVSource",
17  lastValue = cms.uint64(100000000000),
18  timetype = cms.string('runnumber'),
19  firstValue = cms.uint64(100000000000),
20  interval = cms.uint64(1)
21 )
22 
23 process.load("CondCore.CondDB.CondDB_cfi")
24 
25 process.CondDB.connect = 'sqlite_file:EcalIntercalibConstants.db'
26 
27 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
28  process.CondDB,
29  logconnect = cms.untracked.string('sqlite_file:log.db'),
30  toPut = cms.VPSet(
31  cms.PSet(
32  record = cms.string('EcalIntercalibConstantsRcd'),
33  tag = cms.string('EcalIntercalibConstants')
34  )
35  )
36 )
37 
38 process.Test1 = cms.EDAnalyzer("ExTestEcalIntercalibAnalyzer",
39  record = cms.string('EcalIntercalibConstantsRcd'),
40  loggingOn= cms.untracked.bool(True),
41  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
42  SinceAppendMode=cms.bool(True),
43  Source=cms.PSet(
44  firstRun = cms.string('1'),
45 # type = cms.string('txt'),
46 # fileName = cms.string('IC2017.txt'),
47  type = cms.string('xml'),
48  fileName = cms.string('Intercalib_Bon.xml'),
49  )
50 )
51 
52 process.p = cms.Path(process.Test1)