Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # NOTE: This filter counts the number of pixel hits incompatible
0004 # with the track direction. If this fraction is high (>0.4) the
0005 # event is declared to be a PKAM.
0006 # Starting in CMSSW_3_6_0_pre3 pixel hits with low probability
0007 # are removed from tracks in the outlier rejection. To make
0008 # sure that this filter still works, one has to turn this feature
0009 # OFF here:
0010 # http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/TrackingTools/TrackFitters/python/RungeKuttaFitters_cff.py
0011 # by changing:
0012 # LogPixelProbabilityCut = cms.double(-14.0), 
0013 # to:
0014 # LogPixelProbabilityCut = cms.double(-16.0),
0015 
0016 
0017 process = cms.Process("SKIM2")
0018 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0019 
0020 process.skimming = cms.EDFilter("FilterScrapingPixelProbability",
0021                                 apply_filter                 = cms.untracked.bool( True  ),
0022                                 select_collision             = cms.untracked.bool( False ),
0023                                 select_pkam                  = cms.untracked.bool( True ),
0024                                 select_other                 = cms.untracked.bool( False ),
0025                                 low_probability              = cms.untracked.double( 0.0 ),
0026                                 low_probability_fraction_cut = cms.untracked.double( 0.4 )
0027                                 )
0028 
0029 
0030 #process.configurationMetadata = cms.untracked.PSet(
0031 #    version = cms.untracked.string('$Revision: 1.1 $'),
0032 #    name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_noscrape_cfg.py,v $'),
0033 #    annotation = cms.untracked.string('NoScrape skim')
0034 #)
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(-1)
0038 )
0039 
0040 # Input source
0041 process.source = cms.Source("PoolSource",
0042     fileNames = cms.untracked.vstring(
0043 "/store/data/BeamCommissioning09/MinimumBias/RAW-RECO/BSCNOBEAMHALO-Dec14thSkim_v1/0102/6081FF95-72EA-DE11-94C4-0024E8768446.root"
0044     )
0045 )
0046 
0047 
0048 process.out = cms.OutputModule("PoolOutputModule",
0049     fileName = cms.untracked.string('/tmp/ggiurgiu/mytest_select_pkam_only.root'),
0050     SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') )
0051 )
0052 
0053 process.p = cms.Path(process.skimming)
0054 process.e = cms.EndPath(process.out)
0055 
0056