Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-06-20 01:52:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def Phase2OTValidateTrackingRecHit(*args, **kwargs):
0004   mod = cms.EDProducer('Phase2OTValidateTrackingRecHit',
0005     Delta_X_Pixel = cms.PSet(
0006       name = cms.string('Delta_X_Pixel'),
0007       title = cms.string('#Delta X macro-pixel sensor;Cluster resolution X coordinate [#mum]'),
0008       switch = cms.bool(True),
0009       xmax = cms.double(250),
0010       xmin = cms.double(-250),
0011       NxBins = cms.int32(100)
0012     ),
0013     Delta_Y_Pixel = cms.PSet(
0014       name = cms.string('Delta_Y_Pixel'),
0015       title = cms.string('#Delta Y macro-pixel sensor;Cluster resolution Y coordinate [#mum]'),
0016       switch = cms.bool(True),
0017       xmin = cms.double(-1500),
0018       xmax = cms.double(1500),
0019       NxBins = cms.int32(100)
0020     ),
0021     err_X_Pixel = cms.PSet(
0022       name = cms.string('err_X_Pixel'),
0023       title = cms.string('error X macro-pixel sensor;Cluster error X coordinate [#mum]'),
0024       switch = cms.bool(True),
0025       xmax = cms.double(0),
0026       xmin = cms.double(100),
0027       NxBins = cms.int32(100)
0028     ),
0029     err_Y_Pixel = cms.PSet(
0030       name = cms.string('err_Y_Pixel'),
0031       title = cms.string('error Y macro-pixel sensor;Cluster error Y coordinate [#mum]'),
0032       switch = cms.bool(True),
0033       xmin = cms.double(0),
0034       xmax = cms.double(500),
0035       NxBins = cms.int32(100)
0036     ),
0037     Delta_X_Pixel_Primary = cms.PSet(
0038       name = cms.string('Delta_X_Pixel_Primary'),
0039       title = cms.string('#Delta X macro-pixel sensor;cluster resolution X coordinate [#mum]'),
0040       switch = cms.bool(True),
0041       xmin = cms.double(-250),
0042       xmax = cms.double(250),
0043       NxBins = cms.int32(100)
0044     ),
0045     Delta_Y_Pixel_Primary = cms.PSet(
0046       name = cms.string('Delta_Y_Pixel_Primary'),
0047       title = cms.string('#Delta Y macro-pixel sensor;cluster resolution Y coordinate [#mum]'),
0048       switch = cms.bool(True),
0049       xmin = cms.double(-500),
0050       xmax = cms.double(500),
0051       NxBins = cms.int32(100)
0052     ),
0053     Delta_X_vs_eta_Pixel = cms.PSet(
0054       name = cms.string('Delta_X_vs_Eta_Pixel'),
0055       title = cms.string(';|#eta|;#Delta x [#mum]'),
0056       NyBins = cms.int32(250),
0057       ymin = cms.double(-250),
0058       ymax = cms.double(250),
0059       NxBins = cms.int32(41),
0060       switch = cms.bool(True),
0061       xmax = cms.double(4.1),
0062       xmin = cms.double(0)
0063     ),
0064     Delta_Y_vs_eta_Pixel = cms.PSet(
0065       name = cms.string('Delta_Y_vs_Eta_Pixel'),
0066       title = cms.string(';|#eta|;#Delta y [#mum]'),
0067       NyBins = cms.int32(300),
0068       ymin = cms.double(-1500),
0069       ymax = cms.double(1500),
0070       NxBins = cms.int32(41),
0071       switch = cms.bool(True),
0072       xmax = cms.double(4.1),
0073       xmin = cms.double(0)
0074     ),
0075     Delta_X_vs_phi_Pixel = cms.PSet(
0076       name = cms.string('Delta_X_vs_Phi_Pixel'),
0077       title = cms.string(';#phi;#Delta x [#mum]'),
0078       NyBins = cms.int32(250),
0079       ymin = cms.double(-250),
0080       ymax = cms.double(250),
0081       NxBins = cms.int32(36),
0082       switch = cms.bool(True),
0083       xmax = cms.double(3.1415926535897931),
0084       xmin = cms.double(-3.1415926535897931)
0085     ),
0086     Delta_Y_vs_phi_Pixel = cms.PSet(
0087       name = cms.string('Delta_Y_vs_Phi_Pixel'),
0088       title = cms.string(';#phi;#Delta y [#mum]'),
0089       NyBins = cms.int32(300),
0090       ymin = cms.double(-1500),
0091       ymax = cms.double(1500),
0092       NxBins = cms.int32(35),
0093       switch = cms.bool(True),
0094       xmax = cms.double(3.1415926535897931),
0095       xmin = cms.double(-3.1415926535897931)
0096     ),
0097     err_X_vs_eta_Pixel = cms.PSet(
0098       name = cms.string('err_X_vs_Eta_Pixel'),
0099       title = cms.string(';|#eta|;local error x [#mum]'),
0100       NyBins = cms.int32(100),
0101       ymin = cms.double(0),
0102       ymax = cms.double(100),
0103       NxBins = cms.int32(41),
0104       switch = cms.bool(True),
0105       xmax = cms.double(4.1),
0106       xmin = cms.double(0)
0107     ),
0108     err_Y_vs_eta_Pixel = cms.PSet(
0109       name = cms.string('err_Y_vs_Eta_Pixel'),
0110       title = cms.string(';|#eta|;local error y [#mum]'),
0111       NyBins = cms.int32(100),
0112       ymin = cms.double(0),
0113       ymax = cms.double(500),
0114       NxBins = cms.int32(41),
0115       switch = cms.bool(True),
0116       xmax = cms.double(4.1),
0117       xmin = cms.double(0)
0118     ),
0119     err_X_vs_phi_Pixel = cms.PSet(
0120       name = cms.string('err_X_vs_Phi_Pixel'),
0121       title = cms.string(';#phi;local error x [#mum]'),
0122       NyBins = cms.int32(100),
0123       ymin = cms.double(0),
0124       ymax = cms.double(100),
0125       NxBins = cms.int32(36),
0126       switch = cms.bool(True),
0127       xmax = cms.double(3.1415926535897931),
0128       xmin = cms.double(-3.1415926535897931)
0129     ),
0130     err_Y_vs_phi_Pixel = cms.PSet(
0131       name = cms.string('err_Y_vs_Phi_Pixel'),
0132       title = cms.string(';#phi;local error y [#mum]'),
0133       NyBins = cms.int32(100),
0134       ymin = cms.double(0),
0135       ymax = cms.double(500),
0136       NxBins = cms.int32(35),
0137       switch = cms.bool(True),
0138       xmax = cms.double(3.1415926535897931),
0139       xmin = cms.double(-3.1415926535897931)
0140     ),
0141     Pull_X_Pixel = cms.PSet(
0142       name = cms.string('Pull_X_Pixel'),
0143       title = cms.string('Pull X macro-pixel sensor;pull x;'),
0144       xmin = cms.double(-4),
0145       switch = cms.bool(True),
0146       xmax = cms.double(4),
0147       NxBins = cms.int32(100)
0148     ),
0149     Pull_Y_Pixel = cms.PSet(
0150       name = cms.string('Pull_Y_Pixel'),
0151       title = cms.string('Pull Y macro-pixel sensor;pull y;'),
0152       xmin = cms.double(-4),
0153       switch = cms.bool(True),
0154       xmax = cms.double(4),
0155       NxBins = cms.int32(100)
0156     ),
0157     Pull_X_Pixel_Primary = cms.PSet(
0158       name = cms.string('Pull_X_Pixel_Primary'),
0159       title = cms.string('Pull X macro-pixel sensor;pull x;'),
0160       xmin = cms.double(-4),
0161       switch = cms.bool(True),
0162       xmax = cms.double(4),
0163       NxBins = cms.int32(100)
0164     ),
0165     Pull_Y_Pixel_Primary = cms.PSet(
0166       name = cms.string('Pull_Y_Pixel_Primary'),
0167       title = cms.string('Pull Y macro-pixel sensor;pull y;'),
0168       xmin = cms.double(-4),
0169       switch = cms.bool(True),
0170       xmax = cms.double(4),
0171       NxBins = cms.int32(100)
0172     ),
0173     Pull_X_vs_eta_Pixel = cms.PSet(
0174       name = cms.string('Pull_X_vs_Eta'),
0175       title = cms.string(';#eta;pull x'),
0176       ymax = cms.double(4),
0177       NxBins = cms.int32(82),
0178       switch = cms.bool(True),
0179       xmax = cms.double(4.1),
0180       xmin = cms.double(-4.1),
0181       ymin = cms.double(-4)
0182     ),
0183     Pull_Y_vs_eta_Pixel = cms.PSet(
0184       name = cms.string('Pull_Y_vs_Eta'),
0185       title = cms.string(';#eta;pull y'),
0186       ymax = cms.double(4),
0187       NxBins = cms.int32(82),
0188       switch = cms.bool(True),
0189       xmax = cms.double(4.1),
0190       xmin = cms.double(-4.1),
0191       ymin = cms.double(-4)
0192     ),
0193     nRecHits_Pixel_primary = cms.PSet(
0194       name = cms.string('Number_RecHits_matched_PrimarySimTrack'),
0195       title = cms.string('Number of RecHits matched to primary SimTrack;;'),
0196       xmin = cms.double(0),
0197       switch = cms.bool(True),
0198       xmax = cms.double(10000),
0199       NxBins = cms.int32(100)
0200     ),
0201     Delta_X_Strip = cms.PSet(
0202       name = cms.string('Delta_X_Strip'),
0203       title = cms.string('#Delta X strip sensor;Cluster resolution X coordinate [#mum]'),
0204       switch = cms.bool(True),
0205       xmin = cms.double(-250),
0206       xmax = cms.double(250),
0207       NxBins = cms.int32(100)
0208     ),
0209     Delta_Y_Strip = cms.PSet(
0210       name = cms.string('Delta_Y_Strip'),
0211       title = cms.string('#Delta Y strip sensor;Cluster resolution Y coordinate [cm]'),
0212       xmin = cms.double(-5),
0213       switch = cms.bool(True),
0214       xmax = cms.double(5),
0215       NxBins = cms.int32(100)
0216     ),
0217     err_X_Strip = cms.PSet(
0218       name = cms.string('err_X_Strip'),
0219       title = cms.string('local error X strip sensor;Cluster error X coordinate [#mum]'),
0220       switch = cms.bool(True),
0221       xmin = cms.double(0),
0222       xmax = cms.double(100),
0223       NxBins = cms.int32(100)
0224     ),
0225     err_Y_Strip = cms.PSet(
0226       name = cms.string('err_Y_Strip'),
0227       title = cms.string('local error Y strip sensor;Cluster error Y coordinate [cm]'),
0228       xmin = cms.double(0),
0229       switch = cms.bool(True),
0230       xmax = cms.double(10),
0231       NxBins = cms.int32(100)
0232     ),
0233     Delta_X_Strip_Primary = cms.PSet(
0234       name = cms.string('Delta_X_Strip_Primary'),
0235       title = cms.string('#Delta X strip sensor;Cluster resolution X coordinate [#mum]'),
0236       switch = cms.bool(True),
0237       xmin = cms.double(-250),
0238       xmax = cms.double(250),
0239       NxBins = cms.int32(100)
0240     ),
0241     Delta_Y_Strip_Primary = cms.PSet(
0242       name = cms.string('Delta_Y_Strip_Primary'),
0243       title = cms.string('#Delta Y strip sensor;Cluster resolution Y coordinate [cm]'),
0244       xmin = cms.double(-5),
0245       switch = cms.bool(True),
0246       xmax = cms.double(5),
0247       NxBins = cms.int32(100)
0248     ),
0249     Delta_X_vs_eta_Strip = cms.PSet(
0250       name = cms.string('Delta_X_vs_Eta_Strip'),
0251       title = cms.string(';|#eta|;#Delta x [#mum]'),
0252       NyBins = cms.int32(250),
0253       ymin = cms.double(-250),
0254       ymax = cms.double(250),
0255       NxBins = cms.int32(41),
0256       switch = cms.bool(True),
0257       xmax = cms.double(4.1),
0258       xmin = cms.double(0)
0259     ),
0260     Delta_Y_vs_eta_Strip = cms.PSet(
0261       name = cms.string('Delta_Y_vs_Eta_Strip'),
0262       title = cms.string(';|#eta|;#Delta y [cm]'),
0263       NyBins = cms.int32(100),
0264       ymin = cms.double(-5),
0265       ymax = cms.double(5),
0266       NxBins = cms.int32(41),
0267       switch = cms.bool(True),
0268       xmax = cms.double(4.1),
0269       xmin = cms.double(0)
0270     ),
0271     Delta_X_vs_phi_Strip = cms.PSet(
0272       name = cms.string('Delta_X_vs_Phi_Strip'),
0273       title = cms.string(';#phi;#Delta x [#mum]'),
0274       NyBins = cms.int32(250),
0275       ymin = cms.double(-250),
0276       ymax = cms.double(250),
0277       NxBins = cms.int32(36),
0278       switch = cms.bool(True),
0279       xmax = cms.double(3.1415926535897931),
0280       xmin = cms.double(-3.1415926535897931)
0281     ),
0282     Delta_Y_vs_phi_Strip = cms.PSet(
0283       name = cms.string('Delta_Y_vs_Phi_Strip'),
0284       title = cms.string(';#phi;#Delta y [cm]'),
0285       NyBins = cms.int32(100),
0286       ymin = cms.double(-5),
0287       ymax = cms.double(5),
0288       NxBins = cms.int32(36),
0289       switch = cms.bool(True),
0290       xmax = cms.double(3.1415926535897931),
0291       xmin = cms.double(-3.1415926535897931)
0292     ),
0293     err_X_vs_eta_Strip = cms.PSet(
0294       name = cms.string('err_X_vs_Eta_Strip'),
0295       title = cms.string(';|#eta|;local error x [#mum]'),
0296       NyBins = cms.int32(100),
0297       ymin = cms.double(0),
0298       ymax = cms.double(100),
0299       NxBins = cms.int32(41),
0300       switch = cms.bool(True),
0301       xmax = cms.double(4.1),
0302       xmin = cms.double(0)
0303     ),
0304     err_Y_vs_eta_Strip = cms.PSet(
0305       name = cms.string('err_Y_vs_Eta_Strip'),
0306       title = cms.string(';|#eta|;local error y [cm]'),
0307       NyBins = cms.int32(100),
0308       ymin = cms.double(0),
0309       ymax = cms.double(10),
0310       NxBins = cms.int32(41),
0311       switch = cms.bool(True),
0312       xmax = cms.double(4.1),
0313       xmin = cms.double(0)
0314     ),
0315     err_X_vs_phi_Strip = cms.PSet(
0316       name = cms.string('err_X_vs_Phi_Strip'),
0317       title = cms.string(';#phi;local error x [#mum]'),
0318       NyBins = cms.int32(100),
0319       ymin = cms.double(0),
0320       ymax = cms.double(100),
0321       NxBins = cms.int32(36),
0322       switch = cms.bool(True),
0323       xmax = cms.double(3.1415926535897931),
0324       xmin = cms.double(-3.1415926535897931)
0325     ),
0326     err_Y_vs_phi_Strip = cms.PSet(
0327       name = cms.string('err_Y_vs_Phi_Strip'),
0328       title = cms.string(';#phi;local error y [cm]'),
0329       NyBins = cms.int32(100),
0330       ymin = cms.double(0),
0331       ymax = cms.double(10),
0332       NxBins = cms.int32(36),
0333       switch = cms.bool(True),
0334       xmax = cms.double(3.1415926535897931),
0335       xmin = cms.double(-3.1415926535897931)
0336     ),
0337     Pull_X_Strip = cms.PSet(
0338       name = cms.string('Pull_X_Strip'),
0339       title = cms.string('Pull X strip sensor;pull x;'),
0340       xmin = cms.double(-4),
0341       switch = cms.bool(True),
0342       xmax = cms.double(4),
0343       NxBins = cms.int32(100)
0344     ),
0345     Pull_Y_Strip = cms.PSet(
0346       name = cms.string('Pull_Y_Strip'),
0347       title = cms.string('Pull Y strip sensor;pull y;'),
0348       xmin = cms.double(-4),
0349       switch = cms.bool(True),
0350       xmax = cms.double(4),
0351       NxBins = cms.int32(100)
0352     ),
0353     Pull_X_Strip_Primary = cms.PSet(
0354       name = cms.string('Pull_X_Strip_Primary'),
0355       title = cms.string('Pull X strip sensor;pull x;'),
0356       xmin = cms.double(-4),
0357       switch = cms.bool(True),
0358       xmax = cms.double(4),
0359       NxBins = cms.int32(100)
0360     ),
0361     Pull_Y_Strip_Primary = cms.PSet(
0362       name = cms.string('Pull_Y_Strip_Primary'),
0363       title = cms.string('Pull Y strip sensor;pull y;'),
0364       xmin = cms.double(-4),
0365       switch = cms.bool(True),
0366       xmax = cms.double(4),
0367       NxBins = cms.int32(100)
0368     ),
0369     Pull_X_vs_eta_Strip = cms.PSet(
0370       name = cms.string('Pull_X_vs_Eta_Strip'),
0371       title = cms.string(';#eta;pull x'),
0372       ymax = cms.double(4),
0373       NxBins = cms.int32(82),
0374       switch = cms.bool(True),
0375       xmax = cms.double(4.1),
0376       xmin = cms.double(-4.1),
0377       ymin = cms.double(-4)
0378     ),
0379     Pull_Y_vs_eta_Strip = cms.PSet(
0380       name = cms.string('Pull_Y_vs_Eta_Strip'),
0381       title = cms.string(';#eta;pull y'),
0382       ymax = cms.double(4),
0383       NxBins = cms.int32(82),
0384       switch = cms.bool(True),
0385       xmax = cms.double(4.1),
0386       xmin = cms.double(-4.1),
0387       ymin = cms.double(-4)
0388     ),
0389     nRecHits_Strip_primary = cms.PSet(
0390       name = cms.string('Number_RecHits_matched_PrimarySimTrack'),
0391       title = cms.string('Number of RecHits matched to primary SimTrack;;'),
0392       xmin = cms.double(0),
0393       switch = cms.bool(True),
0394       xmax = cms.double(10000),
0395       NxBins = cms.int32(100)
0396     ),
0397     SimVertexSource = cms.InputTag('g4SimHits'),
0398     associatePixel = cms.bool(False),
0399     associateHitbySimTrack = cms.bool(True),
0400     Verbosity = cms.bool(False),
0401     associateStrip = cms.bool(True),
0402     phase2TrackerSimLinkSrc = cms.InputTag('simSiPixelDigis', 'Tracker'),
0403     associateRecoTracks = cms.bool(False),
0404     pixelSimLinkSrc = cms.InputTag('simSiPixelDigis', 'Pixel'),
0405     usePhase2Tracker = cms.bool(True),
0406     rechitsSrc = cms.InputTag('siPhase2RecHits'),
0407     simTracksSrc = cms.InputTag('g4SimHits'),
0408     SimTrackMinPt = cms.double(2),
0409     PSimHitSource = cms.VInputTag(
0410       'g4SimHits:TrackerHitsTIBLowTof',
0411       'g4SimHits:TrackerHitsTIBHighTof',
0412       'g4SimHits:TrackerHitsTIDLowTof',
0413       'g4SimHits:TrackerHitsTIDHighTof',
0414       'g4SimHits:TrackerHitsTOBLowTof',
0415       'g4SimHits:TrackerHitsTOBHighTof',
0416       'g4SimHits:TrackerHitsTECLowTof',
0417       'g4SimHits:TrackerHitsTECHighTof',
0418       'g4SimHits:TrackerHitsPixelBarrelLowTof',
0419       'g4SimHits:TrackerHitsPixelBarrelHighTof',
0420       'g4SimHits:TrackerHitsPixelEndcapLowTof',
0421       'g4SimHits:TrackerHitsPixelEndcapHighTof'
0422     ),
0423     ROUList = cms.vstring(
0424       'TrackerHitsPixelBarrelLowTof',
0425       'TrackerHitsPixelBarrelHighTof',
0426       'TrackerHitsTIBLowTof',
0427       'TrackerHitsTIBHighTof',
0428       'TrackerHitsTIDLowTof',
0429       'TrackerHitsTIDHighTof',
0430       'TrackerHitsTOBLowTof',
0431       'TrackerHitsTOBHighTof',
0432       'TrackerHitsPixelEndcapLowTof',
0433       'TrackerHitsPixelEndcapHighTof',
0434       'TrackerHitsTECLowTof',
0435       'TrackerHitsTECHighTof'
0436     ),
0437     tracksSrc = cms.InputTag('generalTracks'),
0438     TopFolderName = cms.string('TrackerPhase2OTTrackingRecHitV'),
0439     mightGet = cms.optional.untracked.vstring
0440   )
0441   for a in args:
0442     mod.update_(a)
0443   mod.update_(kwargs)
0444   return mod