Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:45

0001 # t0est file for PFDQM Skimming
0002 # it reads events and run runnumbers from a DQM output file and creates
0003 # a skimmed output for bad events
0004 process = cms.Process('PFlowSkim')
0005 #------------------------
0006 # Message Logger Settings
0007 #------------------------
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009 process.MessageLogger.cerr.threshold = ''
0010 process.MessageLogger.cerr.FwkReport.reportEvery = 10000
0011 #--------------------------------------
0012 # Event Source & # of Events to process
0013 #---------------------------------------
0014 process.source = cms.Source("PoolSource",
0015                    fileNames = cms.untracked.vstring()
0016                  )
0017 process.maxEvents = cms.untracked.PSet(
0018                       input = cms.untracked.int32(-1)
0019                     )
0020 process.load("DQMServices.Core.DQM_cfg")
0021 
0022 #--------------
0023 # PFlow Skim 
0024 #--------------
0025 process.load("DQMOffline.PFTau.PFDQMEventSelector_cfi")
0026 process.pfDQMEventSelector.InputFileName = "../../../Validation/RecoParticleFlow/test/DQM_V0001_R000000001__PFlow__Validation__QCD.root"
0027 process.pfDQMEventSelector.DebugOn = True
0028 process.pfDQMEventSelector.FolderNames = cms.vstring("ElectronValidation/JetPtRes")
0029 
0030 process.eventSelectorPath = cms.Path(process.pfDQMEventSelector)
0031 
0032 process.outputSkim = cms.OutputModule("PoolOutputModule",
0033                                outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0034                                SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('eventSelectorPath')),
0035                                dataset = cms.untracked.PSet(
0036                              dataTier = cms.untracked.string('RAW-RECO'),
0037                                          filterName = cms.untracked.string('PFDQMEventSelector')),
0038                                fileName = cms.untracked.string('./skim.root')
0039                                )
0040 process.outpath = cms.EndPath(process.outputSkim)
0041 
0042 
0043 #--------------------------------------
0044 # List File from where events will be skimmed
0045 #---------------------------------------
0046 process.PoolSource.fileNames = [
0047     #'/store/relval/CMSSW_4_2_0_pre8/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_42_V7-v1/0042/2CC0574D-9556-E011-A92B-0018F3D09658.root'
0048 
0049     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/EE4D1086-0F25-E311-BD19-003048678A6C.root',
0050     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/CCA45DB9-1325-E311-B521-0025905938AA.root',
0051     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/686ECB84-1025-E311-95BF-00261894387E.root',
0052     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/6666ACEF-0F25-E311-B2CE-00248C0BE01E.root',
0053     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/4E0FDB84-1025-E311-90B7-0026189438E0.root',
0054     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/483621D2-1025-E311-BB70-003048B95B30.root',
0055     '/store/relval/CMSSW_7_0_0_pre4/RelValQCD_FlatPt_15_3000HS/GEN-SIM-RECO/PRE_ST62_V8-v1/00000/48118597-1125-E311-8645-003048678B7C.root'
0056     ]