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  #HPDNoiseLibrary = cms.PSet(
34  # FileName = cms.FileInPath("SimCalorimetry/HcalSimAlgos/data/hpdNoiseLibrary.root"),
35  # HPDName = cms.untracked.string("HPD")
36  #),
37  doTimeSlew = cms.bool(True),
38  doHFWindow = cms.bool(False),
39  hitsProducer = cms.string('g4SimHits'),
40  injectTestHits = cms.bool(False),
41  ChangeResponse = cms.bool(False),
42  CorrFactorFile = cms.FileInPath("SimCalorimetry/HcalSimProducers/data/calor_corr01.txt"),
43  HcalReLabel = HcalReLabel,
44  DelivLuminosity = cms.double(0),
45  HEDarkening = cms.bool(False),
46  HFDarkening = cms.bool(False),
47  minFCToDelay=cms.double(5.) # old TC model! set to 5 for the new one
48 )
49 
50 from Configuration.StandardSequences.Eras import eras
51 if eras.fastSim.isChosen():
52  hcalSimBlock.hitsProducer = cms.string('famosSimHits')
53 
54 #es_cholesky = cms.ESSource("PoolDBESSource",
55 # CondDBSetup,
56 # timetype = cms.string('runnumber'),
57 # toGet = cms.VPSet(
58 # cms.PSet(
59 # record = cms.string("HcalCholeskyMatricesRcd"),
60 # tag = cms.string("TestCholesky")
61 # )),
62 # connect = cms.string('sqlite_file:CondFormats/HcalObjects/data/cholesky_sql.db'),
63 # appendToDataLabel = cms.string('reference'),
64 # authenticationMethod = cms.untracked.uint32(0),
65 #)
66 
67 
68 #es_cholesky = cms.ESSource('HcalTextCalibrations',
69 # input = cms.VPSet(
70 # cms.PSet(
71 # object = cms.string('CholeskyMatrices'),
72 # file = cms.FileInPath("CondFormats/HcalObjects/data/CholeskyMatrices.txt")
73 # ),
74 # ),
75 # appendToDataLabel = cms.string('reference')
76 #)