CMS 3D CMS Logo

SiPixelSimParameters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # This object is used to make configuration changes for different running
4 # scenarios, in this case for Run 2. See the code at the end of the
5 # SiPixelSimBlock definition.
6 
8  """
9  Function that modifies the pixel digitiser for the Phase 1 pixel detector.
10 
11  First argument is the pixelDigitizer object.
12  """
13  #use default switches, new analog respnse, d.k. 2/16
14  #digitizer.MissCalibrate = False
15  #digitizer.LorentzAngle_DB = False
16  #digitizer.killModules = False
17  #digitizer.useDB = False
18  #digitizer.DeadModules_DB = False
19  digitizer.NumPixelBarrel = cms.int32(4)
20  digitizer.NumPixelEndcap = cms.int32(3)
21  digitizer.ThresholdInElectrons_FPix = cms.double(2000.0)
22  digitizer.ThresholdInElectrons_BPix = cms.double(2000.0)
23  digitizer.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
24  digitizer.FPix_SignalResponse_p0 = cms.double(0.00171)
25  digitizer.FPix_SignalResponse_p1 = cms.double(0.711)
26  digitizer.FPix_SignalResponse_p2 = cms.double(203.)
27  digitizer.FPix_SignalResponse_p3 = cms.double(148.)
28  digitizer.BPix_SignalResponse_p0 = cms.double(0.00171)
29  digitizer.BPix_SignalResponse_p1 = cms.double(0.711)
30  digitizer.BPix_SignalResponse_p2 = cms.double(203.)
31  digitizer.BPix_SignalResponse_p3 = cms.double(148.)
32 
33 
34 SiPixelSimBlock = cms.PSet(
35  DoPixelAging = cms.bool(False),
36  ReadoutNoiseInElec = cms.double(350.0),
37  deltaProductionCut = cms.double(0.03),
38  RoutList = cms.vstring(
39  'TrackerHitsPixelBarrelLowTof',
40  'TrackerHitsPixelBarrelHighTof',
41  'TrackerHitsPixelEndcapLowTof',
42  'TrackerHitsPixelEndcapHighTof'),
43  OffsetSmearing = cms.double(0.0),
44  ThresholdInElectrons_FPix = cms.double(3000.0),
45  ThresholdInElectrons_BPix = cms.double(3500.0),
46  ThresholdInElectrons_BPix_L1 = cms.double(3500.0),
47  AddThresholdSmearing = cms.bool(True),
48  ThresholdSmearing_FPix = cms.double(210.0),
49  ThresholdSmearing_BPix = cms.double(245.0),
50  ThresholdSmearing_BPix_L1 = cms.double(245.0),
51  NoiseInElectrons = cms.double(175.0),
52  MissCalibrate = cms.bool(True),
53  FPix_SignalResponse_p0 = cms.double(0.0043),
54  FPix_SignalResponse_p1 = cms.double(1.31),
55  FPix_SignalResponse_p2 = cms.double(93.6),
56  FPix_SignalResponse_p3 = cms.double(134.6),
57  BPix_SignalResponse_p0 = cms.double(0.0035),
58  BPix_SignalResponse_p1 = cms.double(1.23),
59  BPix_SignalResponse_p2 = cms.double(97.4),
60  BPix_SignalResponse_p3 = cms.double(126.5),
61  ElectronsPerVcal = cms.double(65.5),
62  ElectronsPerVcal_Offset = cms.double(-414.0),
63  ElectronPerAdc = cms.double(135.0),
64  TofUpperCut = cms.double(12.5),
65  AdcFullScale = cms.int32(255),
66  AdcFullScaleStack = cms.int32(255),
67  FirstStackLayer = cms.int32(5),
68  TofLowerCut = cms.double(-12.5),
69  TanLorentzAnglePerTesla_FPix = cms.double(0.106),
70  TanLorentzAnglePerTesla_BPix = cms.double(0.106),
71  AddNoisyPixels = cms.bool(True),
72  Alpha2Order = cms.bool(True),
73  AddPixelInefficiency = cms.bool(True),
74  AddNoise = cms.bool(True),
75  ChargeVCALSmearing = cms.bool(True),
76  GainSmearing = cms.double(0.0),
77  PixGeometryType = cms.string('idealForDigi'),
78  useDB = cms.bool(False),
79  LorentzAngle_DB = cms.bool(True),
80  DeadModules_DB = cms.bool(True),
81  killModules = cms.bool(True),
82  NumPixelBarrel = cms.int32(3),
83  NumPixelEndcap = cms.int32(2),
84 ### DeadModules = cms.VPSet()
85 )
86 
87 #
88 # Apply the changes for the different Run 2 running scenarios
89 #
90 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
91 phase1Pixel.toModify( SiPixelSimBlock, func=_modifyPixelDigitizerForPhase1Pixel )
92 
93 # Threshold in electrons are the Official CRAFT09 numbers:
94 # FPix(smearing)/BPix(smearing) = 2480(160)/2730(200)
95 
96 #DEAD MODULES LIST: NEW LIST AFTER 2009 PIXEL REPAIRS
97 # https://twiki.cern.ch/twiki/bin/view/CMS/SiPixelQualityHistory
98 ######Barrel
99 #Bad Module: 302055940 errorType 2 BadRocs=ff00
100 #Bad Module: 302059800 errorType 0 BadRocs=ffff
101 #BmI_SEC3_LYR2_LDR5F_MOD3 -- 302121992, "TBM-A"
102 #####Forward
103 #Bad Module: 352453892 errorType 0 BadRocs=ffff
104 #BmO_DISK1_BLD9_PNL2 -- 344014340, 344014344, 344014348
105 #Barrel
106 #302187268, "none" (ROC 6)
107 
def _modifyPixelDigitizerForPhase1Pixel(digitizer)