Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:42

0001 
0002 # This configuration is designed to be run as the second
0003 # in a series of cmsRun processes.  The process it configures
0004 # will read a file in streamer format and produces two root
0005 # files.
0006 
0007 # For later event selection tests these paths are run:
0008 #   path p1 1:25 pass
0009 #   path p2 pass 51:60
0010 
0011 # Checks the path names returned by the TriggerNames
0012 # service.
0013 
0014 # Multiple products are put in the event for use
0015 # in subsequent processes.
0016 
0017 # Two output files are created, one contains some
0018 # fake raw data, the other contains some fake
0019 # HLTDebug data (actual just dummy products containing
0020 # an int, just for test purposes)
0021 
0022 import FWCore.ParameterSet.Config as cms
0023 
0024 process = cms.Process("PROD")
0025 
0026 process.load("FWCore.MessageService.MessageLogger_cfi")
0027 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0028 
0029 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0030 process.options = cms.untracked.PSet(
0031 #  wantSummary = cms.untracked.bool(True),
0032   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0033 )
0034 
0035 process.source = cms.Source("NewEventStreamFileReader",
0036   fileNames = cms.untracked.vstring('file:testSeriesOfProcessesHLT.dat')
0037 )
0038 
0039 process.f1 = cms.EDFilter("TestFilterModule",
0040   acceptValue = cms.untracked.int32(25),
0041   onlyOne = cms.untracked.bool(False)
0042 )
0043 
0044 process.f2a = cms.EDFilter("TestFilterModule",
0045   acceptValue = cms.untracked.int32(50),
0046   onlyOne = cms.untracked.bool(False)
0047 )
0048 
0049 process.f2b = cms.EDFilter("TestFilterModule",
0050   acceptValue = cms.untracked.int32(10),
0051   onlyOne = cms.untracked.bool(False)
0052 )
0053 
0054 process.a = cms.EDAnalyzer(
0055   "TestTriggerNames",
0056   trigPathsPrevious = cms.untracked.vstring(
0057     'p01', 
0058     'p02', 
0059     'p03', 
0060     'p04'
0061   ),
0062   streamerSource = cms.untracked.bool(True),
0063   trigPaths = cms.untracked.vstring('p1', 'p2'),
0064   dumpPSetRegistry = cms.untracked.bool(False)
0065 )
0066 
0067 # This puts products in the lumi's and run's.  One failure
0068 # mode of the maxLuminosityBlock parameter is tested by their
0069 # mere existence.
0070 process.makeRunLumiProducts = cms.EDProducer("ThingWithMergeProducer")
0071 
0072 # In the next process we want to test input from a secondary input
0073 # file so we split the products over 2 output files.
0074 
0075 process.out1 = cms.OutputModule("PoolOutputModule",
0076   fileName = cms.untracked.string('testSeriesOfProcessesPROD1.root'),
0077   outputCommands = cms.untracked.vstring(
0078     "drop *",
0079     "keep *_fakeRaw_*_*"
0080   )
0081 )
0082 
0083 process.out2 = cms.OutputModule("PoolOutputModule",
0084   fileName = cms.untracked.string('testSeriesOfProcessesPROD2.root'),
0085   outputCommands = cms.untracked.vstring(
0086     "keep *",
0087     "drop *_fakeRaw_*_*"
0088   )
0089 )
0090 
0091 process.pathanalysis = cms.EDAnalyzer("PathAnalyzer")
0092 
0093 process.p1 = cms.Path(process.f1 * process.makeRunLumiProducts)
0094 process.p2 = cms.Path(~process.f2a * process.f2b)
0095 
0096 process.e = cms.EndPath(process.a * process.pathanalysis * process.out1 * process.out2)