Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-29 23:10:51

0001 # writeGctDigis_cfg.py
0002 #
0003 # J Brooke 9/07/07
0004 #
0005 # Python translation 15/07/08
0006 #
0007 # Create RCT/GCT digis from trigger primitive digis and write to file
0008 # Recommended for use with a RelVal file as input
0009 #
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 # The top-level process
0014 process = cms.Process("TEST")
0015 
0016 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0017  
0018 # Geometry
0019 from Configuration.StandardSequences.MagneticField_cff import *
0020 from Configuration.StandardSequences.Geometry_cff import *
0021 from Configuration.StandardSequences.GeometryDB_cff import *
0022 
0023 # include L1 emulator
0024 from L1Trigger.Configuration.L1CaloEmulator_cff import *
0025 
0026 # Input data source
0027 process.source = cms.Source("PoolSource",
0028      fileNames = cms.untracked.vstring("file:single_e_pt35.root")
0029   )
0030 
0031 maxEvents = cms.untracked.PSet ( input = cms.untracked.int32(10) )
0032 
0033 test = cms.EDAnalyzer("L1GctTestAnalyzer", 
0034     rawInput     = cms.untracked.InputTag("none"),
0035     emuInput     = cms.untracked.InputTag("gctDigis"),
0036     outFile      = cms.untracked.string("writeGctDigis.txt"),
0037     doHardware   = cms.untracked.bool(False),
0038     doEmulated   = cms.untracked.bool(True),
0039     doRctEm      = cms.untracked.bool(False),
0040     doInternEm   = cms.untracked.bool(False),
0041     doEm         = cms.untracked.bool(True),
0042     doJets       = cms.untracked.bool(False),
0043     rctEmMinRank = cms.untracked.uint32(0)
0044   )
0045 
0046 # write out Root file
0047 outputEvents = cms.OutputModule("PoolOutputModule",
0048     outputCommands = cms.untracked.vstring (
0049       "drop *",
0050       "keep *_ecalTriggerPrimitiveDigis_*_*",
0051       "keep *_hcalTriggerPrimitiveDigis_*_*",
0052       "keep *_rctDigis_*_*",
0053       "keep *_gctDigis_*_*"
0054       ),
0055       fileName = cms.untracked.string("writeGctDigis.root")
0056   )
0057 
0058 process.p = cms.Path(L1CaloEmulator*test)
0059 
0060 process.outpath = cms.EndPath(outputEvents)
0061 
0062 
0063