CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DPGAnalysis/Skims/python/EGPDSkim_cfg.py

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.5 $'),
00007     name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
00008     annotation = cms.untracked.string('EGamma skim')
00009 )
00010 
00011 #
00012 #
00013 # This is for testing purposes.
00014 #
00015 #
00016 ##run143960
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 # Load standard sequences.
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 #drop collections created on the fly
00047 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
00048 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
00049 #
00050 #  Load common sequences
00051 #
00052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00055 
00056 #################################WZFilter############################################
00057 
00058 process.hltFilter = cms.EDFilter("HLTHighLevel",
00059                                  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00060                                  HLTPaths = cms.vstring(
00061     #    "HLT_Photon15_L1R",
00062     #    "HLT_Photon15_Cleaned_L1R",
00063     #    "HLT_Photon20_Cleaned_L1R",
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                                  saveTags = cms.bool(False)
00076                                  )
00077 
00078 process.load("DPGAnalysis/Skims/WZinterestingEventFilter_cfi")
00079 
00080 process.WZfilter = cms.Path(process.hltFilter*process.WZInterestingEventSelector)
00081 
00082 # Output definition
00083 process.outWZfilter = cms.OutputModule("PoolOutputModule",
00084                                        # splitLevel = cms.untracked.int32(0),
00085                                        outputCommands = process.FEVTEventContent.outputCommands,
00086                                        fileName = cms.untracked.string('/tmp/azzi/EGMWZ_filter.root'),
00087                                        dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
00088                                                                     filterName = cms.untracked.string('EGMWZFilter')),
00089                                        SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('WZfilter')
00090                                                                          ))
00091 
00092 
00093 #################################logerrorharvester############################################
00094 
00095 process.load("FWCore.Modules.logErrorFilter_cfi")
00096 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
00097 
00098 process.gtEvmDigis = gtEvmDigis.clone()
00099 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
00100                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
00101                                   AllowedBeamMode = cms.vuint32(11),
00102                                   saveTags = cms.bool(False)
00103                                   )
00104 
00105 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
00106 
00107 process.outlogerr = cms.OutputModule("PoolOutputModule",
00108                                      outputCommands =  process.FEVTEventContent.outputCommands,
00109                                      fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
00110                                      dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
00111                                                                   filterName = cms.untracked.string('Skim_logerror')),
00112                                      SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
00113                                                                        ))
00114 
00115 #======================
00116 
00117 process.options = cms.untracked.PSet(
00118  wantSummary = cms.untracked.bool(True)
00119 )
00120 
00121 process.outpath = cms.EndPath(process.outlogerr+process.outWZfilter)