Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 
0004 
0005 options = VarParsing('analysis')
0006 options.setDefault(
0007     'inputFiles', ['L1TOffline_L1TStage2CaloLayer2_job1_RAW2DIGI_RECO_DQM.root'])
0008 options.parseArguments()
0009 
0010 process = cms.Process('HARVESTING')
0011 
0012 # import of standard configurations
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.load('Configuration.EventContent.EventContent_cff')
0016 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0017 process.load(
0018     'Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0019 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
0020 process.load(
0021     'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022 
0023 # load DQM
0024 process.load("DQMServices.Core.DQM_cfg")
0025 process.load("DQMServices.Components.DQMEnvironment_cfi")
0026 
0027 # my client and my Tests
0028 process.load('DQMServices.Examples.test.DQMExample_Step2_cfi')
0029 process.load('DQMServices.Examples.test.DQMExample_GenericClient_cfi')
0030 process.load('DQMServices.Examples.test.DQMExample_qTester_cfi')
0031 
0032 # L1T
0033 process.load('DQMOffline.L1Trigger.L1TEtSumEfficiency_cfi')
0034 process.load('DQMOffline.L1Trigger.L1TEtSumDiff_cfi')
0035 process.load('DQMOffline.L1Trigger.L1TJetEfficiency_cfi')
0036 process.load('DQMOffline.L1Trigger.L1TJetDiff_cfi')
0037 process.load('DQMOffline.L1Trigger.L1TEGammaEfficiency_cfi')
0038 process.load('DQMOffline.L1Trigger.L1TEGammaDiff_cfi')
0039 process.load('DQMOffline.L1Trigger.L1TTauEfficiency_cfi')
0040 process.load('DQMOffline.L1Trigger.L1TTauDiff_cfi')
0041 
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input=cms.untracked.int32(1)
0045 )
0046 
0047 # Input source
0048 process.source = cms.Source(
0049     "DQMRootSource",
0050     fileNames=cms.untracked.vstring(
0051         "file:{0}".format(options.inputFiles[0]))
0052 )
0053 
0054 
0055 # Other statements
0056 from Configuration.AlCa.GlobalTag import GlobalTag
0057 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')  # for MC
0058 
0059 
0060 # Path and EndPath definitions
0061 process.myHarvesting = cms.Path(process.DQMExampleStep2)
0062 process.myEff = cms.Path(
0063     process.l1tEtSumEfficiency *
0064     process.l1tEtSumEmuEfficiency *
0065     process.l1tEtSumEmuDiff +
0066     process.l1tJetEfficiency *
0067     process.l1tJetEmuEfficiency *
0068     process.l1tJetEmuDiff +
0069     process.l1tEGammaEfficiency *
0070     process.l1tEGammaEmuEfficiency *
0071     process.l1tEGammaEmuDiff +
0072     process.l1tTauEfficiency *
0073     process.l1tTauEmuEfficiency *
0074     process.l1tTauEmuDiff
0075 )
0076 process.myTest = cms.Path(process.DQMExample_qTester)
0077 process.dqmsave_step = cms.Path(process.dqmSaver)
0078 
0079 # Schedule definition
0080 process.schedule = cms.Schedule(
0081     process.myEff,
0082     #     process.myTest,
0083     #     process.myHarvesting,
0084     process.dqmsave_step
0085 )
0086 
0087 process.DQMStore.verbose = cms.untracked.int32(1)
0088 process.DQMStore.verboseQT = cms.untracked.int32(1)
0089 
0090 #process.dqmSaver.saveAtJobEnd = cms.untracked.bool(True)
0091 #process.dqmSaver.forceRunNumber = cms.untracked.int32(123456)
0092 
0093 process.dqmSaver.workflow = '/L1T/L1TStage2CaloLayer2/DQM'