CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lut2db_cfg.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 #FileInPath filename="CalibCalorimetry/CaloTPG/data/outputLUTtranscoder.dat"
4 
5 import FWCore.ParameterSet.Config as cms
6 
7 process = cms.Process("digitize")
8 process.load("FWCore.MessageLogger.MessageLogger_cfi")
9 
10 process.load("CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi")
11 
12 process.load("CalibCalorimetry.Configuration.Hcal_FakeConditions_cff")
13 
14 process.maxEvents = cms.untracked.PSet(
15  input = cms.untracked.int32(1)
16 )
17 process.source = cms.Source("EmptySource")
18 
19 process.HcalTPGCoderULUT = cms.ESProducer("HcalTPGCoderULUT",
20  filename = cms.FileInPath('CalibCalorimetry/HcalTPGAlgos/data/RecHit-TPG-calib.dat')
21 )
22 
23 process.sw2hw = cms.EDAnalyzer("HcalLuttoDB",
24  filePerCrate = cms.untracked.bool(True),
25  filePrefix = cms.string('testLUT'),
26  targetfirmware = cms.string('1.0.0'),
27  creationtag = cms.string('emap_hcal_emulator_test_luts')
28 )
29 
30 process.p = cms.Path(process.sw2hw)
31 process.MessageLogger.cerr.INFO.limit = 1000000
32