Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:41

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 
0005 process = cms.Process("EDMtoMEConvert")
0006 
0007 #process.load("DQMServices.Components.EDMtoMEConverter_cff")
0008 process.load('Configuration/StandardSequences/EDMtoMEAtJobEnd_cff')
0009 process.load("DQMServices.Components.DQMEnvironment_cfi")
0010 process.load("DQMOffline.Trigger.MuonPostProcessor_cff")
0011 #process.load("DQMOffline.Trigger.BPAGPostProcessor_cff")
0012 #process.load("DQMOffline.Trigger.QuadJetPostProcessor_cfi")
0013 process.load("DQMServices.Components.DQMStoreStats_cfi")
0014 
0015 ## parse some command line arguments
0016 
0017 options = VarParsing.VarParsing ('standard')
0018 
0019 options.register ('outputDir',
0020                   -1, # default value
0021                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0022                   VarParsing.VarParsing.varType.string,          # string, int, or float
0023                   "Directory for DQM saver to put your output")
0024 
0025 options.register ('workflow',
0026                   -1, # default value
0027                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0028                   VarParsing.VarParsing.varType.string,          # string, int, or float
0029                   "One string w/ 3 slashes: /Blah/fu/mEh")
0030 
0031 
0032 options.output = 'quadjet_client_01.root'
0033 options.maxEvents = 100
0034 options.outputDir = '/afs/cern.ch/user/s/sboutle/scratch0/CMSSW_3_2_5/src/DQMOffline/Trigger/test/'
0035 options.workflow  = '/DQMGeneric/BPAG/Post'
0036 options.parseArguments()
0037 #options.files = 'quadjet_source_01_numEvent100.root'
0038 
0039 
0040 
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(options.maxEvents)
0044 )
0045 
0046 process.MessageLogger = cms.Service("MessageLogger",
0047                                     destinations = cms.untracked.vstring('cout'),
0048                                     categories = cms.untracked.vstring('DQMGenericClient'),
0049                                     debugModules = cms.untracked.vstring('*'),
0050                                     threshold = cms.untracked.string('DEBUG'),
0051                                     DQMGenericClient = cms.untracked.PSet(
0052                                          #threshold = cms.untracked.string('DEBUG'),
0053                                          limit = cms.untracked.int32(100000)
0054                                          )
0055                                     )
0056 
0057 process.source = cms.Source("PoolSource",
0058                             # must precede with file:
0059                             #fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/s/slaunwhj/scratch0/MuonTrigOffline_nALL_useAodAndRAW_vMorePlots_DRStudy.root')
0060                             #fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/s/slaunwhj/scratch0/EDM_cosmic_vMoreTrigs_newAna.root'),
0061                             #fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/s/slaunwhj/scratch0/EDM_jpsi_pre10.root'),
0062                             fileNames = cms.untracked.vstring(options.files),
0063                             #fileNames = cms.untracked.vstring('file:quadjet_source_301009_numEvent100.root'),
0064                             #fileNames = cms.untracked.vstring('file:quadjet_source_031109a_numEvent100.root'),
0065                             #fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/s/slaunwhj/scratch0/MuonTrigOffline_nALL_p1_vMorePlots.root')
0066 )
0067 
0068 #three slashes, /file/descript/name
0069 process.dqmSaver.workflow = options.workflow
0070 # local directory to put file
0071 process.dqmSaver.dirName = options.outputDir
0072 
0073 
0074 
0075 
0076 process.path = cms.Path(process.EDMtoME * process.hLTMuonPostVal)
0077 #process.path = cms.Path(process.EDMtoME*process.bPAGPostProcessor*process.dqmStoreStats)
0078 
0079 process.endpath = cms.EndPath(process.dqmSaver)