DMHcalTTPDigis.HFDigiCollection = cms.InputTag("mixData") hcalDigiTaskDM = cms.Task(DMHcalTriggerPrimitiveDigis, DMHcalDigis, DMHcalTTPDigis) postDMDigi = cms.Task(ecalDigiTaskDM, hcalDigiTaskDM, muonDigiTask) # disable adding noise to HCAL cells with no MC signal #mixData.doEmpty = False # # TrackingParticle Producer is now part of the mixing module, so # it is no longer run here. # from SimGeneral.PileupInformation.AddPileupSummary_cfi import * pdatamixTask = cms.Task(mixData, postDMDigi, addPileupInfo) pdatamix = cms.Sequence(pdatamixTask) from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimDigis(process): # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases # use an alias to make the mixed track collection available under the usual label from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases loadDigiAliases(process, premix=True) modifyDataMixerPreMix_fastSimDigis = fastSim.makeProcessModifier(_fastSimDigis)
from GeneratorInterface.HiGenCommon.HeavyIon_cff import * pdigi_hi = cms.Sequence(pdigi + heavyIon) pdigi_hi_nogen = cms.Sequence(pdigi_nogen + heavyIon) from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimDigis(process): import FastSimulation.Configuration.DigiAliases_cff as DigiAliases # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases # use an alias to make the mixed track collection available under the usual label from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases loadDigiAliases(process) modifyDigi_fastSimDigis = fastSim.makeProcessModifier(_fastSimDigis) #phase 2 common mods def _modifyEnableHcalHardcode(theProcess): from CalibCalorimetry.HcalPlugins.Hcal_Conditions_forGlobalTag_cff import hcal_db_producer as _hcal_db_producer, es_hardcode as _es_hardcode, es_prefer_hcalHardcode as _es_prefer_hcalHardcode theProcess.hcal_db_producer = _hcal_db_producer theProcess.es_hardcode = _es_hardcode theProcess.es_prefer_hcalHardcode = _es_prefer_hcalHardcode from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions modifyEnableHcalHardcode_ = hcalHardcodeConditions.makeProcessModifier( _modifyEnableHcalHardcode)
duplicateTrackClassifier, generalTracks) generalTracksSequence = cms.Sequence(generalTracksTask) from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toReplaceWith( generalTracksTask, cms.Task(duplicateTrackCandidates, mergedDuplicateTracks, duplicateTrackClassifier)) def _fastSimGeneralTracks(process): from FastSimulation.Configuration.DigiAliases_cff import loadGeneralTracksAlias loadGeneralTracksAlias(process) modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks) import RecoTracker.FinalTrackSelectors.trackListMerger_cfi conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone( TrackProducers=['convStepTracks'], hasSelector=[1], selectedTrackQuals=['convStepSelector:convStep'], setsToMerge=cms.VPSet(cms.PSet(tLists=cms.vint32(1), pQual=cms.bool(True))), copyExtras=True, makeReKeyedSeeds=cms.untracked.bool(False), ) from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer phase2_timing_layer.toModify(mergedDuplicateTracks, TrajectoryInEvent=True) phase2_timing_layer.toModify(generalTracks, copyTrajectories=True)
mergedDuplicateTracks, duplicateTrackClassifier, generalTracks ) generalTracksSequence = cms.Sequence(generalTracksTask) from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toReplaceWith(generalTracksTask, cms.Task( duplicateTrackCandidates, mergedDuplicateTracks, duplicateTrackClassifier ) ) def _fastSimGeneralTracks(process): from FastSimulation.Configuration.DigiAliases_cff import loadGeneralTracksAlias loadGeneralTracksAlias(process) modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks ) import RecoTracker.FinalTrackSelectors.trackListMerger_cfi conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone( TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')), hasSelector=cms.vint32(1), selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep") ), setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) ) ), copyExtras = True, makeReKeyedSeeds = cms.untracked.bool(False) )
import FWCore.ParameterSet.Config as cms from L1Trigger.Configuration.SimL1Emulator_cff import * # make trigger digis available under with the raw2digi names from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimTriggerDigis(process): # pretend these digis have been through digi2raw and to the HLT internal raw2digi, by using the approprate aliases # consider moving these mods to the HLT configuration from FastSimulation.Configuration.DigiAliases_cff import loadTriggerDigiAliases loadTriggerDigiAliases(process) modifySimL1Emulator_fastSimTriggerDigis = fastSim.makeProcessModifier( _fastSimTriggerDigis)
# Re-define inputs to point at DataMixer output DMHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('mixData'),cms.InputTag('mixData')) DMHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(cms.InputTag('mixData:HBHEQIE11DigiCollection'),cms.InputTag('mixData:HFQIE10DigiCollection')) DMHcalDigis.digiLabel = cms.string('mixData') DMHcalTTPDigis.HFDigiCollection = cms.InputTag("mixData") hcalDigiSequenceDM = cms.Sequence(DMHcalTriggerPrimitiveDigis+DMHcalDigis*DMHcalTTPDigis) postDMDigi = cms.Sequence(ecalDigiSequenceDM+hcalDigiSequenceDM) # disable adding noise to HCAL cells with no MC signal #mixData.doEmpty = False # # TrackingParticle Producer is now part of the mixing module, so # it is no longer run here. # from SimGeneral.PileupInformation.AddPileupSummary_cfi import * pdatamix = cms.Sequence(mixData+postDMDigi+addPileupInfo) from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimDigis(process): # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases # use an alias to make the mixed track collection available under the usual label from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases loadDigiAliases(process, premix=True) modifyDataMixerPreMix_fastSimDigis = fastSim.makeProcessModifier(_fastSimDigis)
import FWCore.ParameterSet.Config as cms from L1Trigger.Configuration.SimL1Emulator_cff import * # make trigger digis available under with the raw2digi names from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimTriggerDigis(process): # pretend these digis have been through digi2raw and to the HLT internal raw2digi, by using the approprate aliases # consider moving these mods to the HLT configuration from FastSimulation.Configuration.DigiAliases_cff import loadTriggerDigiAliases loadTriggerDigiAliases(process) modifySimL1Emulator_fastSimTriggerDigis = fastSim.makeProcessModifier(_fastSimTriggerDigis)
pdigi = cms.Sequence(generatorSmeared*fixGenInfo*cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*addPileupInfo*genPUProtons) pdigi_valid = cms.Sequence(pdigi) pdigi_nogen=cms.Sequence(generatorSmeared*cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*addPileupInfo*genPUProtons) pdigi_valid_nogen=cms.Sequence(pdigi_nogen) from GeneratorInterface.HiGenCommon.HeavyIon_cff import * pdigi_hi=cms.Sequence(pdigi+heavyIon) pdigi_hi_nogen=cms.Sequence(pdigi_nogen+heavyIon) from Configuration.Eras.Modifier_fastSim_cff import fastSim def _fastSimDigis(process): import FastSimulation.Configuration.DigiAliases_cff as DigiAliases # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases # use an alias to make the mixed track collection available under the usual label from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases loadDigiAliases(process) modifyDigi_fastSimDigis = fastSim.makeProcessModifier(_fastSimDigis) #phase 2 common mods def _modifyEnableHcalHardcode( theProcess ): from CalibCalorimetry.HcalPlugins.Hcal_Conditions_forGlobalTag_cff import hcal_db_producer as _hcal_db_producer, es_hardcode as _es_hardcode, es_prefer_hcalHardcode as _es_prefer_hcalHardcode theProcess.hcal_db_producer = _hcal_db_producer theProcess.es_hardcode = _es_hardcode theProcess.es_prefer_hcalHardcode = _es_prefer_hcalHardcode from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions modifyEnableHcalHardcode_ = hcalHardcodeConditions.makeProcessModifier( _modifyEnableHcalHardcode )