CMS 3D CMS Logo

updateTPGWeightIdMap.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:EcalTPGWeightIdMap.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('EcalTPGWeightIdMapRcd'),
33  tag = cms.string('EcalTPGWeightIdMap')
34  )
35  )
36 )
37 
38 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGWeightIdMapAnalyzer",
39  record = cms.string('EcalTPGWeightIdMapRcd'),
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  lastRun = cms.string('10'),
46  OnlineDBSID = cms.string(''),
47  OnlineDBUser = cms.string(''),
48  OnlineDBPassword = cms.string(''),
49  LocationSource = cms.string(''),
50  Location = cms.string(''),
51  GenTag = cms.string(''),
52  RunType = cms.string(''),
53 # fileType = cms.string('xml'),
54  fileType = cms.string('txt'),
55 # fileName = cms.string('EcalTPGWeightIdMap.xml'),
56  fileName = cms.string('EcalTPGWeightIdMap.txt'),
57  )
58 )
59 
60 process.p = cms.Path(process.Test1)