Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("SKIM")
00004
00005 process.configurationMetadata = cms.untracked.PSet(
00006 version = cms.untracked.string('$Revision: 1.4 $'),
00007 name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
00008 annotation = cms.untracked.string('EGamma skim')
00009 )
00010
00011
00012
00013
00014
00015
00016
00017 process.source = cms.Source("PoolSource",
00018 fileNames = cms.untracked.vstring(
00019 '/store/data/Run2010A/EG/RECO/v4/000/143/960/84DEE17A-44B1-DF11-B844-001D09F29849.root'
00020 ),
00021 secondaryFileNames = cms.untracked.vstring(
00022 '/store/data/Run2010A/EG/RAW/v1/000/143/960/C40C9318-0FB1-DF11-A974-0030487CBD0A.root')
00023 )
00024
00025 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
00026
00027 process.maxEvents = cms.untracked.PSet(
00028 input = cms.untracked.int32(1000)
00029 )
00030
00031
00032
00033
00034
00035 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00036 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00037
00038
00039 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00040 process.GlobalTag.globaltag = 'GR10_P_V8::All'
00041
00042 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00043 process.load("Configuration/StandardSequences/Reconstruction_cff")
00044 process.load('Configuration/EventContent/EventContent_cff')
00045
00046
00047 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
00048 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
00049
00050
00051
00052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00055
00056
00057
00058 process.hltFilter = cms.EDFilter("HLTHighLevel",
00059 TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00060 HLTPaths = cms.vstring(
00061
00062
00063
00064 "HLT_Ele15_LW_L1R",
00065 "HLT_Ele15_SW_L1R",
00066 "HLT_Ele15_SW_CaloEleId_L1R",
00067 "HLT_Ele17_SW_CaloEleId_L1R",
00068 "HLT_Ele17_SW_L1R",
00069 "HLT_Ele17_SW_TightEleId_L1R",
00070 "HLT_Ele17_SW_TightCaloEleId_SC8HE_L1R"
00071 ),
00072 eventSetupPathsKey = cms.string(''),
00073 andOr = cms.bool(True),
00074 throw = cms.bool(False)
00075 )
00076
00077 process.load("DPGAnalysis/Skims/WZinterestingEventFilter_cfi")
00078
00079 process.WZfilter = cms.Path(process.hltFilter*process.WZInterestingEventSelector)
00080
00081
00082 process.outWZfilter = cms.OutputModule("PoolOutputModule",
00083
00084 outputCommands = process.FEVTEventContent.outputCommands,
00085 fileName = cms.untracked.string('/tmp/azzi/EGMWZ_filter.root'),
00086 dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
00087 filterName = cms.untracked.string('EGMWZFilter')),
00088 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('WZfilter')
00089 ))
00090
00091
00092
00093
00094 process.load("FWCore.Modules.logErrorFilter_cfi")
00095 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
00096
00097 process.gtEvmDigis = gtEvmDigis.clone()
00098 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
00099 L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
00100 AllowedBeamMode = cms.vuint32(11)
00101 )
00102
00103 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
00104
00105 process.outlogerr = cms.OutputModule("PoolOutputModule",
00106 outputCommands = process.FEVTEventContent.outputCommands,
00107 fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
00108 dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
00109 filterName = cms.untracked.string('Skim_logerror')),
00110 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
00111 ))
00112
00113
00114
00115 process.options = cms.untracked.PSet(
00116 wantSummary = cms.untracked.bool(True)
00117 )
00118
00119 process.outpath = cms.EndPath(process.outlogerr+process.outWZfilter)