CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CalibCalorimetry/HcalTPGIO/python/lut2db_cfg.py

Go to the documentation of this file.
00001 # The following comments couldn't be translated into the new config version:
00002 
00003 #FileInPath filename="CalibCalorimetry/CaloTPG/data/outputLUTtranscoder.dat"
00004 
00005 import FWCore.ParameterSet.Config as cms
00006 
00007 process = cms.Process("digitize")
00008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00009 
00010 process.load("CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi")
00011 
00012 process.load("CalibCalorimetry.Configuration.Hcal_FakeConditions_cff")
00013 
00014 process.maxEvents = cms.untracked.PSet(
00015     input = cms.untracked.int32(1)
00016 )
00017 process.source = cms.Source("EmptySource")
00018 
00019 process.HcalTPGCoderULUT = cms.ESProducer("HcalTPGCoderULUT",
00020     filename = cms.FileInPath('CalibCalorimetry/HcalTPGAlgos/data/RecHit-TPG-calib.dat')
00021 )
00022 
00023 process.sw2hw = cms.EDAnalyzer("HcalLuttoDB",
00024     filePerCrate = cms.untracked.bool(True),
00025     filePrefix = cms.string('testLUT'),
00026     targetfirmware = cms.string('1.0.0'),
00027     creationtag = cms.string('emap_hcal_emulator_test_luts')
00028 )
00029 
00030 process.p = cms.Path(process.sw2hw)
00031 process.MessageLogger.cerr.INFO.limit = 1000000
00032