Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TauTest")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 #process.load("Validation.EventGenerator.TauValidation_cfi")
0007 process.load('Configuration.EventContent.EventContent_cff')
0008 process.load('Configuration/StandardSequences/EndOfProcess_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('Configuration.StandardSequences.Validation_cff')
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013 #    input = cms.untracked.int32(100)
0014     input = cms.untracked.int32(-1)    
0015 )
0016 
0017 process.source = cms.Source("PoolSource",
0018     fileNames = cms.untracked.vstring(
0019     'file:/afs/cern.ch/user/i/inugent/tmp/CMSSW_7_4_X_2015-02-03-0200/src/00A47D7F-B88D-E411-A4A1-0025905B85D0.root'
0020     ) 
0021 )
0022 
0023 ANALYSISEventContent = cms.PSet(
0024 #    outputCommands = cms.untracked.vstring('drop *')
0025     outputCommands = cms.untracked.vstring('keep *')
0026 )
0027 #ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0028 
0029 #process.out = cms.OutputModule("PoolOutputModule",
0030 #    verbose = cms.untracked.bool(False),
0031 #    fileName = cms.untracked.string('output.root'),
0032 #    outputCommands = ANALYSISEventContent.outputCommands
0033 #)
0034 
0035 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0036     dataset = cms.untracked.PSet(
0037         dataTier = cms.untracked.string('DQMIO'),
0038         filterName = cms.untracked.string('')
0039     ),
0040     fileName = cms.untracked.string('file:step1_inDQM.root'),
0041     outputCommands = process.DQMEventContent.outputCommands,
0042     splitLevel = cms.untracked.int32(0)
0043 )
0044 
0045 
0046 process.debugOutput = cms.OutputModule("PoolOutputModule",
0047                                        fileName = cms.untracked.string("Test_DYJetsToLL_M-50_TuneCUETP8M1_8TeV-amcatnloFXFX-pythia8.root"),
0048                                        outputCommands = cms.untracked.vstring('keep *'),
0049                                        )
0050 process.out_step = cms.EndPath(process.debugOutput)
0051 
0052 
0053 #Adding SimpleMemoryCheck service:
0054 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0055     ignoreTotal=cms.untracked.int32(1),
0056     oncePerEventMode=cms.untracked.bool(False))
0057 #Adding Timing service:
0058 process.Timing=cms.Service("Timing",
0059     summaryOnly=cms.untracked.bool(True))
0060 
0061 #Add these 3 lines to put back the summary for timing information at the end of the logfile
0062 #(needed for TimeReport report)
0063 process.options = cms.untracked.PSet(
0064     wantSummary = cms.untracked.bool(True)
0065 )    
0066 
0067 #process.schedule = cms.Schedule(process.tauValidation+process.endOfProcess+process.out_step)
0068 
0069 #GenEventInfoProduct                   "generator"                 ""                "SIM"
0070 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0071 process.tauValidation = DQMEDAnalyzer('TauValidation',
0072                                        genparticleCollection = cms.InputTag("genParticles",""),
0073                                        tauEtCutForRtau = cms.double(50),
0074                                        UseWeightFromHepMC = cms.bool(False)
0075                                        )
0076 
0077 process.validation_step = cms.EndPath(process.tauValidation_seq)
0078 process.out_step = cms.EndPath(process.debugOutput)
0079 #process.validation_step = cms.EndPath(process.tauValidation)
0080 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0081 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0082 #process.schedule = cms.Schedule(process.validation_step)
0083 #process.schedule.append(process.out_step)
0084 
0085 process.schedule = cms.Schedule(process.validation_step,process.DQMoutput_step)