Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 POPULATE_MC = False
0004 FIRST_RUN_DATA = '2'
0005 
0006 if POPULATE_MC: suffix = "mc"
0007 else: suffix = "data"
0008 
0009 process = cms.Process("ProcessOne")
0010 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0011 process.CondDBCommon.connect = 'sqlite_file:ecaltemplates_popcon_'+suffix+'.db'
0012 process.CondDBCommon.DBParameters.authenticationPath = '.'
0013 process.CondDBCommon.DBParameters.messageLevel=cms.untracked.int32(1)
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     cout = cms.untracked.PSet(
0020         enable = cms.untracked.bool(True)
0021     ),
0022     debugModules = cms.untracked.vstring('*')
0023 )
0024 
0025 process.source = cms.Source("EmptyIOVSource",
0026                             firstValue = cms.uint64(1),
0027                             lastValue = cms.uint64(1),
0028                             timetype = cms.string('runnumber'),
0029                             interval = cms.uint64(1)
0030                             )
0031 
0032 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0033     process.CondDBCommon,
0034     logconnect = cms.untracked.string('sqlite_file:logecaltemplates_popcon_'+suffix+'.db'),
0035     timetype = cms.untracked.string('runnumber'),
0036     toPut = cms.VPSet(cms.PSet(
0037         record = cms.string('EcalPulseShapesRcd'),
0038         tag = cms.string('EcalPulseShapes_'+suffix)
0039     ))
0040 )
0041 
0042 process.Test1 = cms.EDAnalyzer("ExTestEcalPulseShapesAnalyzer",
0043     SinceAppendMode = cms.bool(True),
0044     record = cms.string('EcalPulseShapesRcd'),
0045     loggingOn = cms.untracked.bool(True),
0046     Source = cms.PSet(
0047         firstRun = cms.string('1' if POPULATE_MC else FIRST_RUN_DATA),
0048         inputFileName = cms.string("template_histograms_ECAL.txt"),
0049         EBPulseShapeTemplate = cms.vdouble (
0050             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
0051             ) ,
0052         EEPulseShapeTemplate = cms.vdouble (
0053             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
0054             )
0055         )
0056 )
0057 
0058 process.p = cms.Path(process.Test1)