CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.ProcessModifiers.premix_stage1_cff import premix_stage1
51 premix_stage1.toModify(hcalSimBlock,
52  doNoise = False,
53  doEmpty = False,
54  doIonFeedback = False,
55  doThermalNoise = False,
56  doTimeSlew = False,
57  HcalPreMixStage1 = True,
58 )
59 
60 # test numbering not used in fastsim
61 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
62 (run2_HCAL_2017 & ~fastSim).toModify( hcalSimBlock, TestNumbering = cms.bool(True) )
63 
64 # remove HE processing for phase 2, completely put in HGCal land
65 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
66 phase2_hgcal.toModify(hcalSimBlock, killHE = cms.bool(True) )
Recalibration Parameters.