CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Ecal_PulseShapes_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 POPULATE_MC = False
4 FIRST_RUN_DATA = '2'
5 
6 if POPULATE_MC: suffix = "mc"
7 else: suffix = "data"
8 
9 process = cms.Process("ProcessOne")
10 process.load("CondCore.DBCommon.CondDBCommon_cfi")
11 process.CondDBCommon.connect = 'sqlite_file:ecaltemplates_popcon_'+suffix+'.db'
12 process.CondDBCommon.DBParameters.authenticationPath = '.'
13 process.CondDBCommon.DBParameters.messageLevel=cms.untracked.int32(1)
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.CondDBCommon,
29  logconnect = cms.untracked.string('sqlite_file:logecaltemplates_popcon_'+suffix+'.db'),
30  timetype = cms.untracked.string('runnumber'),
31  toPut = cms.VPSet(cms.PSet(
32  record = cms.string('EcalPulseShapesRcd'),
33  tag = cms.string('EcalPulseShapes_'+suffix)
34  ))
35 )
36 
37 process.Test1 = cms.EDAnalyzer("ExTestEcalPulseShapesAnalyzer",
38  SinceAppendMode = cms.bool(True),
39  record = cms.string('EcalPulseShapesRcd'),
40  loggingOn = cms.untracked.bool(True),
41  Source = cms.PSet(
42  firstRun = cms.string('1' if POPULATE_MC else FIRST_RUN_DATA),
43  inputFileName = cms.string("template_histograms_ECAL.txt"),
44  EBPulseShapeTemplate = cms.vdouble (
45  1.13979e-02, 7.58151e-01, 1.00000e+00, 8.87744e-01, 6.73548e-01, 4.74332e-01, 3.19561e-01, 2.15144e-01, 1.47464e-01, 1.01087e-01, 6.93181e-02, 4.75044e-02
46  ) ,
47  EEPulseShapeTemplate = cms.vdouble (
48  1.16442e-01, 7.56246e-01, 1.00000e+00, 8.97182e-01, 6.86831e-01, 4.91506e-01, 3.44111e-01, 2.45731e-01, 1.74115e-01, 1.23361e-01, 8.74288e-02, 6.19570e-02
49  )
50  )
51 )
52 
53 process.p = cms.Path(process.Test1)