CMS 3D CMS Logo

DataMixerPreMix_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Start with Standard Digitization:
4 
6 
8 
9 # Run after the DataMixer only.
10 #
11 # Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
12 #
13 #
14 # clone these sequences:
15 
16 DMEcalTriggerPrimitiveDigis = simEcalTriggerPrimitiveDigis.clone()
17 DMEcalDigis = simEcalDigis.clone()
18 DMEcalPreshowerDigis = simEcalPreshowerDigis.clone()
19 
20 # Re-define inputs to point at DataMixer output
21 DMEcalTriggerPrimitiveDigis.Label = cms.string('mixData')
22 DMEcalTriggerPrimitiveDigis.InstanceEB = cms.string('')
23 DMEcalTriggerPrimitiveDigis.InstanceEE = cms.string('')
24 #
25 DMEcalDigis.digiProducer = cms.string('mixData')
26 DMEcalDigis.EBdigiCollection = cms.string('')
27 DMEcalDigis.EEdigiCollection = cms.string('')
28 DMEcalDigis.trigPrimProducer = cms.string('DMEcalTriggerPrimitiveDigis')
29 #
30 DMEcalPreshowerDigis.digiProducer = cms.string('mixData')
31 #DMEcalPreshowerDigis.ESdigiCollection = cms.string('ESDigiCollectionDM')
32 
33 ecalDigiSequenceDM = cms.Sequence(DMEcalTriggerPrimitiveDigis*DMEcalDigis*DMEcalPreshowerDigis)
34 
35 # same for Hcal:
36 
37 # clone these sequences:
38 
39 DMHcalTriggerPrimitiveDigis = simHcalTriggerPrimitiveDigis.clone()
40 DMHcalDigis = simHcalDigis.clone()
41 DMHcalTTPDigis = simHcalTTPDigis.clone()
42 
43 # Re-define inputs to point at DataMixer output
44 DMHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('mixData'),cms.InputTag('mixData'))
45 DMHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(cms.InputTag('mixData:HBHEQIE11DigiCollection'),cms.InputTag('mixData:HFQIE10DigiCollection'))
46 DMHcalDigis.digiLabel = cms.string('mixData')
47 DMHcalTTPDigis.HFDigiCollection = cms.InputTag("mixData")
48 
49 hcalDigiSequenceDM = cms.Sequence(DMHcalTriggerPrimitiveDigis+DMHcalDigis*DMHcalTTPDigis)
50 
51 postDMDigi = cms.Sequence(ecalDigiSequenceDM+hcalDigiSequenceDM)
52 
53 # disable adding noise to HCAL cells with no MC signal
54 #mixData.doEmpty = False
55 
56 #
57 # TrackingParticle Producer is now part of the mixing module, so
58 # it is no longer run here.
59 #
61 
62 
63 
64 pdatamix = cms.Sequence(mixData+postDMDigi+addPileupInfo)
65 
66 from Configuration.Eras.Modifier_fastSim_cff import fastSim
67 def _fastSimDigis(process):
68  # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases
69  # use an alias to make the mixed track collection available under the usual label
70  from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases
71  loadDigiAliases(process, premix=True)
72 modifyDataMixerPreMix_fastSimDigis = fastSim.makeProcessModifier(_fastSimDigis)
def loadDigiAliases(process, premix=False)