Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:15

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIM")
0004 
0005 process.configurationMetadata = cms.untracked.PSet(
0006     version = cms.untracked.string('$Revision: 1.4 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('EGamma skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 #
0016 ##run143960
0017 process.source = cms.Source("PoolSource",
0018                            fileNames = cms.untracked.vstring(
0019     '/store/data/Run2010A/EG/RECO/v4/000/143/960/84DEE17A-44B1-DF11-B844-001D09F29849.root'
0020    ),
0021                            secondaryFileNames = cms.untracked.vstring(
0022 '/store/data/Run2010A/EG/RAW/v1/000/143/960/C40C9318-0FB1-DF11-A974-0030487CBD0A.root')
0023    )
0024 
0025 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(1000)
0029     )
0030 
0031 
0032 #------------------------------------------
0033 # Load standard sequences.
0034 #------------------------------------------
0035 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0036 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0037 
0038 
0039 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0040 process.GlobalTag.globaltag = 'GR10_P_V8::All'
0041 
0042 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0043 process.load("Configuration/StandardSequences/Reconstruction_cff")
0044 process.load('Configuration/EventContent/EventContent_cff')
0045 
0046 #drop collections created on the fly
0047 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
0048 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
0049 #
0050 #  Load common sequences
0051 #
0052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0055 
0056 #################################WZFilter############################################
0057 
0058 process.hltFilter = cms.EDFilter("HLTHighLevel",
0059                                  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0060                                  HLTPaths = cms.vstring(
0061     #    "HLT_Photon15_L1R",
0062     #    "HLT_Photon15_Cleaned_L1R",
0063     #    "HLT_Photon20_Cleaned_L1R",
0064     "HLT_Ele15_LW_L1R",
0065     "HLT_Ele15_SW_L1R",
0066     "HLT_Ele15_SW_CaloEleId_L1R",
0067     "HLT_Ele17_SW_CaloEleId_L1R",
0068     "HLT_Ele17_SW_L1R",
0069     "HLT_Ele17_SW_TightEleId_L1R",
0070     "HLT_Ele17_SW_TightCaloEleId_SC8HE_L1R"
0071     ),
0072                                  eventSetupPathsKey = cms.string(''),
0073                                  andOr = cms.bool(True),
0074                                  throw = cms.bool(False),
0075                                  saveTags = cms.bool(False)
0076                                  )
0077 
0078 process.load("DPGAnalysis/Skims/WZinterestingEventFilter_cfi")
0079 
0080 process.WZfilter = cms.Path(process.hltFilter*process.WZInterestingEventSelector)
0081 
0082 # Output definition
0083 process.outWZfilter = cms.OutputModule("PoolOutputModule",
0084                                        # splitLevel = cms.untracked.int32(0),
0085                                        outputCommands = process.FEVTEventContent.outputCommands,
0086                                        fileName = cms.untracked.string('/tmp/azzi/EGMWZ_filter.root'),
0087                                        dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
0088                                                                     filterName = cms.untracked.string('EGMWZFilter')),
0089                                        SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('WZfilter')
0090                                                                          ))
0091 
0092 
0093 #################################logerrorharvester############################################
0094 
0095 process.load("FWCore.Modules.logErrorFilter_cfi")
0096 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0097 
0098 process.gtEvmDigis = gtEvmDigis.clone()
0099 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0100                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0101                                   AllowedBeamMode = cms.vuint32(11),
0102                                   saveTags = cms.bool(False)
0103                                   )
0104 
0105 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0106 
0107 process.outlogerr = cms.OutputModule("PoolOutputModule",
0108                                      outputCommands =  process.FEVTEventContent.outputCommands,
0109                                      fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0110                                      dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
0111                                                                   filterName = cms.untracked.string('Skim_logerror')),
0112                                      SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
0113                                                                        ))
0114 
0115 #======================
0116 
0117 process.options = cms.untracked.PSet(
0118  wantSummary = cms.untracked.bool(True)
0119 )
0120 
0121 process.outpath = cms.EndPath(process.outlogerr+process.outWZfilter)