test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelCPEGeneric_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 PixelCPEGenericESProducer = cms.ESProducer("PixelCPEGenericESProducer",
4 
5  ComponentName = cms.string('PixelCPEGeneric'),
6  Alpha2Order = cms.bool(True),
7  PixelErrorParametrization = cms.string('NOTcmsim'),
8 
9  # Allows cuts to be optimized
10  eff_charge_cut_lowX = cms.double(0.0),
11  eff_charge_cut_lowY = cms.double(0.0),
12  eff_charge_cut_highX = cms.double(1.0),
13  eff_charge_cut_highY = cms.double(1.0),
14  size_cutX = cms.double(3.0),
15  size_cutY = cms.double(3.0),
16 
17  # Edge cluster errors in microns (determined by looking at residual RMS)
18  EdgeClusterErrorX = cms.double( 50.0 ),
19  EdgeClusterErrorY = cms.double( 85.0 ),
20 
21  # ggiurgiu@jhu.edu
22  inflate_errors = cms.bool(False),
23  inflate_all_errors_no_trk_angle = cms.bool(False),
24 
25  # Can use errors predicted by the template code
26  # If UseErrorsFromTemplates is False, must also set
27  # TruncatePixelCharge, IrradiationBiasCorrection, DoCosmics and LoadTemplatesFromDB to be False
28  UseErrorsFromTemplates = cms.bool(True),
29 
30  # When set True this gives a slight improvement in resolution at no cost
31  TruncatePixelCharge = cms.bool(True),
32 
33  # Turn this ON later
34  IrradiationBiasCorrection = cms.bool(False),
35 
36  # When set to True we use templates with extended angular acceptance
37  DoCosmics = cms.bool(False),
38 
39  LoadTemplatesFromDB = cms.bool(True),
40 
41  # petar, for clusterProbability() from TTRHs
42  ClusterProbComputationFlag = cms.int32(0),
43 
44  # new parameters added in 1/14, dk
45  # LA defined by hand, FOR TESTING ONLY, not for production
46  # 0.0 means that the offset is taken from DB
47  #lAOffset = cms..double(0.0),
48  #lAWidthBPix = cms.double(0.0),
49  #lAWidthFPix = cms.double(0.0),
50 
51  # Flag to select the source of LA-Width
52  # Normal = True, use LA from DB
53  useLAWidthFromDB = cms.bool(True),
54  # if lAWith=0 and useLAWidthFromDB=false than width is calculated from lAOffset.
55  # Use the LA-Offsets from Alignment instead of our calibration
56  useLAAlignmentOffsets = cms.bool(False),
57 
58  #MagneticFieldRecord: e.g. "" or "ParabolicMF"
59  MagneticFieldRecord = cms.ESInputTag(""),
60 )
61 
62 # This customization will be removed once we get the templates for phase2 pixel
63 # FIXME::Is the Upgrade variable actually used?
64 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
65 phase2_tracker.toModify(PixelCPEGenericESProducer,
66  useLAWidthFromDB = False,
67  UseErrorsFromTemplates = False,
68  LoadTemplatesFromDB = False,
69  TruncatePixelCharge = False,
70  IrradiationBiasCorrection = False,
71  DoCosmics = False,
72  Upgrade = cms.bool(True)
73 )
74