1 |
import FWCore.ParameterSet.Config as cms
|
2 |
import copy
|
3 |
process = cms.Process('PATZtoElecTau')
|
4 |
|
5 |
process.load('Configuration/StandardSequences/Services_cff')
|
6 |
process.load('FWCore/MessageService/MessageLogger_cfi')
|
7 |
process.MessageLogger.cerr.FwkReport.reportEvery = 100
|
8 |
|
9 |
process.load("Configuration.StandardSequences.Geometry_cff")
|
10 |
process.load("Configuration.StandardSequences.MagneticField_cff")
|
11 |
process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
|
12 |
#process.GlobalTag.globaltag = cms.string('START38_V14::All')
|
13 |
#process.GlobalTag.globaltag = cms.string('GR_R_38X_V15::All')
|
14 |
process.GlobalTag.globaltag = cms.string('GR_P_V16::All')
|
15 |
|
16 |
process.load("SWonAnalysis.Thesis.filterDataQuality_cfi")
|
17 |
# import sequences for PAT-tuple production
|
18 |
process.load("SWonAnalysis.Thesis.producePatTuple_cff")
|
19 |
#process.load("SWonAnalysis.Thesis.producePatTupleZtoElecTauSpecific_cff")
|
20 |
# import sequence for event selection
|
21 |
#process.load("SWonAnalysis.Thesis.selectZtoElecTau_cff")
|
22 |
|
23 |
process.maxEvents = cms.untracked.PSet(
|
24 |
input = cms.untracked.int32(-1)
|
25 |
)
|
26 |
|
27 |
process.source = cms.Source("PoolSource",
|
28 |
fileNames = cms.untracked.vstring(
|
29 |
'/store/data/Run2011A/MuEG/AOD/PromptReco-v1/000/161/222/56910CF0-0557-E011-96BB-001617C3B70E.root',
|
30 |
)
|
31 |
)
|
32 |
|
33 |
# import utility function for configuring PAT trigger matching
|
34 |
from PhysicsTools.PatAlgos.tools.trigTools import switchOnTrigger
|
35 |
switchOnTrigger(process, hltProcess = 'HLT', outputModule = '')
|
36 |
process.patTrigger.addL1Algos = cms.bool(True)
|
37 |
|
38 |
from PhysicsTools.PatAlgos.tools.tauTools import *
|
39 |
switchToPFTauHPSpTaNC(process)
|
40 |
|
41 |
# disable preselection on of pat::Taus
|
42 |
# (disabled also in TauAnalysis/RecoTools/python/patPFTauConfig_cfi.py ,
|
43 |
# but re-enabled after switching tau collection)
|
44 |
process.cleanPatTaus.preselection = cms.string('')
|
45 |
|
46 |
# import utility function for managing pat::Jets
|
47 |
from PhysicsTools.PatAlgos.tools.jetTools import *
|
48 |
switchJetCollection(process, jetCollection = cms.InputTag("ak5PFJets"), outputModule = '')
|
49 |
|
50 |
process.printEventContent = cms.EDAnalyzer("EventContentAnalyzer")
|
51 |
process.filterFirstEvent = cms.EDFilter("EventCountFilter",
|
52 |
numEvents = cms.int32(1)
|
53 |
)
|
54 |
|
55 |
process.out = cms.OutputModule("PoolOutputModule",
|
56 |
# compressionLevel = cms.untracked.int32( 9 ),
|
57 |
fileName = cms.untracked.string('test.root'),
|
58 |
outputCommands = cms.untracked.vstring(
|
59 |
'keep *_*_*_*'
|
60 |
)
|
61 |
)
|
62 |
|
63 |
process.p = cms.Path(
|
64 |
process.filterFirstEvent *
|
65 |
process.printEventContent *
|
66 |
process.dataQualityFilters *
|
67 |
process.producePatTuple *
|
68 |
process.out
|
69 |
)
|