CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CosmicsPDSkim_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("SKIM")
4 
5 process.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.7 $'),
7  name = cms.untracked.string('$Source: /local/reps/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 ######################################Super Pointing#################################################
49 
50 process.cosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
51  SALabel = cms.string("cosmicMuonsBarrelOnly"),
52  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
53  radius = cms.double(10.0),
54  maxZ = cms.double(50.0),
55  saveTags = cms.bool(False)
56  )
57 
58 process.cosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
59  SALabel = cms.string("cosmicMuons"),
60  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
61  radius = cms.double(10.0),
62  maxZ = cms.double(50.0),
63  saveTags = cms.bool(False)
64  )
65 
66 process.cosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
67  SALabel = cms.string("cosmicMuons1Leg"),
68  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
69  radius = cms.double(10.0),
70  maxZ = cms.double(50.0),
71  saveTags = cms.bool(False)
72  )
73 
74 process.globalCosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
75  SALabel = cms.string("globalCosmicMuonsBarrelOnly"),
76  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
77  radius = cms.double(10.0),
78  maxZ = cms.double(50.0),
79  saveTags = cms.bool(False)
80  )
81 
82 process.cosmictrackfinderP5Filter = cms.EDFilter("HLTMuonPointingFilter",
83  SALabel = cms.string("cosmictrackfinderP5"),
84  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
85  radius = cms.double(10.0),
86  maxZ = cms.double(50.0),
87  saveTags = cms.bool(False)
88  )
89 
90 process.globalCosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
91  SALabel = cms.string("globalCosmicMuons"),
92  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
93  radius = cms.double(10.0),
94  maxZ = cms.double(50.0),
95  saveTags = cms.bool(False)
96  )
97 
98 process.rsWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
99  SALabel = cms.string("rsWithMaterialTracksP5"),
100  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
101  radius = cms.double(10.0),
102  maxZ = cms.double(50.0),
103  saveTags = cms.bool(False)
104  )
105 
106 process.globalCosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
107  SALabel = cms.string("globalCosmicMuons1Leg"),
108  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
109  radius = cms.double(10.0),
110  maxZ = cms.double(50.0),
111  saveTags = cms.bool(False)
112  )
113 
114 process.ctfWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
115  SALabel = cms.string("ctfWithMaterialTracksP5"),
116  PropagatorName = cms.string("SteppingHelixPropagatorAny"),
117  radius = cms.double(10.0),
118  maxZ = cms.double(50.0),
119  saveTags = cms.bool(False)
120  )
121 
122 
123 process.cosmicMuonsBarrelOnlyPath = cms.Path(process.cosmicMuonsBarrelOnlyFilter)
124 process.cosmicMuonsPath = cms.Path(process.cosmicMuonsFilter)
125 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegFilter)
126 process.globalCosmicMuonsBarrelOnlyPath = cms.Path(process.globalCosmicMuonsBarrelOnlyFilter)
127 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5Filter)
128 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsFilter)
129 process.rsWithMaterialTracksP5Path = cms.Path(process.rsWithMaterialTracksP5Filter)
130 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegFilter)
131 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5Filter)
132 
133 
134 
135 process.outSP = cms.OutputModule("PoolOutputModule",
136  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
137  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmicMuonsBarrelOnlyPath',
138  'cosmicMuonsPath',
139  'cosmicMuons1LegPath',
140  'globalCosmicMuonsBarrelOnlyPath',
141  'cosmictrackfinderP5Path',
142  'globalCosmicMuonsPath',
143  'rsWithMaterialTracksP5Path',
144  'globalCosmicMuons1LegPath',
145  'ctfWithMaterialTracksP5Path')),
146  dataset = cms.untracked.PSet(
147  dataTier = cms.untracked.string('RAW-RECO'),
148  filterName = cms.untracked.string('SuperPointing')),
149  fileName = cms.untracked.string('superPointing.root')
150  )
151 
152 ###########################################################################################
153 #------------------------------------------
154 # parameters for the CSCSkim module
155 #------------------------------------------
156 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
157 
158 
159 #set to minimum activity
160 process.cscSkim.minimumSegments = 1
161 process.cscSkim.minimumHitChambers = 1
162 
163 # this is for filtering on HLT path
164 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
165  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
166  HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
167  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
168  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
169  throw = cms.bool(False), # throw exception on unknown path names
170  saveTags = cms.bool(False)
171  )
172 
173 #### the path
174 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
175 
176 
177 #### output
178 process.outputBeamHaloSkim = cms.OutputModule("PoolOutputModule",
179  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
180  fileName = cms.untracked.string("cscskimEvents.root"),
181  dataset = cms.untracked.PSet(
182  dataTier = cms.untracked.string('RAW-RECO'),
183  filterName = cms.untracked.string('CSCSkim_BeamHalo_Cosmics')
184  ),
185  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
186 )
187 
188 
189 #################################logerrorharvester############################################
190 process.load("FWCore.Modules.logErrorFilter_cfi")
192 
193 process.gtEvmDigis = gtEvmDigis.clone()
194 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
195  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
196  AllowedBeamMode = cms.vuint32(11),
197  saveTags = cms.bool(False)
198  )
199 
200 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
201 
202 process.outlogerr = cms.OutputModule("PoolOutputModule",
203  outputCommands = process.FEVTEventContent.outputCommands,
204  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
205  dataset = cms.untracked.PSet(
206  dataTier = cms.untracked.string('RAW-RECO'),
207  filterName = cms.untracked.string('Skim_logerror')),
208 
209  SelectEvents = cms.untracked.PSet(
210  SelectEvents = cms.vstring("logerrorpath")
211  ))
212 
213 #===========================================================
214 
215 process.options = cms.untracked.PSet(
216  wantSummary = cms.untracked.bool(True)
217 )
218 
219 process.outpath = cms.EndPath(process.outSP+process.outputBeamHaloSkim+process.outlogerr)
220 
221 
222 
223 
224