CMS 3D CMS Logo

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