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 first
0003 # in a series of cmsRun processes.  Several things get
0004 # tested independently in this series of processes.
0005 # This first process will create a streamer file.
0006 
0007 # For event selection tests several paths are run:
0008 #   99 events are generated
0009 #   path p01 events 1:98 pass
0010 #   path p02 events 21:30 pass
0011 #   path p03 event 71 only passes
0012 #   path p04 all fail
0013 
0014 # Checks the path names returned by the TriggerNames
0015 # service.
0016 
0017 # Multiple products are put in the event for use
0018 # in subsequent processes. Some products faking
0019 # raw data products and some faking hlt products.
0020 # They are not used here, just created for later
0021 # use.
0022 
0023 # Creates multiple luminosity blocks for a later
0024 # test of the maxLuminosityBlock parameter
0025 
0026 import FWCore.ParameterSet.Config as cms
0027 
0028 process = cms.Process("HLT")
0029 
0030 process.source = cms.Source("EmptySource",
0031   firstLuminosityBlock = cms.untracked.uint32(1),
0032   numberEventsInLuminosityBlock = cms.untracked.uint32(5),
0033   firstEvent = cms.untracked.uint32(1),
0034   firstRun = cms.untracked.uint32(1),
0035   numberEventsInRun = cms.untracked.uint32(1000)
0036 )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039   input = cms.untracked.int32(99)
0040 )
0041 
0042 process.load("FWCore.MessageService.MessageLogger_cfi")
0043 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0044 
0045 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0046 process.options = cms.untracked.PSet(
0047 #  wantSummary = cms.untracked.bool(True),
0048   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0049 )
0050 
0051 #import FWCore.Framework.test.cmsExceptionsFatal_cff
0052 #process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0053 
0054 process.f1 = cms.EDFilter("TestFilterModule",
0055   acceptValue = cms.untracked.int32(98),
0056   onlyOne = cms.untracked.bool(False)
0057 )
0058 
0059 process.f2a = cms.EDFilter("TestFilterModule",
0060   acceptValue = cms.untracked.int32(20),
0061   onlyOne = cms.untracked.bool(False)
0062 )
0063 
0064 process.f2b = cms.EDFilter("TestFilterModule",
0065   acceptValue = cms.untracked.int32(10),
0066   onlyOne = cms.untracked.bool(False)
0067 )
0068 
0069 process.f3 = cms.EDFilter("TestFilterModule",
0070   acceptValue = cms.untracked.int32(71),
0071   onlyOne = cms.untracked.bool(True)
0072 )
0073 
0074 process.f4 = cms.EDFilter("TestFilterModule",
0075   acceptValue = cms.untracked.int32(101),
0076   onlyOne = cms.untracked.bool(True)
0077 )
0078 
0079 process.a = cms.EDAnalyzer(
0080   "TestTriggerNames",
0081   trigPaths = cms.untracked.vstring(
0082     'p01', 
0083     'p02', 
0084     'p03', 
0085     'p04'
0086   ),
0087   endPaths = cms.untracked.vstring('e'),
0088   dumpPSetRegistry = cms.untracked.bool(False)
0089 )
0090 
0091 process.fakeRaw = cms.EDProducer(
0092   "IntProducer",
0093   ivalue = cms.int32(10)
0094 )
0095 
0096 process.fakeHLTDebug = cms.EDProducer(
0097   "IntProducer",
0098   ivalue = cms.int32(1000)
0099 )
0100 
0101 process.out = cms.OutputModule("EventStreamFileWriter",
0102   fileName = cms.untracked.string('testSeriesOfProcessesHLT.dat'),
0103   compression_level = cms.untracked.int32(1),
0104   use_compression = cms.untracked.bool(True),
0105   max_event_size = cms.untracked.int32(7000000)
0106 )
0107 
0108 process.p01 = cms.Path(process.f1)
0109 process.p02 = cms.Path(~process.f2a*process.f2b)
0110 process.p03 = cms.Path(process.f3)
0111 process.p04 = cms.Path(process.a *
0112                        process.fakeRaw * process.fakeHLTDebug *
0113                        process.f4)
0114 
0115 process.e = cms.EndPath(process.out)