Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:05

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 
0005 
0006 process = cms.Process("QuadJetAnalysis")
0007 
0008 #process.load("DQMOffline.Trigger.MuonTrigRateAnalyzer_cosmics_cfi")
0009 #process.load("DQMOffline.Trigger.MuonOffline_Trigger_cosmics_cff")
0010 #process.load("DQMOffline.Trigger.MuonOffline_Trigger_cff")
0011 process.load("DQMOffline.Trigger.QuadJetAna_cfi")
0012 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0013 process.load("DQMServices.Components.DQMStoreStats_cfi")
0014 
0015 
0016 ## parse some command line arguments
0017 
0018 options = VarParsing.VarParsing ('standard')
0019 
0020 #options.files = '/store/relval/CMSSW_3_2_5/RelValTTbar/GEN-SIM-RECO/MC_31X_V5-v1/0011/B46D442F-478E-DE11-BD8D-001D09F2462D.root'
0021 options.output = 'quadjet_source_031109a.root'
0022 options.maxEvents = 100
0023 
0024 options.parseArguments()
0025 
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(options.maxEvents)
0029     #   input = cms.untracked.int32(-1)
0030 )
0031 
0032 process.source = cms.Source("PoolSource",
0033     skipEvents = cms.untracked.uint32(0),
0034     fileNames = cms.untracked.vstring(options.files),
0035 )
0036 #process.source.fileNames=["/store/relval/CMSSW_3_1_1/RelValTTbar/GEN-SIM-RECO/MC_31X_V2-v1/0002/DEFAFFEA-596B-DE11-9CC0-001D09F252F3.root"]
0037 
0038 
0039 
0040 # take this out and try to run
0041 process.DQMStore = cms.Service("DQMStore")
0042 
0043 process.MessageLogger = cms.Service("MessageLogger",
0044     debugModules   = cms.untracked.vstring('*'),
0045     cout           = cms.untracked.PSet(
0046     # Be careful - this can print a lot of debug info
0047     #        threshold = cms.untracked.string('DEBUG')
0048     threshold = cms.untracked.string('INFO')
0049     #threshold = cms.untracked.string('WARNING')
0050     ),
0051     categories     = cms.untracked.vstring('HLTMuonVal'),
0052     destinations   = cms.untracked.vstring('cout')
0053 )
0054 
0055 process.out = cms.OutputModule("PoolOutputModule",
0056                                fastCloning = cms.untracked.bool(False), 
0057      outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0058      fileName = cms.untracked.string(options.output)                               
0059 )
0060 
0061 process.analyzerpath = cms.Path(
0062     process.quadJetAna*
0063     process.MEtoEDMConverter
0064     #process.dqmStoreStats
0065 )
0066 
0067 process.outpath = cms.EndPath(process.out)