File indexing completed on 2025-03-08 03:06:58
0001 """
0002 This script runs the harvesting step on top of the file `simDoublets_DQMIO.root` produced when running the
0003 simDoubletsPhase2_TEST.py script. To harvest simply run:
0004
0005 cmsRun simDoubletsPhase2_HARVESTING.py
0006
0007 This will produce a DQM file with all SimDoublets histograms.
0008 """
0009
0010 import FWCore.ParameterSet.Config as cms
0011
0012 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0013
0014 process = cms.Process('HARVESTING',Phase2C17I13M9)
0015
0016
0017 process.load('Configuration.StandardSequences.Services_cff')
0018 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0019 process.load('FWCore.MessageService.MessageLogger_cfi')
0020 process.load('Configuration.EventContent.EventContent_cff')
0021 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0022 process.load('Configuration.Geometry.GeometryExtendedRun4D110Reco_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_cff')
0024 process.load('Configuration.StandardSequences.DQMSaverAtRunEnd_cff')
0025 process.load('Configuration.StandardSequences.Harvesting_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027
0028 process.maxEvents = cms.untracked.PSet(
0029 input = cms.untracked.int32(-1)
0030 )
0031
0032
0033 process.source = cms.Source("DQMRootSource",
0034 fileNames = cms.untracked.vstring('file:simDoublets_DQMIO.root')
0035 )
0036
0037 process.options = cms.untracked.PSet(
0038 Rethrow = cms.untracked.vstring('ProductNotFound'),
0039 fileMode = cms.untracked.string('FULLMERGE')
0040 )
0041
0042
0043 process.configurationMetadata = cms.untracked.PSet(
0044 version = cms.untracked.string('$Revision: 1.19 $'),
0045 annotation = cms.untracked.string('step4 nevts:100'),
0046 name = cms.untracked.string('Applications')
0047 )
0048
0049
0050 from Configuration.AlCa.GlobalTag import GlobalTag
0051 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T33', '')
0052
0053
0054 process.load('Validation.TrackingMCTruth.PostProcessorSimDoublets_cff')
0055 process.harvesting_step = cms.Path(process.postProcessorSimDoublets)
0056 process.dqmsave_step = cms.Path(process.DQMSaver)
0057
0058
0059 process.schedule = cms.Schedule(process.harvesting_step,process.dqmsave_step)