Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:48

0001 # Original Author: James Jackson
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("HltRerun")
0005 
0006 # summary
0007 process.options = cms.untracked.PSet( 
0008     wantSummary = cms.untracked.bool(True) 
0009 ) 
0010 
0011 
0012 # Logging
0013 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0014 #process.MessageLogger.cerr.threshold = 'INFO'
0015 process.MessageLogger.cerr.threshold = 'ERROR'
0016 
0017 # TFileService
0018 process.TFileService = cms.Service("TFileService", fileName = cms.string("histograms.root"))
0019 
0020 #process.dump = cms.EDAnalyzer('EventContentAnalyzer')
0021 
0022 
0023 # Data to run. You'll want to change this.
0024 process.source = cms.Source("PoolSource",
0025     fileNames = cms.untracked.vstring(
0026         '/store/data/Commissioning08/Cosmics/RAW/v1/000/069/365/664D66FA-01AB-DD11-B9E5-001617C3B76A.root'
0027     ),
0028 )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(100)
0032 )
0033 
0034 # Trigger analysis - online
0035 process.hltTrigReport = cms.EDAnalyzer( "HLTrigReport",
0036     HLTriggerResults = cms.InputTag( 'TriggerResults','','HLT' )
0037 )
0038 
0039 # Trigger analysis - offline
0040 process.hltTrigReportRerun = cms.EDAnalyzer( "HLTrigReport",
0041     HLTriggerResults = cms.InputTag( 'TriggerResults','','HltRerun' )
0042 )
0043 
0044 process.load("HLTriggerOffline.Common.HltComparator_cfi")
0045 
0046 
0047 
0048 ### output 
0049 process.out = cms.OutputModule("PoolOutputModule",
0050     fileName = cms.untracked.string('mismatchedTriggers.root'),
0051          outputCommands = cms.untracked.vstring('drop *',
0052                                                 "keep *_*_*_HltRerun"
0053                                                 )
0054 )
0055 
0056 
0057 # Final reporting and output. The output is only for discrepant events.
0058 process.HLTAnalysisEndPath = cms.EndPath( process.hltTrigReport + process.hltTrigReportRerun+process.hltComparator+process.out)
0059 
0060 # load HLT configuration -- something like this will be automatically appended.
0061 #process.load("PwTest.HltTester.JobHLTConfig_13691_32003_1244677280_cff")