00214 :
00215
00216 self.data += """
00217 # CMSSW version specific customizations
00218 import os
00219 cmsswVersion = os.environ['CMSSW_VERSION']
00220
00221 # customization for CMSSW_5_2_X
00222 if cmsswVersion.startswith('CMSSW_5_2_'):
00223
00224 # force the use of the correct calo jet energy corrections
00225 if 'hltESPL1FastJetCorrectionESProducer' in %(dict)s:
00226 %(process)shltESPL1FastJetCorrectionESProducer.algorithm = "AK5CaloHLT"
00227
00228 if 'hltESPL2RelativeCorrectionESProducer' in %(dict)s:
00229 %(process)shltESPL2RelativeCorrectionESProducer.algorithm = "AK5CaloHLT"
00230
00231 if 'hltESPL3AbsoluteCorrectionESProducer' in %(dict)s:
00232 %(process)shltESPL3AbsoluteCorrectionESProducer.algorithm = "AK5CaloHLT"
00233
00234
00235 # customization for CMSSW_5_3_X
00236 if cmsswVersion.startswith('CMSSW_5_3_'):
00237
00238 # do not override the calo jet energy corrections in 5.3.x for consistency with the current MC samples
00239 pass
00240
00241
00242 # customization for CMSSW_6_1_X and 6_2_X
00243 if cmsswVersion.startswith('CMSSW_6_1_') or cmsswVersion.startswith('CMSSW_6_2_'):
00244
00245 # force the use of the correct calo jet energy corrections
00246 if 'hltESPL1FastJetCorrectionESProducer' in %(dict)s:
00247 %(process)shltESPL1FastJetCorrectionESProducer.algorithm = "AK5CaloHLT"
00248
00249 if 'hltESPL2RelativeCorrectionESProducer' in %(dict)s:
00250 %(process)shltESPL2RelativeCorrectionESProducer.algorithm = "AK5CaloHLT"
00251
00252 if 'hltESPL3AbsoluteCorrectionESProducer' in %(dict)s:
00253 %(process)shltESPL3AbsoluteCorrectionESProducer.algorithm = "AK5CaloHLT"
00254
00255 # adapt the HLT menu to the "prototype for Event Interpretation" development
00256 if 'hltPFPileUp' in %(dict)s:
00257 # define new PFCandidateFwdPtrProducer module
00258 %(process)shltParticleFlowPtrs = cms.EDProducer("PFCandidateFwdPtrProducer",
00259 src = cms.InputTag('hltParticleFlow')
00260 )
00261 # add the new module before the hltPFPileUp module
00262 _sequence = None
00263 for _sequence in [ _sequence for _sequence in %(dict)s.itervalues() if isinstance(_sequence, cms._ModuleSequenceType)]:
00264 try:
00265 _sequence.insert( _sequence.index(%(process)shltPFPileUp), %(process)shltParticleFlowPtrs )
00266 except ValueError:
00267 pass
00268 # reconfigure hltPFPileUp and hltPFNoPileUp to use the new module
00269 %(process)shltPFPileUp.PFCandidates = cms.InputTag( "hltParticleFlowPtrs" )
00270 %(process)shltPFNoPileUp.bottomCollection = cms.InputTag( "hltParticleFlowPtrs" )
00271
00272 # postLS1 muon extension
00273 # /CalibMuon/CSCCalibration/python/CSCIndexer_cfi.py
00274 %(process)sCSCIndexerESSource = cms.ESSource("EmptyESSource",
00275 recordName = cms.string("CSCIndexerRecord"),
00276 firstValid = cms.vuint32(1),
00277 iovIsRunNotTime = cms.bool(True)
00278 )
00279 %(process)sCSCIndexerESProducer = cms.ESProducer("CSCIndexerESProducer",
00280 AlgoName = cms.string("CSCIndexerStartup")
00281 )
00282 # /CalibMuon/CSCCalibration/python/CSCChannelMapper_cfi.py
00283 %(process)sCSCChannelMapperESSource = cms.ESSource("EmptyESSource",
00284 recordName = cms.string("CSCChannelMapperRecord"),
00285 firstValid = cms.vuint32(1),
00286 iovIsRunNotTime = cms.bool(True)
00287 )
00288 %(process)sCSCChannelMapperESProducer = cms.ESProducer("CSCChannelMapperESProducer",
00289 AlgoName = cms.string("CSCChannelMapperStartup")
00290 )
00291
00292 # customization for CMSSW_6_2_X only
00293 if cmsswVersion.startswith('CMSSW_6_2_'):
00294 # /Geometry/TrackerNumberingBuilder/trackerTopologyConstants_cfi.py
00295 %(process)strackerTopologyConstants = cms.ESProducer('TrackerTopologyEP',
00296 pxb_layerStartBit = cms.uint32(16),
00297 pxb_ladderStartBit = cms.uint32(8),
00298 pxb_moduleStartBit = cms.uint32(2),
00299 pxb_layerMask = cms.uint32(15),
00300 pxb_ladderMask = cms.uint32(255),
00301 pxb_moduleMask = cms.uint32(63),
00302 pxf_sideStartBit = cms.uint32(23),
00303 pxf_diskStartBit = cms.uint32(16),
00304 pxf_bladeStartBit = cms.uint32(10),
00305 pxf_panelStartBit = cms.uint32(8),
00306 pxf_moduleStartBit = cms.uint32(2),
00307 pxf_sideMask = cms.uint32(3),
00308 pxf_diskMask = cms.uint32(15),
00309 pxf_bladeMask = cms.uint32(63),
00310 pxf_panelMask = cms.uint32(3),
00311 pxf_moduleMask = cms.uint32(63),
00312 tec_sideStartBit = cms.uint32(18),
00313 tec_wheelStartBit = cms.uint32(14),
00314 tec_petal_fw_bwStartBit = cms.uint32(12),
00315 tec_petalStartBit = cms.uint32(8),
00316 tec_ringStartBit = cms.uint32(5),
00317 tec_moduleStartBit = cms.uint32(2),
00318 tec_sterStartBit = cms.uint32(0),
00319 tec_sideMask = cms.uint32(3),
00320 tec_wheelMask = cms.uint32(15),
00321 tec_petal_fw_bwMask = cms.uint32(3),
00322 tec_petalMask = cms.uint32(15),
00323 tec_ringMask = cms.uint32(7),
00324 tec_moduleMask = cms.uint32(7),
00325 tec_sterMask = cms.uint32(3),
00326 tib_layerStartBit = cms.uint32(14),
00327 tib_str_fw_bwStartBit = cms.uint32(12),
00328 tib_str_int_extStartBit = cms.uint32(10),
00329 tib_strStartBit = cms.uint32(4),
00330 tib_moduleStartBit = cms.uint32(2),
00331 tib_sterStartBit = cms.uint32(0),
00332 tib_layerMask = cms.uint32(7),
00333 tib_str_fw_bwMask = cms.uint32(3),
00334 tib_str_int_extMask = cms.uint32(3),
00335 tib_strMask = cms.uint32(63),
00336 tib_moduleMask = cms.uint32(3),
00337 tib_sterMask = cms.uint32(3),
00338 tid_sideStartBit = cms.uint32(13),
00339 tid_wheelStartBit = cms.uint32(11),
00340 tid_ringStartBit = cms.uint32(9),
00341 tid_module_fw_bwStartBit = cms.uint32(7),
00342 tid_moduleStartBit = cms.uint32(2),
00343 tid_sterStartBit = cms.uint32(0),
00344 tid_sideMask = cms.uint32(3),
00345 tid_wheelMask = cms.uint32(3),
00346 tid_ringMask = cms.uint32(3),
00347 tid_module_fw_bwMask = cms.uint32(3),
00348 tid_moduleMask = cms.uint32(31),
00349 tid_sterMask = cms.uint32(3),
00350 tob_layerStartBit = cms.uint32(14),
00351 tob_rod_fw_bwStartBit = cms.uint32(12),
00352 tob_rodStartBit = cms.uint32(5),
00353 tob_moduleStartBit = cms.uint32(2),
00354 tob_sterStartBit = cms.uint32(0),
00355 tob_layerMask = cms.uint32(7),
00356 tob_rod_fw_bwMask = cms.uint32(3),
00357 tob_rodMask = cms.uint32(127),
00358 tob_moduleMask = cms.uint32(7),
00359 tob_sterMask = cms.uint32(3),
00360 appendToDataLabel = cms.string('')
00361 )
00362
00363 """