Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
# Original Author: James Jackson
import FWCore.ParameterSet.Config as cms

process = cms.Process("HltRerun")

# summary
process.options = cms.untracked.PSet( 
    wantSummary = cms.untracked.bool(True) 
) 


# Logging
process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.MessageLogger.cerr.threshold = 'INFO'
process.MessageLogger.cerr.threshold = 'ERROR'

# TFileService
process.TFileService = cms.Service("TFileService", fileName = cms.string("histograms.root"))

#process.dump = cms.EDAnalyzer('EventContentAnalyzer')


# Data to run. You'll want to change this.
process.source = cms.Source("PoolSource",
    fileNames = cms.untracked.vstring(
        '/store/data/Commissioning08/Cosmics/RAW/v1/000/069/365/664D66FA-01AB-DD11-B9E5-001617C3B76A.root'
    ),
)

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(100)
)

# Trigger analysis - online
process.hltTrigReport = cms.EDAnalyzer( "HLTrigReport",
    HLTriggerResults = cms.InputTag( 'TriggerResults','','HLT' )
)

# Trigger analysis - offline
process.hltTrigReportRerun = cms.EDAnalyzer( "HLTrigReport",
    HLTriggerResults = cms.InputTag( 'TriggerResults','','HltRerun' )
)

process.load("HLTriggerOffline.Common.HltComparator_cfi")



### output 
process.out = cms.OutputModule("PoolOutputModule",
    fileName = cms.untracked.string('mismatchedTriggers.root'),
         outputCommands = cms.untracked.vstring('drop *',
                                                "keep *_*_*_HltRerun"
                                                )
)


# Final reporting and output. The output is only for discrepant events.
process.HLTAnalysisEndPath = cms.EndPath( process.hltTrigReport + process.hltTrigReportRerun+process.hltComparator+process.out)

# load HLT configuration -- something like this will be automatically appended.
#process.load("PwTest.HltTester.JobHLTConfig_13691_32003_1244677280_cff")