Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-24 01:11:28

0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 
0004 
0005 ## VarParsing object
0006 
0007 options = VarParsing('analysis')
0008 
0009 options.register('globaltag', '122X_mcRun3_2021_realistic_v1', VarParsing.multiplicity.singleton, VarParsing.varType.string, 'Set Global Tag')
0010 options.register('name', 'TEST', VarParsing.multiplicity.singleton, VarParsing.varType.string, 'Set process name')
0011 
0012 options.parseArguments()
0013 
0014 
0015 ## Process
0016 
0017 process = cms.Process("ExoticaDQM")
0018 
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 process.load("Configuration.StandardSequences.MagneticField_cff")
0021 process.GlobalTag.globaltag = cms.string(options.globaltag)
0022 
0023 process.load("DQM.Physics.ExoticaDQM_cfi")
0024 process.load("DQMServices.Core.DQM_cfg")
0025 process.load("DQMServices.Components.DQMEnvironment_cfi")
0026 
0027 
0028 process.load('DQMOffline.Configuration.DQMOffline_cff')
0029 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0030 
0031 process.dqmSaver.workflow   = '/Physics/Exotica/WprimeENu'
0032 process.dqmSaver.convention = 'RelVal'
0033 
0034 
0035 ## output
0036 #Needed to the the plots locally
0037 
0038 process.output = cms.OutputModule("PoolOutputModule",
0039   fileName       = cms.untracked.string('EXOTICA_DQM_' + options.name + '.root'),
0040   outputCommands = cms.untracked.vstring(
0041     'drop *_*_*_*',
0042     'keep *_*_*_ExoticaDQM'
0043     ),
0044   splitLevel     = cms.untracked.int32(0),
0045   dataset = cms.untracked.PSet(
0046     dataTier   = cms.untracked.string(''),
0047     filterName = cms.untracked.string('')
0048   )
0049 )
0050 
0051 
0052 process.maxEvents = cms.untracked.PSet(
0053     input = cms.untracked.int32(-1)
0054 )
0055 
0056 
0057 
0058 process.source = cms.Source(
0059     "PoolSource",
0060     fileNames = cms.untracked.vstring(
0061 '/store/relval/CMSSW_12_2_0_pre2/RelValZprimeToEE_M-6000_TuneCP5_14TeV-pythia8/GEN-SIM-RECO/122X_mcRun3_2021_realistic_v1_TkmkFitHighStat-v1/2580000/1e0694f9-fbf3-4bd0-8eef-3ec39232e5ad.root'
0062     )
0063 )
0064 
0065 process.load('JetMETCorrections.Configuration.JetCorrectors_cff')
0066 
0067 
0068 ## path definitions
0069 process.p      = cms.Path(
0070     process.ExoticaDQM
0071 
0072 )
0073 
0074 process.endjob = cms.Path(
0075     process.endOfProcess
0076 )
0077 
0078 process.fanout = cms.EndPath(
0079     process.output
0080 )
0081 
0082 
0083 ## schedule definition
0084 process.schedule = cms.Schedule(
0085     process.p,
0086     process.endjob,
0087     process.fanout
0088 )
0089                           
0090 
0091