-
Notifications
You must be signed in to change notification settings - Fork 5
/
met_filters_cfg.py
49 lines (37 loc) · 1.92 KB
/
met_filters_cfg.py
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
##____________________________________________________________________________||
import FWCore.ParameterSet.Config as cms
##____________________________________________________________________________||
process = cms.Process("FILT")
##____________________________________________________________________________||
import FWCore.ParameterSet.VarParsing as VarParsing
options = VarParsing.VarParsing('analysis')
options.inputFiles = 'file:/afs/cern.ch/cms/Tutorials/TWIKI_DATA/MET/MET_Run2012C_AOD_532_numEvent100.root',
options.outputFile = 'filtered.root'
options.maxEvents = -1
options.parseArguments()
##____________________________________________________________________________||
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load("Configuration.Geometry.GeometryIdeal_cff")
process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(options.maxEvents))
##____________________________________________________________________________||
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string("FT_R_53_V21::All")
##____________________________________________________________________________||
process.source = cms.Source(
"PoolSource",
fileNames = cms.untracked.vstring(options.inputFiles)
)
##____________________________________________________________________________||
process.load("RecoMET.METFilters.metFilters_cff")
process.p = cms.Path(
process.metFilters
)
##____________________________________________________________________________||
process.out = cms.OutputModule(
"PoolOutputModule",
fileName = cms.untracked.string(options.outputFile),
SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p'))
)
process.outpath = cms.EndPath(process.out)
##____________________________________________________________________________||