CMS 3D CMS Logo

aliases_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 simCastorDigis = cms.EDAlias(
4  mix = cms.VPSet(
5  cms.PSet(type = cms.string('CastorDataFramesSorted'))
6  )
7 )
8 simEcalUnsuppressedDigis = cms.EDAlias(
9  mix = cms.VPSet(
10  cms.PSet(type = cms.string('EBDigiCollection')),
11  cms.PSet(type = cms.string('EEDigiCollection')),
12  cms.PSet(type = cms.string('ESDigiCollection'))
13  )
14 )
15 simHcalUnsuppressedDigis = cms.EDAlias(
16  mix = cms.VPSet(
17  cms.PSet(type = cms.string('HBHEDataFramesSorted')),
18  cms.PSet(type = cms.string('HFDataFramesSorted')),
19  cms.PSet(type = cms.string('HODataFramesSorted')),
20  cms.PSet(type = cms.string('ZDCDataFramesSorted')),
21  cms.PSet(type = cms.string('QIE10DataFrameHcalDataFrameContainer')),
22  cms.PSet(type = cms.string('QIE11DataFrameHcalDataFrameContainer'))
23  )
24 )
25 simSiPixelDigis = cms.EDAlias(
26  mix = cms.VPSet(
27  cms.PSet(type = cms.string('PixelDigiedmDetSetVector')),
28  cms.PSet(type = cms.string('PixelDigiSimLinkedmDetSetVector'))
29  )
30 )
31 simSiStripDigis = cms.EDAlias(
32  mix = cms.VPSet(
33  cms.PSet(type = cms.string('SiStripDigiedmDetSetVector')),
34  cms.PSet(type = cms.string('SiStripRawDigiedmDetSetVector')),
35  cms.PSet(type = cms.string('StripDigiSimLinkedmDetSetVector'))
36  )
37 )
38 simHGCalUnsuppressedDigis = cms.EDAlias(
39  mix = cms.VPSet(
40  cms.PSet(
41  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
42  fromProductInstance = cms.string("HGCDigisEE"),
43  toProductInstance = cms.string("EE"),
44  ),
45  cms.PSet(
46  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
47  fromProductInstance = cms.string("HGCDigisHEfront"),
48  toProductInstance = cms.string("HEfront"),
49  ),
50  cms.PSet(
51  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
52  fromProductInstance = cms.string("HGCDigisHEback"),
53  toProductInstance = cms.string("HEback"),
54  ),
55  )
56 )
57 
58 # no castor,pixel,strip digis in fastsim
59 from Configuration.Eras.Modifier_fastSim_cff import fastSim
60 fastSim.toModify(simCastorDigis, mix = None)
61 fastSim.toModify(simSiPixelDigis, mix = None)
62 fastSim.toModify(simSiStripDigis, mix = None)
63 
64 from Configuration.Eras.Modifier_run3_common_cff import run3_common
65 run3_common.toModify(simCastorDigis, mix = None)
66 
67 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
68 (~phase2_hgcal).toModify(simHGCalUnsuppressedDigis, mix = None)
69 
70 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
71 (premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
72  mix = {
73  0 : dict(type = "PHGCSimAccumulator"),
74  1 : dict(type = "PHGCSimAccumulator"),
75  2 : dict(type = "PHGCSimAccumulator"),
76  }
77 )