CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/HLTriggerOffline/Common/python/HltComparatorWorkflowTemplate.py

Go to the documentation of this file.
00001 # Original Author: James Jackson
00002 # $Id: HltComparatorWorkflowTemplate.py,v 1.2 2009/07/19 14:34:19 wittich Exp $
00003 import FWCore.ParameterSet.Config as cms
00004 
00005 process = cms.Process("HltRerun")
00006 
00007 # summary
00008 process.options = cms.untracked.PSet( 
00009     wantSummary = cms.untracked.bool(True) 
00010 ) 
00011 
00012 
00013 # Logging
00014 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00015 #process.MessageLogger.cerr.threshold = 'INFO'
00016 process.MessageLogger.cerr.threshold = 'ERROR'
00017 
00018 # TFileService
00019 process.TFileService = cms.Service("TFileService", fileName = cms.string("histograms.root"))
00020 
00021 #process.dump = cms.EDAnalyzer('EventContentAnalyzer')
00022 
00023 
00024 # Data to run. You'll want to change this.
00025 process.source = cms.Source("PoolSource",
00026     fileNames = cms.untracked.vstring(
00027         '/store/data/Commissioning08/Cosmics/RAW/v1/000/069/365/664D66FA-01AB-DD11-B9E5-001617C3B76A.root'
00028     ),
00029 )
00030 
00031 process.maxEvents = cms.untracked.PSet(
00032     input = cms.untracked.int32(100)
00033 )
00034 
00035 # Trigger analysis - online
00036 process.hltTrigReport = cms.EDAnalyzer( "HLTrigReport",
00037     HLTriggerResults = cms.InputTag( 'TriggerResults','','HLT' )
00038 )
00039 
00040 # Trigger analysis - offline
00041 process.hltTrigReportRerun = cms.EDAnalyzer( "HLTrigReport",
00042     HLTriggerResults = cms.InputTag( 'TriggerResults','','HltRerun' )
00043 )
00044 
00045 process.load("HLTriggerOffline.Common.HltComparator_cfi")
00046 
00047 
00048 
00049 ### output 
00050 process.out = cms.OutputModule("PoolOutputModule",
00051     fileName = cms.untracked.string('mismatchedTriggers.root'),
00052          outputCommands = cms.untracked.vstring('drop *',
00053                                                 "keep *_*_*_HltRerun"
00054                                                 )
00055 )
00056 
00057 
00058 # Final reporting and output. The output is only for discrepant events.
00059 process.HLTAnalysisEndPath = cms.EndPath( process.hltTrigReport + process.hltTrigReportRerun+process.hltComparator+process.out)
00060 
00061 # load HLT configuration -- something like this will be automatically appended.
00062 #process.load("PwTest.HltTester.JobHLTConfig_13691_32003_1244677280_cff")