Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:03:04

0001 # This is intended to test whether fast cloning is
0002 # actually occurring when it should. It uses a trick
0003 # to check.  With this configuration, fast cloning should
0004 # occur.  An exception unrelated to fast cloning is forced
0005 # on the second event, and after that there should be a
0006 # secondary exception as the Framework attempts to write out
0007 # and close the root files.  This secondary exception occurs
0008 # because the Event TTree should be imbalanced.  This imbalance
0009 # is caused by fast cloning.  The TTree would not be imbalanced
0010 # if fast cloning was not occurring.  The shell script that
0011 # invokes cmsRun with this configuration then uses grep to
0012 # look for the expected inbalance error and this verifies
0013 # that fast cloning was occurring.
0014 
0015 import FWCore.ParameterSet.Config as cms
0016 
0017 process = cms.Process("MERGE")
0018 
0019 process.load("FWCore.MessageService.MessageLogger_cfi")
0020 
0021 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0022 process.options = cms.untracked.PSet(
0023   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0024 )
0025 
0026 process.source = cms.Source("PoolSource",
0027     fileNames = cms.untracked.vstring(
0028         'file:testRunMerge6.root'
0029     )
0030     , duplicateCheckMode = cms.untracked.string('checkAllFilesOpened')
0031 )
0032 
0033 process.out = cms.OutputModule("PoolOutputModule",
0034     fileName = cms.untracked.string('test.root')
0035     #, fastCloning = cms.untracked.bool(False)
0036 )
0037 
0038 process.testThrow = cms.EDAnalyzer("TestFailuresAnalyzer",
0039     whichFailure = cms.int32(5),
0040     eventToThrow = cms.untracked.uint64(2)
0041 )
0042 
0043 process.p = cms.Path(process.testThrow)
0044 
0045 process.e = cms.EndPath(process.out)