CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hcalUnsuppressedDigis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
4 from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel
5 
6 # make a block so other modules, such as the data mixing module, can
7 # also run simulation
8 
9 hcalSimBlock = cms.PSet(
10  hcalSimParameters,
11  # whether cells with MC signal get noise added
12  doNoise = cms.bool(True),
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  doHPDNoise = cms.bool(False),
19  doIonFeedback = cms.bool(True),
20  doThermalNoise = cms.bool(True),
21  # fudge factors for "Cholesky" noise simulation (obsolete)
22  HBTuningParameter = cms.double(0.875),
23  HETuningParameter = cms.double(0.9),
24  HFTuningParameter = cms.double(1.025),
25  HOTuningParameter = cms.double(1),
26  # use old way of noise simulation
27  useOldHB = cms.bool(True),
28  useOldHE = cms.bool(True),
29  useOldHF = cms.bool(True),
30  useOldHO = cms.bool(True),
31  HBHEUpgradeQIE = cms.bool(True),
32  HFUpgradeQIE = cms.bool(False),
33  HFQIE8 = cms.bool(True),
34  HFQIE10 = cms.bool(False),
35  #HPDNoiseLibrary = cms.PSet(
36  # FileName = cms.FileInPath("SimCalorimetry/HcalSimAlgos/data/hpdNoiseLibrary.root"),
37  # HPDName = cms.untracked.string("HPD")
38  #),
39  doTimeSlew = cms.bool(True),
40  doHFWindow = cms.bool(False),
41  hitsProducer = cms.string('g4SimHits'),
42  injectTestHits = cms.bool(False),
43  ChangeResponse = cms.bool(False),
44  CorrFactorFile = cms.FileInPath("SimCalorimetry/HcalSimProducers/data/calor_corr01.txt"),
45  HcalReLabel = HcalReLabel,
46  DelivLuminosity = cms.double(0),
47  HEDarkening = cms.bool(False),
48  HFDarkening = cms.bool(False),
49  minFCToDelay=cms.double(5.) # old TC model! set to 5 for the new one
50 )
51 
52 from Configuration.StandardSequences.Eras import eras
53 eras.fastSim.toModify( hcalSimBlock, hitsProducer=cms.string('famosSimHits') )
54 eras.run2_HF_2016.toModify( hcalSimBlock, HFQIE8=cms.bool(True), HFQIE10=cms.bool(True) )
55 
56 #es_cholesky = cms.ESSource("PoolDBESSource",
57 # CondDBSetup,
58 # timetype = cms.string('runnumber'),
59 # toGet = cms.VPSet(
60 # cms.PSet(
61 # record = cms.string("HcalCholeskyMatricesRcd"),
62 # tag = cms.string("TestCholesky")
63 # )),
64 # connect = cms.string('sqlite_file:CondFormats/HcalObjects/data/cholesky_sql.db'),
65 # appendToDataLabel = cms.string('reference'),
66 # authenticationMethod = cms.untracked.uint32(0),
67 #)
68 
69 
70 #es_cholesky = cms.ESSource('HcalTextCalibrations',
71 # input = cms.VPSet(
72 # cms.PSet(
73 # object = cms.string('CholeskyMatrices'),
74 # file = cms.FileInPath("CondFormats/HcalObjects/data/CholeskyMatrices.txt")
75 # ),
76 # ),
77 # appendToDataLabel = cms.string('reference')
78 #)