1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"SKIM")
5 process.configurationMetadata = cms.untracked.PSet(
6 version = cms.untracked.string(
'$Revision: 1.4 $'),
7 name = cms.untracked.string(
'$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
8 annotation = cms.untracked.string(
'EGamma skim')
17 process.source = cms.Source(
"PoolSource",
18 fileNames = cms.untracked.vstring(
19 '/store/data/Run2010A/EG/RECO/v4/000/143/960/84DEE17A-44B1-DF11-B844-001D09F29849.root' 21 secondaryFileNames = cms.untracked.vstring(
22 '/store/data/Run2010A/EG/RAW/v1/000/143/960/C40C9318-0FB1-DF11-A974-0030487CBD0A.root')
25 process.source.inputCommands = cms.untracked.vstring(
"keep *",
"drop *_MEtoEDMConverter_*_*")
27 process.maxEvents = cms.untracked.PSet(
28 input = cms.untracked.int32(1000)
35 process.load(
'Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
36 process.load(
'Configuration/StandardSequences/GeometryIdeal_cff')
39 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
40 process.GlobalTag.globaltag =
'GR10_P_V8::All' 42 process.load(
"Configuration/StandardSequences/RawToDigi_Data_cff")
43 process.load(
"Configuration/StandardSequences/Reconstruction_cff")
44 process.load(
'Configuration/EventContent/EventContent_cff')
47 process.FEVTEventContent.outputCommands.append(
"drop *_MEtoEDMConverter_*_*")
48 process.FEVTEventContent.outputCommands.append(
"drop *_*_*_SKIM")
52 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
53 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
54 process.load(
'HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
58 process.hltFilter = cms.EDFilter(
"HLTHighLevel",
59 TriggerResultsTag = cms.InputTag(
"TriggerResults",
"",
"HLT"),
60 HLTPaths = cms.vstring(
66 "HLT_Ele15_SW_CaloEleId_L1R",
67 "HLT_Ele17_SW_CaloEleId_L1R",
69 "HLT_Ele17_SW_TightEleId_L1R",
70 "HLT_Ele17_SW_TightCaloEleId_SC8HE_L1R" 72 eventSetupPathsKey = cms.string(
''),
73 andOr = cms.bool(
True),
74 throw = cms.bool(
False),
75 saveTags = cms.bool(
False)
78 process.load(
"DPGAnalysis/Skims/WZinterestingEventFilter_cfi")
80 process.WZfilter = cms.Path(process.hltFilter*process.WZInterestingEventSelector)
83 process.outWZfilter = cms.OutputModule(
"PoolOutputModule",
85 outputCommands = process.FEVTEventContent.outputCommands,
86 fileName = cms.untracked.string(
'/tmp/azzi/EGMWZ_filter.root'),
87 dataset = cms.untracked.PSet(dataTier = cms.untracked.string(
'RAW-RECO'),
88 filterName = cms.untracked.string(
'EGMWZFilter')),
89 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'WZfilter')
95 process.load(
"FWCore.Modules.logErrorFilter_cfi")
98 process.gtEvmDigis = gtEvmDigis.clone()
99 process.stableBeam = cms.EDFilter(
"HLTBeamModeFilter",
100 L1GtEvmReadoutRecordTag = cms.InputTag(
"gtEvmDigis"),
101 AllowedBeamMode = cms.vuint32(11),
102 saveTags = cms.bool(
False)
105 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
107 process.outlogerr = cms.OutputModule(
"PoolOutputModule",
108 outputCommands = process.FEVTEventContent.outputCommands,
109 fileName = cms.untracked.string(
'/tmp/azzi/logerror_filter.root'),
110 dataset = cms.untracked.PSet(dataTier = cms.untracked.string(
'RAW-RECO'),
111 filterName = cms.untracked.string(
'Skim_logerror')),
112 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
"logerrorpath")
117 process.options = cms.untracked.PSet(
118 wantSummary = cms.untracked.bool(
True)
121 process.outpath = cms.EndPath(process.outlogerr+process.outWZfilter)