CMS 3D CMS Logo

copyEcalPFRecHitThresholds_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.producedEcalPFRecHitThresholds = cms.untracked.bool(True)
6 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEB = cms.untracked.double( 0.0)
7 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEE = cms.untracked.double( 0.0)
8 
9 
10 process.load("CondCore.CondDB.CondDB_cfi")
11 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
12 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
13 process.CondDB.connect = 'sqlite_file:DB.db'
14 
15 process.MessageLogger = cms.Service("MessageLogger",
16  debugModules = cms.untracked.vstring('*'),
17  destinations = cms.untracked.vstring('cout')
18 )
19 
20 process.source = cms.Source("EmptyIOVSource",
21  firstValue = cms.uint64(1),
22  lastValue = cms.uint64(1),
23  timetype = cms.string('runnumber'),
24  interval = cms.uint64(1)
25 )
26 
27 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
28  process.CondDB,
29  toPut = cms.VPSet(
30  cms.PSet(
31  record = cms.string('EcalPFRecHitThresholdsRcd'),
32  tag = cms.string('EcalPFRecHitThresholds_2018_mc')
33  )
34  )
35 )
36 
37 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
38  timetype = cms.string('runnumber'),
39  toCopy = cms.VPSet(
40  cms.PSet(
41  record = cms.string('EcalPFRecHitThresholdsRcd'),
42  container = cms.string('EcalPFRecHitThresholds')
43  )
44  )
45 )
46 
47 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
48 
49 process.p = cms.Path(process.prod*process.dbCopy)