File indexing completed on 2024-04-06 12:10:54
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
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
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
0058
0059
0060 from Configuration.AlCa.GlobalTag import GlobalTag
0061 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
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),
0097 RawCollectionList = cms.VInputTag(
0098 cms.InputTag('caloLayer1RawFed1354'),
0099 cms.InputTag('caloLayer1RawFed1356'),
0100 cms.InputTag('caloLayer1RawFed1358'),
0101 ),
0102 )
0103
0104
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 )