CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
copySimPulseShapeFromFile_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.producedEcalSimPulseShape = cms.untracked.bool(True)
6 process.EcalTrivialConditionRetriever.getSimPulseShapeFromFile = cms.untracked.bool(True) ### if set False hadrdcoded shapes will be loaded by default
7 
8 
9 ### phase I Pulse Shapes
10 #process.EcalTrivialConditionRetriever.sim_pulse_shape_TI = cms.untracked.double( 1.0)
11 #process.EcalTrivialConditionRetriever.sim_pulse_shape_EB_thresh = cms.double(0.00013)
12 #process.EcalTrivialConditionRetriever.sim_pulse_shape_EE_thresh = cms.double(0.00025)
13 #process.EcalTrivialConditionRetriever.sim_pulse_shape_APD_thresh = cms.double(0)
14 #process.EcalTrivialConditionRetriever.EBSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape.txt")
15 #process.EcalTrivialConditionRetriever.EESimPulseShapeFile = cms.untracked.string("EE_SimPulseShape.txt")
16 #process.EcalTrivialConditionRetriever.APDSimPulseShapeFile = cms.untracked.string("APD_SimPulseShape.txt")
17 
18 ### phase II Pulse Shapes
19 process.EcalTrivialConditionRetriever.sim_pulse_shape_TI = cms.untracked.double(0.250)
20 process.EcalTrivialConditionRetriever.sim_pulse_shape_EB_thresh = cms.double(0.201244)
21 process.EcalTrivialConditionRetriever.sim_pulse_shape_EE_thresh = cms.double(0.201244)
22 process.EcalTrivialConditionRetriever.sim_pulse_shape_APD_thresh = cms.double(0.201244)
23 process.EcalTrivialConditionRetriever.EBSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
24 process.EcalTrivialConditionRetriever.EESimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
25 process.EcalTrivialConditionRetriever.APDSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
26 
27 
28 process.load("CondCore.CondDB.CondDB_cfi")
29 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
30 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
31 process.CondDB.connect = 'sqlite_file:DB.db'
32 
33 process.MessageLogger = cms.Service("MessageLogger",
34  cerr = cms.untracked.PSet(
35  enable = cms.untracked.bool(False)
36  ),
37  cout = cms.untracked.PSet(
38  enable = cms.untracked.bool(True)
39  ),
40  debugModules = cms.untracked.vstring('*')
41 )
42 
43 process.source = cms.Source("EmptyIOVSource",
44  firstValue = cms.uint64(1),
45  lastValue = cms.uint64(1),
46  timetype = cms.string('runnumber'),
47  interval = cms.uint64(1)
48 )
49 
50 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
51  process.CondDB,
52  toPut = cms.VPSet(
53  cms.PSet(
54  record = cms.string('EcalSimPulseShapeRcd'),
55  tag = cms.string('EcalSimPulseShape_default_mc')
56  )
57  )
58 )
59 
60 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
61  timetype = cms.string('runnumber'),
62  toCopy = cms.VPSet(
63  cms.PSet(
64  record = cms.string('EcalSimPulseShapeRcd'),
65  container = cms.string('EcalSimPulseShape')
66  )
67  )
68 )
69 
70 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
71 
72 process.p = cms.Path(process.prod*process.dbCopy)