Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:12

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 process = cms.Process("BasicGenTest")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 process.load("Validation.EventGenerator.TauValidation_cfi")
0006 process.load('Configuration.EventContent.EventContent_cff')
0007 process.load('Configuration/StandardSequences/EndOfProcess_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0010 process.dqmSaver.saveAtJobEnd = cms.untracked.bool(True)
0011 process.dqmSaver.workflow = "/"+os.environ["CMSSW_VERSION"]+"/RelVal/Validation"
0012 process.dqmSaver.forceRunNumber = cms.untracked.int32(1)
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1000)
0016     )
0017 
0018 process.source = cms.Source("PoolSource",
0019                             fileNames = cms.untracked.vstring('file:00A47D7F-B88D-E411-A4A1-0025905B85D0.root')
0020                             )
0021 
0022 ANALYSISEventContent = cms.PSet(
0023     outputCommands = cms.untracked.vstring('drop *')
0024     )
0025 
0026 ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0027 
0028 process.OutputModule = cms.OutputModule("PoolOutputModule",
0029                                verbose = cms.untracked.bool(False),
0030                                fileName = cms.untracked.string('output.root'),
0031                                outputCommands = ANALYSISEventContent.outputCommands
0032                                )
0033 
0034 #Adding SimpleMemoryCheck service:
0035 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0036                                       ignoreTotal=cms.untracked.int32(1),
0037                                       oncePerEventMode=cms.untracked.bool(False))
0038 
0039 #Adding Timing service:
0040 process.Timing=cms.Service("Timing",
0041                            summaryOnly=cms.untracked.bool(True))
0042 #Add these 3 lines to put back the summary for timing information at the end of the logfile
0043 #(needed for TimeReport report)
0044 
0045 process.options = cms.untracked.PSet(
0046     wantSummary = cms.untracked.bool(True)
0047     )
0048 
0049 
0050 
0051 process.path = cms.Path(process.tauValidation+process.endOfProcess)
0052 process.EDMtoMEconv_and_saver= cms.Path(process.EDMtoMEConverter*process.dqmSaver)