CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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  cerr = cms.untracked.PSet(
17  enable = cms.untracked.bool(False)
18  ),
19  cout = cms.untracked.PSet(
20  enable = cms.untracked.bool(True)
21  ),
22  debugModules = cms.untracked.vstring('*')
23 )
24 
25 process.source = cms.Source("EmptyIOVSource",
26  firstValue = cms.uint64(1),
27  lastValue = cms.uint64(1),
28  timetype = cms.string('runnumber'),
29  interval = cms.uint64(1)
30 )
31 
32 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
33  process.CondDB,
34  toPut = cms.VPSet(
35  cms.PSet(
36  record = cms.string('EcalPFRecHitThresholdsRcd'),
37  tag = cms.string('EcalPFRecHitThresholds_2018_mc')
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('EcalPFRecHitThresholdsRcd'),
47  container = cms.string('EcalPFRecHitThresholds')
48  )
49  )
50 )
51 
52 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
53 
54 process.p = cms.Path(process.prod*process.dbCopy)