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 
0035 process.rctTPGDigis = cms.EDProducer("L1RCTTPGProvider",
0036                           ecalTPGs = cms.InputTag("simEcalTriggerPrimitiveDigis"),
0037                           hcalTPGs = cms.InputTag("simHcalTriggerPrimitiveDigis"),
0038                           useECALCosmicTiming = cms.bool(False),
0039                           useHCALCosmicTiming = cms.bool(False),
0040                           preSamples = cms.int32(0),
0041                           postSamples = cms.int32(0),
0042                           HFShift = cms.int32(0),
0043                           HBShift = cms.int32(0)
0044                           )
0045 
0046 process.rctDigis = cms.EDProducer("L1RCTProducer",
0047     ecalDigis = cms.VInputTag(
0048                               cms.InputTag("rctTPGDigis","ECALBxminus1"),
0049                               cms.InputTag("rctTPGDigis","ECALBx0"),
0050                               cms.InputTag("rctTPGDigis","ECALBxplus1")
0051     ),
0052 
0053 
0054     useDebugTpgScales = cms.bool(False),
0055     useEcal = cms.bool(True),
0056     useHcal = cms.bool(True),
0057     hcalDigis = cms.VInputTag(
0058                 cms.InputTag("rctTPGDigis","HCALBxminus1"),
0059                 cms.InputTag("rctTPGDigis","HCALBx0"),
0060                 cms.InputTag("rctTPGDigis","HCALBxplus1")
0061     ),
0062     BunchCrossings = cms.vint32(-1,0,1)                      
0063 
0064 
0065 )
0066 
0067 
0068 process.load("L1TriggerConfig.RCTConfigProducers.L1RCTConfig_cff")
0069 
0070 
0071 process.L1Analysis = cms.EDAnalyzer("L1RCTTestAnalyzer",
0072     hcalDigisLabel = cms.InputTag("rctTPGDigis","HCALBx0"),
0073     showEmCands = cms.untracked.bool(True),
0074     ecalDigisLabel = cms.InputTag("rctTPGDigis","ECALBx0"),
0075     rctDigisLabel = cms.InputTag("rctDigis"),
0076     showRegionSums = cms.untracked.bool(False)
0077 )
0078 
0079 
0080 process.TFileService = cms.Service("TFileService",
0081                                  fileName = cms.string("histo.root"),
0082                                  closeFileFast = cms.untracked.bool(True)
0083                              )
0084 
0085 
0086 
0087 # L1 configuration
0088 process.load('L1Trigger.Configuration.L1DummyConfig_cff')
0089 
0090 
0091 process.output = cms.OutputModule("PoolOutputModule",
0092     outputCommands = cms.untracked.vstring('drop *', 
0093         'keep *_rct*_*_*'),
0094 
0095     fileName = cms.untracked.string('L1output.root')
0096 )
0097 
0098 
0099 
0100 
0101 process.p = cms.Path(
0102     process.ecalDigis
0103     *process.hcalDigis
0104     *process.rctTPGDigis
0105     *process.rctDigis
0106     *process.L1Analysis
0107     
0108 )
0109 
0110 process.e = cms.EndPath(process.output)
0111 process.schedule = cms.Schedule(process.p,process.e)