Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Start with Standard Digitization:
0004 
0005 from SimCalorimetry.Configuration.SimCalorimetry_cff import *
0006 
0007 from SimGeneral.DataMixingModule.mixOne_sim_on_sim_cfi import *
0008 
0009 # Run after the DataMixer only.
0010 #
0011 # Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
0012 # 
0013 #
0014 # clone these sequences:
0015 
0016 DMEcalTriggerPrimitiveDigis = simEcalTriggerPrimitiveDigis.clone()
0017 DMEcalDigis = simEcalDigis.clone()
0018 DMEcalPreshowerDigis = simEcalPreshowerDigis.clone()
0019 
0020 # Re-define inputs to point at DataMixer output
0021 DMEcalTriggerPrimitiveDigis.Label = cms.string('mixData')
0022 DMEcalTriggerPrimitiveDigis.InstanceEB = cms.string('EBDigiCollectionDM')
0023 DMEcalTriggerPrimitiveDigis.InstanceEE = cms.string('EEDigiCollectionDM')
0024 #
0025 DMEcalDigis.digiProducer = cms.string('mixData')
0026 DMEcalDigis.EBdigiCollection = cms.string('EBDigiCollectionDM')
0027 DMEcalDigis.EEdigiCollection = cms.string('EEDigiCollectionDM')
0028 DMEcalDigis.trigPrimProducer = cms.string('DMEcalTriggerPrimitiveDigis')
0029 #
0030 DMEcalPreshowerDigis.digiProducer = cms.string('mixData')
0031 #DMEcalPreshowerDigis.ESdigiCollection = cms.string('ESDigiCollectionDM')
0032 
0033 ecalDigiSequenceDM = cms.Sequence(DMEcalTriggerPrimitiveDigis*DMEcalDigis*DMEcalPreshowerDigis)
0034 
0035 # same for Hcal:
0036 
0037 # clone these sequences:
0038 
0039 DMHcalTriggerPrimitiveDigis = simHcalTriggerPrimitiveDigis.clone()
0040 DMHcalDigis = simHcalDigis.clone()
0041 DMHcalTTPDigis = simHcalTTPDigis.clone()
0042 
0043 # Re-define inputs to point at DataMixer output
0044 DMHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('mixData'),cms.InputTag('mixData'))
0045 DMHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(cms.InputTag('mixData:HBHEQIE11DigiCollection'),cms.InputTag('mixData:HFQIE10DigiCollection'))
0046 DMHcalDigis.digiLabel = cms.string("mixData")
0047 DMHcalTTPDigis.HFDigiCollection = cms.InputTag("mixData")
0048 
0049 hcalDigiSequenceDM = cms.Sequence(DMHcalTriggerPrimitiveDigis+DMHcalDigis*DMHcalTTPDigis)
0050 
0051 postDMDigi = cms.Sequence(ecalDigiSequenceDM+hcalDigiSequenceDM)
0052 
0053 # disable adding noise to HCAL cells with no MC signal
0054 #mixData.doEmpty = False
0055 
0056 pdatamix = cms.Sequence(mixData+postDMDigi)
0057