test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZeroBiasPDSkim_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SKIM")
4 
5 process.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.4 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/ZeroBiasPDSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('Combined ZeroBias skim')
9 )
10 # selection eff on 1000 events
11 # file:/tmp/malgeri/ZB_vertex.root
12 # /tmp/malgeri/ZB_vertex.root ( 45 events, 15799040 bytes )
13 
14 #
15 #
16 # This is for testing purposes.
17 #
18 #
19 process.source = cms.Source("PoolSource",
20  fileNames = cms.untracked.vstring(
21 # run 136066 lumi~500
22 '/store/data/Run2010A/ZeroBias/RECO/v1/000/136/066/DE81B1E0-4866-DF11-A76D-0030487CD906.root'),
23  secondaryFileNames = cms.untracked.vstring(
24 '/store/data/Run2010A/ZeroBias/RAW/v1/000/136/066/FE1DCAEF-3C66-DF11-A903-000423D98E30.root')
25 )
26 
27 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
28 
29 process.maxEvents = cms.untracked.PSet(
30  input = cms.untracked.int32(-1)
31 )
32 
33 
34 #------------------------------------------
35 # Load standard sequences.
36 #------------------------------------------
37 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
38 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
39 
40 
41 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
42 process.GlobalTag.globaltag = 'GR10_P_V6::All'
43 
44 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
45 process.load("Configuration/StandardSequences/Reconstruction_cff")
46 process.load('Configuration/EventContent/EventContent_cff')
47 
48 process.FEVTEventContent.outputCommands.append('drop *_MEtoEDMConverter_*_*')
49 
50 #
51 # Load common sequences
52 #
53 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
54 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
55 #process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
56 
57 ##################################good vertex############################################
58 
59 
60 process.primaryVertexFilter = cms.EDFilter("VertexSelector",
61  src = cms.InputTag("offlinePrimaryVertices"),
62  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
63  filter = cms.bool(True), # otherwise it won't filter the events, just produce an empty vertex collection.
64 )
65 
66 
67 process.noscraping = cms.EDFilter("FilterOutScraping",
68 applyfilter = cms.untracked.bool(True),
69 debugOn = cms.untracked.bool(False),
70 numtrack = cms.untracked.uint32(10),
71 thresh = cms.untracked.double(0.25)
72 )
73 
74 process.goodvertex=cms.Path(process.primaryVertexFilter+process.noscraping)
75 
76 
77 process.gvout = cms.OutputModule("PoolOutputModule",
78  fileName = cms.untracked.string('/tmp/azzi/ZB_vertex.root'),
79  outputCommands = process.FEVTEventContent.outputCommands,
80  dataset = cms.untracked.PSet(
81  dataTier = cms.untracked.string('RAW-RECO'),
82  filterName = cms.untracked.string('GOODVERTEX')),
83  SelectEvents = cms.untracked.PSet(
84  SelectEvents = cms.vstring('goodvertex')
85  )
86 )
87 
88 
89 #################################logerrorharvester############################################
90 process.load("FWCore.Modules.logErrorFilter_cfi")
92 
93 process.gtEvmDigis = gtEvmDigis.clone()
94 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
95  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
96  AllowedBeamMode = cms.vuint32(11),
97  saveTags = cms.bool(False)
98  )
99 
100 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
101 
102 process.outlogerr = cms.OutputModule("PoolOutputModule",
103  outputCommands = process.FEVTEventContent.outputCommands,
104  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
105  dataset = cms.untracked.PSet(
106  dataTier = cms.untracked.string('RAW-RECO'),
107  filterName = cms.untracked.string('Skim_logerror')),
108 
109  SelectEvents = cms.untracked.PSet(
110  SelectEvents = cms.vstring("logerrorpath")
111  ))
112 
113 #===========================================================
114 
115 ###########################################################################
116 process.options = cms.untracked.PSet(
117  wantSummary = cms.untracked.bool(True)
118 )
119 
120 #Killed gvskim
121 #process.outpath = cms.EndPath(process.gvout+process.outlogerr)
122 process.outpath = cms.EndPath(process.outlogerr)
123 
124 
125 
126