CMS 3D CMS Logo

CosmicsPDSkim_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.6 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/CosmicsPDSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('Combined Cosmics skim')
9 )
10 
11 #
12 #
13 # This is for testing purposes.
14 #
15 # run 122314 lumi 27
16 #
17 
18 process.source = cms.Source("PoolSource",
19  fileNames = cms.untracked.vstring(
20 '/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/596/FC5C3B0F-8AE2-DE11-A905-003048D37456.root'),
21  secondaryFileNames = cms.untracked.vstring(
22 '/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/596/8E21B4C8-74E2-DE11-ABAA-000423D999CA.root')
23 )
24 
25 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
26 
27 process.maxEvents = cms.untracked.PSet(
28  input = cms.untracked.int32(1000)
29 )
30 
31 
32 
33 #------------------------------------------
34 # Load standard sequences.
35 #------------------------------------------
36 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
37 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
38 
39 
40 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
41 process.GlobalTag.globaltag = 'GR10_P_V8::All'
42 
43 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
44 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
45 process.load('Configuration/EventContent/EventContentCosmics_cff')
46 
47 
48 
49 
50 process.cosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
51  SALabel = cms.InputTag("cosmicMuonsBarrelOnly"),
52  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
53  radius = cms.double(10.0),
54  maxZ = cms.double(50.0),
55 )
56 
57 process.cosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
58  SALabel = cms.InputTag("cosmicMuons"),
59  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
60  radius = cms.double(10.0),
61  maxZ = cms.double(50.0),
62 )
63 
64 process.cosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
65  SALabel = cms.InputTag("cosmicMuons1Leg"),
66  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
67  radius = cms.double(10.0),
68  maxZ = cms.double(50.0),
69 )
70 
71 process.globalCosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
72  SALabel = cms.InputTag("globalCosmicMuonsBarrelOnly"),
73  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
74  radius = cms.double(10.0),
75  maxZ = cms.double(50.0),
76 )
77 
78 process.cosmictrackfinderP5Filter = cms.EDFilter("HLTMuonPointingFilter",
79  SALabel = cms.InputTag("cosmictrackfinderP5"),
80  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
81  radius = cms.double(10.0),
82  maxZ = cms.double(50.0),
83 )
84 
85 process.globalCosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
86  SALabel = cms.InputTag("globalCosmicMuons"),
87  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
88  radius = cms.double(10.0),
89  maxZ = cms.double(50.0),
90 )
91 
92 process.rsWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
93  SALabel = cms.InputTag("rsWithMaterialTracksP5"),
94  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
95  radius = cms.double(10.0),
96  maxZ = cms.double(50.0),
97 )
98 
99 process.globalCosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
100  SALabel = cms.InputTag("globalCosmicMuons1Leg"),
101  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
102  radius = cms.double(10.0),
103  maxZ = cms.double(50.0),
104 )
105 
106 process.ctfWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
107  SALabel = cms.InputTag("ctfWithMaterialTracksP5"),
108  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
109  radius = cms.double(10.0),
110  maxZ = cms.double(50.0),
111 )
112 
113 
114 process.cosmicMuonsBarrelOnlyPath = cms.Path(process.cosmicMuonsBarrelOnlyFilter)
115 process.cosmicMuonsPath = cms.Path(process.cosmicMuonsFilter)
116 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegFilter)
117 process.globalCosmicMuonsBarrelOnlyPath = cms.Path(process.globalCosmicMuonsBarrelOnlyFilter)
118 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5Filter)
119 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsFilter)
120 process.rsWithMaterialTracksP5Path = cms.Path(process.rsWithMaterialTracksP5Filter)
121 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegFilter)
122 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5Filter)
123 
124 
125 
126 process.outSP = cms.OutputModule("PoolOutputModule",
127  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
128  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmicMuonsBarrelOnlyPath',
129  'cosmicMuonsPath',
130  'cosmicMuons1LegPath',
131  'globalCosmicMuonsBarrelOnlyPath',
132  'cosmictrackfinderP5Path',
133  'globalCosmicMuonsPath',
134  'rsWithMaterialTracksP5Path',
135  'globalCosmicMuons1LegPath',
136  'ctfWithMaterialTracksP5Path')),
137  dataset = cms.untracked.PSet(
138  dataTier = cms.untracked.string('RAW-RECO'),
139  filterName = cms.untracked.string('SuperPointing')),
140  fileName = cms.untracked.string('superPointing.root')
141  )
142 
143 
147 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
148 
149 
150 #set to minimum activity
151 process.cscSkim.minimumSegments = 1
152 process.cscSkim.minimumHitChambers = 1
153 
154 # this is for filtering on HLT path
155 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
156  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
157  HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
158  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
159  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
160  throw = cms.bool(False), # throw exception on unknown path names
161  saveTags = cms.bool(False)
162  )
163 
164 
165 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
166 
167 
168 
169 process.outputBeamHaloSkim = cms.OutputModule("PoolOutputModule",
170  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
171  fileName = cms.untracked.string("cscskimEvents.root"),
172  dataset = cms.untracked.PSet(
173  dataTier = cms.untracked.string('RAW-RECO'),
174  filterName = cms.untracked.string('CSCSkim_BeamHalo_Cosmics')
175  ),
176  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
177 )
178 
179 
180 
181 process.load("FWCore.Modules.logErrorFilter_cfi")
183 
184 process.gtEvmDigis = gtEvmDigis.clone()
185 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
186  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
187  AllowedBeamMode = cms.vuint32(11),
188  saveTags = cms.bool(False)
189  )
190 
191 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
192 
193 process.outlogerr = cms.OutputModule("PoolOutputModule",
194  outputCommands = process.FEVTEventContent.outputCommands,
195  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
196  dataset = cms.untracked.PSet(
197  dataTier = cms.untracked.string('RAW-RECO'),
198  filterName = cms.untracked.string('Skim_logerror')),
199 
200  SelectEvents = cms.untracked.PSet(
201  SelectEvents = cms.vstring("logerrorpath")
202  ))
203 
204 #===========================================================
205 
206 process.options = cms.untracked.PSet(
207  wantSummary = cms.untracked.bool(True)
208 )
209 
210 process.outpath = cms.EndPath(process.outSP+process.outputBeamHaloSkim+process.outlogerr)
211 
212 
213 
214 
215