CMS 3D CMS Logo

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