CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HltComparatorWorkflowTemplate.py
Go to the documentation of this file.
1 # Original Author: James Jackson
2 import FWCore.ParameterSet.Config as cms
3 
4 process = cms.Process("HltRerun")
5 
6 # summary
7 process.options = cms.untracked.PSet(
8  wantSummary = cms.untracked.bool(True)
9 )
10 
11 
12 # Logging
13 process.load("FWCore.MessageLogger.MessageLogger_cfi")
14 #process.MessageLogger.cerr.threshold = 'INFO'
15 process.MessageLogger.cerr.threshold = 'ERROR'
16 
17 # TFileService
18 process.TFileService = cms.Service("TFileService", fileName = cms.string("histograms.root"))
19 
20 #process.dump = cms.EDAnalyzer('EventContentAnalyzer')
21 
22 
23 # Data to run. You'll want to change this.
24 process.source = cms.Source("PoolSource",
25  fileNames = cms.untracked.vstring(
26  '/store/data/Commissioning08/Cosmics/RAW/v1/000/069/365/664D66FA-01AB-DD11-B9E5-001617C3B76A.root'
27  ),
28 )
29 
30 process.maxEvents = cms.untracked.PSet(
31  input = cms.untracked.int32(100)
32 )
33 
34 # Trigger analysis - online
35 process.hltTrigReport = cms.EDAnalyzer( "HLTrigReport",
36  HLTriggerResults = cms.InputTag( 'TriggerResults','','HLT' )
37 )
38 
39 # Trigger analysis - offline
40 process.hltTrigReportRerun = cms.EDAnalyzer( "HLTrigReport",
41  HLTriggerResults = cms.InputTag( 'TriggerResults','','HltRerun' )
42 )
43 
44 process.load("HLTriggerOffline.Common.HltComparator_cfi")
45 
46 
47 
48 ### output
49 process.out = cms.OutputModule("PoolOutputModule",
50  fileName = cms.untracked.string('mismatchedTriggers.root'),
51  outputCommands = cms.untracked.vstring('drop *',
52  "keep *_*_*_HltRerun"
53  )
54 )
55 
56 
57 # Final reporting and output. The output is only for discrepant events.
58 process.HLTAnalysisEndPath = cms.EndPath( process.hltTrigReport + process.hltTrigReportRerun+process.hltComparator+process.out)
59 
60 # load HLT configuration -- something like this will be automatically appended.
61 #process.load("PwTest.HltTester.JobHLTConfig_13691_32003_1244677280_cff")