Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004 options = VarParsing.VarParsing('analysis')
0005 options.register('skipEvents',
0006                  0,
0007                  VarParsing.VarParsing.multiplicity.singleton,
0008                  VarParsing.VarParsing.varType.int,
0009                  "Number of events to skip")
0010 options.register('debug',
0011                  False,
0012                  VarParsing.VarParsing.multiplicity.singleton,
0013                  VarParsing.VarParsing.varType.bool,
0014                  "More verbose output")
0015 options.parseArguments()
0016 
0017 process = cms.Process('DRD')
0018 
0019 # import of standard configurations
0020 process.load('Configuration.StandardSequences.Services_cff')
0021 process.load('FWCore.MessageService.MessageLogger_cfi')
0022 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0023 process.load('Configuration.Geometry.GeometryDB_cff')
0024 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0025 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0026 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 
0029 process.source = cms.Source (
0030     "PoolSource",
0031     fileNames = cms.untracked.vstring (options.inputFiles),
0032     skipEvents=cms.untracked.uint32(options.skipEvents)
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(options.maxEvents)
0037 )
0038 
0039 process.options = cms.untracked.PSet(
0040     allowUnscheduled = cms.untracked.bool(False),
0041     wantSummary = cms.untracked.bool(True),
0042 )
0043 
0044 # Output definition
0045 process.output = cms.OutputModule(
0046     "PoolOutputModule",
0047     splitLevel = cms.untracked.int32(0),
0048     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0049     outputCommands = cms.untracked.vstring("keep *_*_*_DRD"),
0050     fileName = cms.untracked.string(options.outputFile),
0051     dataset = cms.untracked.PSet(
0052         filterName = cms.untracked.string('path'),
0053         dataTier = cms.untracked.string('')
0054     )
0055 )
0056 
0057 # Additional output definition
0058 
0059 # Other statements
0060 from Configuration.AlCa.GlobalTag import GlobalTag
0061 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0062 
0063 # enable debug message logging for our modules
0064 # process.MessageLogger = cms.Service(
0065 #     "MessageLogger",
0066 #     threshold  = cms.untracked.string('DEBUG'),
0067 #     categories = cms.untracked.vstring('L1T'),
0068 #     debugModules = cms.untracked.vstring(
0069 #         'caloLayer1Digis',
0070 #         'caloLayer1RawFed1354',
0071 #         'caloLayer1RawFed1356',
0072 #         'caloLayer1RawFed1358',
0073 #     ),
0074 #     destinations = cms.untracked.vstring('cerr'),
0075 #     cerr = cms.untracked.PSet(
0076 #         L1T = cms.untracked.PSet(
0077 #             limit = cms.untracked.int32(-1),
0078 #         ),
0079 #         default = cms.untracked.PSet(
0080 #             limit = cms.untracked.int32(0),
0081 #         ),
0082 #     ),
0083 # )
0084 
0085 
0086 # user stuff
0087 process.load('EventFilter.L1TRawToDigi.caloLayer1Digis_cfi')
0088 process.load('EventFilter.L1TRawToDigi.caloLayer1Raw_cfi')
0089 
0090 for prod in [process.caloLayer1RawFed1354, process.caloLayer1RawFed1356, process.caloLayer1RawFed1358]:
0091     prod.ecalDigis = cms.InputTag("caloLayer1Digis")
0092     prod.hcalDigis = cms.InputTag("caloLayer1Digis")
0093     prod.caloRegions = cms.InputTag("caloLayer1Digis")
0094 
0095 process.collectPackers = cms.EDProducer("RawDataCollectorByLabel",
0096     verbose = cms.untracked.int32(0),     # 0 = quiet, 1 = collection list, 2 = FED list
0097     RawCollectionList = cms.VInputTag(
0098         cms.InputTag('caloLayer1RawFed1354'),
0099         cms.InputTag('caloLayer1RawFed1356'),
0100         cms.InputTag('caloLayer1RawFed1358'),
0101     ),
0102 )
0103 
0104 # Path and EndPath definitions
0105 process.path = cms.Path(
0106     process.caloLayer1Digis *
0107     process.collectPackers,
0108     process.caloLayer1Raw
0109 )
0110 
0111 process.out = cms.EndPath(
0112     process.output
0113 )