CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
skim_scrape_pixel_prob_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # NOTE: This filter counts the number of pixel hits incompatible
4 # with the track direction. If this fraction is high (>0.4) the
5 # event is declared to be a PKAM.
6 # Starting in CMSSW_3_6_0_pre3 pixel hits with low probability
7 # are removed from tracks in the outlier rejection. To make
8 # sure that this filter still works, one has to turn this feature
9 # OFF here:
10 # http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/TrackingTools/TrackFitters/python/RungeKuttaFitters_cff.py
11 # by changing:
12 # LogPixelProbabilityCut = cms.double(-14.0),
13 # to:
14 # LogPixelProbabilityCut = cms.double(-16.0),
15 
16 
17 process = cms.Process("SKIM2")
18 process.load("FWCore.MessageLogger.MessageLogger_cfi")
19 
20 process.skimming = cms.EDFilter("FilterScrapingPixelProbability",
21  apply_filter = cms.untracked.bool( True ),
22  select_collision = cms.untracked.bool( False ),
23  select_pkam = cms.untracked.bool( True ),
24  select_other = cms.untracked.bool( False ),
25  low_probability = cms.untracked.double( 0.0 ),
26  low_probability_fraction_cut = cms.untracked.double( 0.4 )
27  )
28 
29 
30 #process.configurationMetadata = cms.untracked.PSet(
31 # version = cms.untracked.string('$Revision: 1.1 $'),
32 # name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_noscrape_cfg.py,v $'),
33 # annotation = cms.untracked.string('NoScrape skim')
34 #)
35 
36 process.maxEvents = cms.untracked.PSet(
37  input = cms.untracked.int32(-1)
38 )
39 
40 # Input source
41 process.source = cms.Source("PoolSource",
42  fileNames = cms.untracked.vstring(
43 "/store/data/BeamCommissioning09/MinimumBias/RAW-RECO/BSCNOBEAMHALO-Dec14thSkim_v1/0102/6081FF95-72EA-DE11-94C4-0024E8768446.root"
44  )
45 )
46 
47 
48 process.out = cms.OutputModule("PoolOutputModule",
49  fileName = cms.untracked.string('/tmp/ggiurgiu/mytest_select_pkam_only.root'),
50  SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') )
51 )
52 
53 process.p = cms.Path(process.skimming)
54 process.e = cms.EndPath(process.out)
55 
56