CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Digi_Phase1_R34F16_HCal_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 # Mostly copied from Configuration/StandardSequences/python/Digi_cff.py
3 # In the future we will split off parts into a PixelDigi_Phase1_cff
4 #
5 # Full-scale Digitization of the simulated hits
6 # in all CMS subdets : Tracker, ECAL, HCAl, Muon's;
7 # MixingModule (at least in zero-pileup mode) needs
8 # to be included to make Digi's operational, since
9 # it's required for ECAL/HCAL & Muon's
10 # Defined in a separate fragment
11 #
12 # Tracker Digis (Pixel + SiStrips)
13 # returns sequence "trDigi"
14 #
16 # Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
17 # returns sequence "calDigi"
19 # Muon Digis (CSC + DT + RPC)
20 # returns sequence "muonDigi"
21 #
23 #
24 # include TrackingParticle Producer
25 # NOTA BENE: it MUST be run here at the moment, since it depends
26 # of the availability of the CrossingFrame in the Event
27 #
29 #
30 # Phase 1 Modifications
31 #
32 #from SimTracker.SiPixelDigitizer.PixelDigi_cfi import *
33 simSiPixelDigis.MissCalibrate = False
34 simSiPixelDigis.LorentzAngle_DB = False
35 simSiPixelDigis.killModules = False
36 simSiPixelDigis.useDB = False
37 simSiPixelDigis.DeadModules_DB = False
38 simSiPixelDigis.NumPixelBarrel = cms.int32(4)
39 simSiPixelDigis.NumPixelEndcap = cms.int32(3)
40 simSiPixelDigis.AddPixelInefficiency = -1
41 simSiPixelDigis.ThresholdInElectrons_FPix = cms.double(2000.0)
42 simSiPixelDigis.ThresholdInElectrons_BPix = cms.double(2000.0)
43 simSiPixelDigis.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
44 #
45 # HCal Modifications
46 #
47 #turn off zero suppression hopefully ?
48 simHcalDigis.HBlevel = -1000
49 simHcalDigis.HElevel = -1000
50 simHcalDigis.HOlevel = -1000
51 
52 #turn on SiPMs in HO
53 hcalSimParameters.ho.siPMCode = 1
54 hcalSimParameters.ho.pixels = cms.int32(2500)
55 hcalSimParameters.ho.photoelectronsToAnalog = cms.vdouble([3.0]*16)
56 
57 #turn on SiPMs in HB/HE
58 hcalSimParameters.hb.siPMCells = [1]
59 hcalSimParameters.hb.pixels = cms.int32(4500*4*2)
60 hcalSimParameters.hb.photoelectronsToAnalog = cms.vdouble(10.0)
61 hcalSimParameters.he.pixels = cms.int32(4500*4)
62 hcalSimParameters.he.photoelectronsToAnalog = cms.vdouble(10.0)
63 
64 simHcalUnsuppressedDigis.hb.pixels = cms.int32(4500*4*2)
65 #turn on SLHC topology
66 #HcalTopologyIdealEP.SLHCMode = cms.untracked.bool(True)
67 
68 #turn on hit relabeling and set depth segmentation
69 HcalReLabel.RelabelHits = cms.untracked.bool(True)
70 HcalReLabel.RelabelRules = cms.untracked.PSet(
71  CorrectPhi = cms.untracked.bool(True),
72  Eta1 = cms.untracked.vint32(1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,5,5),
73  Eta16 = cms.untracked.vint32(1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3),
74  Eta17 = cms.untracked.vint32(1,1,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5)
75  )
76 
77 #
78 doAllDigi = cms.Sequence(trDigi+calDigi+muonDigi)
79 pdigi = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*trackingParticles*addPileupInfo)
80 pdigi.remove(simHcalTriggerPrimitiveDigis)
81 pdigi.remove(simHcalTTPDigis)
82 pdigi.remove(simCastorDigis)