CMS 3D CMS Logo

hcalUnsuppressedDigis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 # make a block so other modules, such as the data mixing module, can
5 # also run simulation
6 
7 hcalSimBlock = cms.PSet(
8  hcalSimParameters,
9  # whether cells with MC signal get noise added
10  doNoise = cms.bool(True),
11  killHE = cms.bool(False),
12  HcalPreMixStage1 = cms.bool(False),
13  HcalPreMixStage2 = cms.bool(False),
14  # whether cells with no MC signal get an empty signal created
15  # These empty signals can get noise via the doNoise flag
16  doEmpty = cms.bool(True),
17  doIonFeedback = cms.bool(True),
18  doThermalNoise = cms.bool(True),
19  doTimeSlew = cms.bool(True),
20  doHFWindow = cms.bool(False),
21  hitsProducer = cms.string('g4SimHits'),
22  DelivLuminosity = cms.double(0),
23  TestNumbering = cms.bool(False),
24  doNeutralDensityFilter = cms.bool(True),
25  HEDarkening = cms.bool(False),
26  HFDarkening = cms.bool(False),
27  minFCToDelay=cms.double(5.), # old TC model! set to 5 for the new one
28  debugCaloSamples=cms.bool(False),
29  ignoreGeantTime=cms.bool(False),
30  # settings for SimHit test injection
31  injectTestHits = cms.bool(False),
32  # if no time is specified for injected hits, t = 0 will be used
33  # (recommendation: enable "ignoreGeantTime" in that case to set t = tof)
34  # otherwise, need 1 time value per energy value
35  injectTestHitsEnergy = cms.vdouble(),
36  injectTestHitsTime = cms.vdouble(),
37  # format for cells: subdet, ieta, iphi, depth
38  # multiple quadruplets can be specified
39  # if instead only 1 value is given,
40  # it will be interpreted as an entire subdetector
41  injectTestHitsCells = cms.vint32()
42 )
43 
44 from Configuration.Eras.Modifier_fastSim_cff import fastSim
45 fastSim.toModify( hcalSimBlock, hitsProducer=cms.string('famosSimHits') )
46 
47 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
48 run2_HCAL_2017.toModify( hcalSimBlock, TestNumbering = cms.bool(True) )
49 
50 # remove HE processing for phase 2, completely put in HGCal land
51 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
52 phase2_hgcal.toModify(hcalSimBlock, killHE = cms.bool(True) )
53 
54 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
55 phase2_common.toModify(hcalSimBlock, doNeutralDensityFilter = cms.bool(False))