CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/Configuration/StandardSequences/python/DataMixerDataOnData_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Start with Standard Digitization:
00004 
00005 from SimCalorimetry.Configuration.SimCalorimetry_cff import *
00006 
00007 from SimGeneral.DataMixingModule.mixOne_data_on_data_cfi import *
00008 
00009 # Run after the DataMixer only.
00010 #
00011 # Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
00012 # 
00013 #
00014 # clone these sequences:
00015 
00016 DMEcalTriggerPrimitiveDigis = simEcalTriggerPrimitiveDigis.clone()
00017 DMEcalDigis = simEcalDigis.clone()
00018 DMEcalPreshowerDigis = simEcalPreshowerDigis.clone()
00019 
00020 # Re-define inputs to point at DataMixer output
00021 DMEcalTriggerPrimitiveDigis.Label = cms.string('mixData')
00022 DMEcalTriggerPrimitiveDigis.InstanceEB = cms.string('EBDigiCollectionDM')
00023 DMEcalTriggerPrimitiveDigis.InstanceEE = cms.string('EEDigiCollectionDM')
00024 #
00025 DMEcalDigis.digiProducer = cms.string('mixData')
00026 DMEcalDigis.EBdigiCollection = cms.string('EBDigiCollectionDM')
00027 DMEcalDigis.EEdigiCollection = cms.string('EEDigiCollectionDM')
00028 DMEcalDigis.trigPrimProducer = cms.string('DMEcalTriggerPrimitiveDigis')
00029 #
00030 DMEcalPreshowerDigis.digiProducer = cms.string('mixData')
00031 #DMEcalPreshowerDigis.ESdigiCollection = cms.string('ESDigiCollectionDM')
00032 
00033 ecalDigiSequenceDM = cms.Sequence(DMEcalTriggerPrimitiveDigis*DMEcalDigis*DMEcalPreshowerDigis)
00034 
00035 # same for Hcal:
00036 
00037 # clone these sequences:
00038 
00039 DMHcalTriggerPrimitiveDigis = simHcalTriggerPrimitiveDigis.clone()
00040 DMHcalDigis = simHcalDigis.clone()
00041 DMHcalTTPDigis = simHcalTTPDigis.clone()
00042 
00043 # Re-define inputs to point at DataMixer output
00044 DMHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('mixData'),cms.InputTag('mixData'))
00045 DMHcalDigis.digiLabel = cms.InputTag("mixData")
00046 DMHcalTTPDigis.HFDigiCollection = cms.InputTag("mixData")
00047 
00048 hcalDigiSequenceDM = cms.Sequence(DMHcalTriggerPrimitiveDigis+DMHcalDigis*DMHcalTTPDigis)
00049 
00050 postDMDigi = cms.Sequence(ecalDigiSequenceDM+hcalDigiSequenceDM)
00051 
00052 # disable adding noise to HCAL cells with no MC signal
00053 mixData.doEmpty = False
00054 
00055 pdatamix = cms.Sequence(mixData+postDMDigi)
00056