Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 process = cms.Process("TEST", Run3)
0005 
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.LUT=dict()
0008 
0009 process.source = cms.Source("EmptySource")
0010 process.source.firstRun = cms.untracked.uint32( __RUN__ )
0011 process.maxEvents = cms.untracked.PSet(
0012    input = cms.untracked.int32(1)
0013 )
0014 
0015 process.load("Configuration.Geometry.GeometryDB_cff")
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 
0018 process.GlobalTag.globaltag = '__GlobalTag__'   
0019 
0020 process.load("SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff")
0021 
0022 process.HcalTPGCoderULUT.LUTGenerationMode = cms.bool(True)
0023 
0024 process.HcalTPGCoderULUT.DumpL1TriggerObjects = cms.bool(True)
0025 process.HcalTPGCoderULUT.TagName = cms.string('__LUTtag__')
0026 
0027 CONDDIR="__CONDDIR__"
0028 
0029 process.es_prefer = cms.ESPrefer('HcalTextCalibrations','es_ascii')
0030 process.es_ascii = cms.ESSource('HcalTextCalibrations',
0031    input = cms.VPSet(
0032       cms.PSet(
0033          object = cms.string('ChannelQuality'),
0034          file   = cms.FileInPath(CONDDIR+'/ChannelQuality/ChannelQuality_Run__RUN__.txt')
0035       ),
0036       cms.PSet(
0037          object = cms.string('Pedestals'),
0038      file   = cms.FileInPath(CONDDIR+'/Pedestals/Pedestals_Run__RUN__.txt')
0039       ),    
0040       cms.PSet(
0041          object = cms.string('Gains'),
0042      file   = cms.FileInPath(CONDDIR+'/Gains/Gains_Run__RUN__.txt')
0043       ),
0044       cms.PSet(
0045          object = cms.string('RespCorrs'),
0046      file   = cms.FileInPath(CONDDIR+'/RespCorrs/RespCorrs_Run__RUN__.txt')
0047       ),
0048       cms.PSet(
0049         object = cms.string('ElectronicsMap'),
0050     file   = cms.FileInPath(CONDDIR+'/ElectronicsMap/ElectronicsMap_Run__RUN__.txt')
0051       ),
0052       cms.PSet(
0053         object = cms.string('TPParameters'),
0054     file   = cms.FileInPath(CONDDIR+'/TPParameters/TPParameters_Run__RUN__.txt')
0055       ),
0056       cms.PSet(
0057         object = cms.string('TPChannelParameters'),
0058     file   = cms.FileInPath(CONDDIR+'/TPChannelParameters/TPChannelParameters_Run__RUN__.txt')
0059       ),
0060       cms.PSet(
0061         object = cms.string('LUTCorrs'),
0062     file   = cms.FileInPath(CONDDIR+'/LUTCorrs/LUTCorrs_Run__RUN__.txt')
0063       ),
0064       cms.PSet(
0065         object = cms.string('QIEData'),
0066     file   = cms.FileInPath(CONDDIR+'/QIEData/QIEData_Run__RUN__.txt')
0067       ),
0068       cms.PSet(
0069         object = cms.string('QIETypes'),
0070     file   = cms.FileInPath(CONDDIR+'/QIETypes/QIETypes_Run__RUN__.txt')
0071       ),
0072       cms.PSet(
0073         object = cms.string('LutMetadata'),
0074     file   = cms.FileInPath(CONDDIR+'/LutMetadata/LutMetadata_Run__RUN__.txt')
0075       ),
0076    )
0077 )
0078 
0079 process.generateLuts = cms.EDAnalyzer("HcalLutGenerator",
0080    tag = cms.string('__LUTtag__'),
0081    HO_master_file = cms.string('__HO_master_file__'),
0082    status_word_to_mask = cms.uint32(0x8000)
0083 )
0084 
0085 process.writeL1TriggerObjectsTxt = cms.EDAnalyzer('WriteL1TriggerObjectsTxt',
0086    TagName = cms.string('__LUTtag__'),
0087 )
0088 
0089 process.p = cms.Path(
0090    process.generateLuts + process.writeL1TriggerObjectsTxt
0091 )