Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-01 22:52:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 
0006 process.source = cms.Source(
0007     "PoolSource",
0008     fileNames = cms.untracked.vstring(
0009     'file:/scratch/bachtis/test.root'
0010        
0011     )
0012 )
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(3000)
0016 )
0017 
0018 # standard includes
0019 process.load("Configuration.StandardSequences.GeometryDB_cff")
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 process.GlobalTag.globaltag = "IDEAL_30X"
0022 
0023 
0024 # unpack raw data
0025 process.load("Configuration.StandardSequences.RawToDigi_cff")
0026 
0027 # run trigger primitive generation on unpacked digis, then central L1
0028 process.load("L1Trigger.Configuration.CaloTriggerPrimitives_cff")
0029 
0030 process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
0031 process.simHcalTriggerPrimitiveDigis.inputLabel = 'hcalDigis'
0032 
0033 
0034 process.load("L1TriggerConfig.RCTConfigProducers.L1RCTConfig_cff")
0035 process.load("L1Trigger.RegionalCaloTrigger.rctDigis_cfi")
0036 
0037 process.rctDigis.ecalDigis =cms.VInputTag( cms.InputTag('simEcalTriggerPrimitiveDigis'))
0038 process.rctDigis.hcalDigis = cms.VInputTag(cms.InputTag('simHcalTriggerPrimitiveDigis'))
0039 
0040 process.L1Analysis = cms.EDAnalyzer("L1RCTTestAnalyzer",
0041     hcalDigisLabel = cms.InputTag("simHcalTriggerPrimitiveDigis"),
0042     showEmCands = cms.untracked.bool(False),
0043     ecalDigisLabel = cms.InputTag("simEcalTriggerPrimitiveDigis"),
0044     rctDigisLabel = cms.InputTag("rctDigis"),
0045     showRegionSums = cms.untracked.bool(False)
0046 )
0047 
0048 
0049 process.TFileService = cms.Service("TFileService",
0050                                  fileName = cms.string("histo.root"),
0051                                  closeFileFast = cms.untracked.bool(True)
0052                              )
0053 
0054 
0055 
0056 # L1 configuration
0057 process.load('L1Trigger.Configuration.L1DummyConfig_cff')
0058 
0059 
0060 process.rctDigis.useCorrectionsLindsey = cms.bool(False)
0061 
0062 process.p = cms.Path(
0063     process.ecalDigis
0064     *process.hcalDigis
0065     *process.rctDigis
0066     *process.L1Analysis
0067 )
0068 
0069