CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
test_2.py
Go to the documentation of this file.
2 
3 process = cms.Process("L1Val")
4 
5 process.load('Configuration.StandardSequences.Services_cff')
6 process.load("Validation.L1T.L1Validator_cfi")
7 process.load("FWCore.MessageService.MessageLogger_cfi")
8 #process.load('Configuration.StandardSequences.EndOfProcess_cff')
9 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
10 #process.load('Configuration.EventContent.EventContent_cff')
11 import FWCore.ParameterSet.VarParsing as VarParsing
12 
13 options = VarParsing.VarParsing("analysis")
14 options.parseArguments()
15 
16 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
17 
18 process.source = cms.Source("PoolSource",
19  # replace 'myfile.root' with the source file you want to use
20  fileNames = cms.untracked.vstring (options.inputFiles),
21 )
22 
23 #process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
24 # splitLevel = cms.untracked.int32(0),
25 # eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
26 # outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
27 # fileName = cms.untracked.string('L1Validation.root'),
28 # dataset = cms.untracked.PSet(
29 # filterName = cms.untracked.string(''),
30 # dataTier = cms.untracked.string('')
31 # )
32 #)
33 
34 
35 process.val_step = cms.Path(process.L1Validator)
36 #process.endjob_step = cms.EndPath(process.endOfProcess)
37 #process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
38 process.dqmsave_step = cms.Path(process.DQMSaver)
39 
40 process.schedule = cms.Schedule(process.val_step, process.dqmsave_step)