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(3000.0)
24  digitizer.ThresholdInElectrons_BPix_L2 = cms.double(2600.0)
25  digitizer.FPix_SignalResponse_p0 = cms.double(0.00171)
26  digitizer.FPix_SignalResponse_p1 = cms.double(0.711)
27  digitizer.FPix_SignalResponse_p2 = cms.double(203.)
28  digitizer.FPix_SignalResponse_p3 = cms.double(148.)
29  digitizer.BPix_SignalResponse_p0 = cms.double(0.00171)
30  digitizer.BPix_SignalResponse_p1 = cms.double(0.711)
31  digitizer.BPix_SignalResponse_p2 = cms.double(203.)
32  digitizer.BPix_SignalResponse_p3 = cms.double(148.)
33  # gains and offsets are ints in the Clusterizer, so round to the same value
34  digitizer.ElectronsPerVcal = cms.double(47) # L2-4: 47 +- 4.7
35  digitizer.ElectronsPerVcal_L1 = cms.double(50) # L1: 49.6 +- 2.6
36  digitizer.ElectronsPerVcal_Offset = cms.double(-60) # L2-4: -60 +- 130
37  digitizer.ElectronsPerVcal_L1_Offset = cms.double(-670) # L1: -670 +- 220
38  digitizer.UseReweighting = cms.bool(True)
39 
40 
41 SiPixelSimBlock = cms.PSet(
42  KillBadFEDChannels = cms.bool(False),
43  UseReweighting = cms.bool(False),
44  PrintClusters = cms.bool(False),
45  PrintTemplates = cms.bool(False),
46  DoPixelAging = cms.bool(False),
47  ReadoutNoiseInElec = cms.double(350.0),
48  deltaProductionCut = cms.double(0.03),
49  RoutList = cms.vstring(
50  'TrackerHitsPixelBarrelLowTof',
51  'TrackerHitsPixelBarrelHighTof',
52  'TrackerHitsPixelEndcapLowTof',
53  'TrackerHitsPixelEndcapHighTof'),
54  OffsetSmearing = cms.double(0.0),
55  ThresholdInElectrons_FPix = cms.double(3000.0),
56  ThresholdInElectrons_BPix = cms.double(3500.0),
57  ThresholdInElectrons_BPix_L1 = cms.double(3500.0),
58  ThresholdInElectrons_BPix_L2 = cms.double(3500.0),
59  AddThresholdSmearing = cms.bool(True),
60  ThresholdSmearing_FPix = cms.double(210.0),
61  ThresholdSmearing_BPix = cms.double(245.0),
62  ThresholdSmearing_BPix_L1 = cms.double(245.0),
63  ThresholdSmearing_BPix_L2 = cms.double(245.0),
64  NoiseInElectrons = cms.double(175.0),
65  MissCalibrate = cms.bool(True),
66  FPix_SignalResponse_p0 = cms.double(0.0043),
67  FPix_SignalResponse_p1 = cms.double(1.31),
68  FPix_SignalResponse_p2 = cms.double(93.6),
69  FPix_SignalResponse_p3 = cms.double(134.6),
70  BPix_SignalResponse_p0 = cms.double(0.0035),
71  BPix_SignalResponse_p1 = cms.double(1.23),
72  BPix_SignalResponse_p2 = cms.double(97.4),
73  BPix_SignalResponse_p3 = cms.double(126.5),
74  ElectronsPerVcal = cms.double(65.5),
75  ElectronsPerVcal_L1 = cms.double(65.5),
76  ElectronsPerVcal_Offset = cms.double(-414.0),
77  ElectronsPerVcal_L1_Offset = cms.double(-414.0),
78  ElectronPerAdc = cms.double(135.0),
79  TofUpperCut = cms.double(12.5),
80  AdcFullScale = cms.int32(255),
81  TofLowerCut = cms.double(-12.5),
82  TanLorentzAnglePerTesla_FPix = cms.double(0.106),
83  TanLorentzAnglePerTesla_BPix = cms.double(0.106),
84  AddNoisyPixels = cms.bool(True),
85  Alpha2Order = cms.bool(True),
86  AddPixelInefficiency = cms.bool(True),
87  AddNoise = cms.bool(True),
88  ChargeVCALSmearing = cms.bool(True),
89  GainSmearing = cms.double(0.0),
90  PixGeometryType = cms.string('idealForDigi'),
91  useDB = cms.bool(False),
92  LorentzAngle_DB = cms.bool(True),
93  DeadModules_DB = cms.bool(True),
94  killModules = cms.bool(True),
95  NumPixelBarrel = cms.int32(3),
96  NumPixelEndcap = cms.int32(2),
97 ### DeadModules = cms.VPSet()
98 )
99 
100 #
101 # Apply the changes for the different Run 2 running scenarios
102 #
103 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
104 phase1Pixel.toModify( SiPixelSimBlock, func=_modifyPixelDigitizerForPhase1Pixel )
105 
106 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
107 premix_stage1.toModify(SiPixelSimBlock,
108  AddNoise = True,
109  AddNoisyPixels = False,
110  AddPixelInefficiency = False, #done in second step
111  KillBadFEDChannels = False, #done in second step
112 )
113 
114 # Threshold in electrons are the Official CRAFT09 numbers:
115 # FPix(smearing)/BPix(smearing) = 2480(160)/2730(200)
116 
117 #DEAD MODULES LIST: NEW LIST AFTER 2009 PIXEL REPAIRS
118 # https://twiki.cern.ch/twiki/bin/view/CMS/SiPixelQualityHistory
119 ######Barrel
120 #Bad Module: 302055940 errorType 2 BadRocs=ff00
121 #Bad Module: 302059800 errorType 0 BadRocs=ffff
122 #BmI_SEC3_LYR2_LDR5F_MOD3 -- 302121992, "TBM-A"
123 #####Forward
124 #Bad Module: 352453892 errorType 0 BadRocs=ffff
125 #BmO_DISK1_BLD9_PNL2 -- 344014340, 344014344, 344014348
126 #Barrel
127 #302187268, "none" (ROC 6)
128 
def _modifyPixelDigitizerForPhase1Pixel(digitizer)