Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-20 22:46:24

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 options = VarParsing.VarParsing ('analysis')
0005 options.parseArguments()
0006 
0007 process = cms.Process("AMC13SpyReadout")
0008 
0009 process.options = cms.untracked.PSet(
0010     wantSummary = cms.untracked.bool(True),
0011     SkipEvent = cms.untracked.vstring('ProductNotFound'),
0012 )
0013 
0014 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0015 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0016 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(-1),
0020     output = cms.untracked.int32(-1),
0021 )
0022 
0023 process.source = cms.Source(
0024     "FRDStreamSource",
0025     fileNames = cms.untracked.vstring(options.inputFiles),
0026     verifyAdler32 = cms.untracked.bool(False),
0027     verifyChecksum = cms.untracked.bool(False),
0028     useL1EventID = cms.untracked.bool(False),
0029     firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID(*[cms.LuminosityBlockID(1,0)]),
0030     rawDataLabel = cms.untracked.string("GEM")
0031 )
0032 ## print the input file
0033 print(options.inputFiles)
0034 
0035 ## this block ensures that the output collection is named rawDataCollector, not source
0036 process.rawDataCollector = cms.EDAlias(
0037     source = cms.VPSet(
0038         cms.PSet(
0039             type = cms.string('FEDRawDataCollection')
0040         )
0041     )
0042 )
0043 
0044 process.output = cms.OutputModule(
0045     "PoolOutputModule",
0046     fileName = cms.untracked.string("output_raw.root"),
0047     ## drop the origal "source" collection
0048     outputCommands = cms.untracked.vstring(
0049         "keep *",
0050         "drop FEDRawDataCollection_source_*_*"
0051     )
0052 )
0053 
0054 process.outpath = cms.EndPath(process.output)