CMS 3D CMS Logo

l1tVertexProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 l1tVertexProducer = cms.EDProducer('VertexProducer',
4  l1TracksInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelected"),
5 
6  l1VertexCollectionName = cms.string("L1Vertices"), #Emulation postfix is appended when fastHistoEmulation is chosen as the algorithm
7 
8  # === Vertex Reconstruction configuration
9  VertexReconstruction = cms.PSet(
10  # Vertex Reconstruction Algorithm
11  Algorithm = cms.string("fastHisto"),
12  # Vertex distance [cm]
13  VertexDistance = cms.double(.15),
14  # Assumed Vertex Resolution [cm]
15  VertexResolution = cms.double(.10),
16  # Distance Type for agglomerative algorithm (0: MaxDistance, 1: MinDistance, 2: MeanDistance, 3: CentralDistance)
17  DistanceType = cms.uint32(0),
18  # Minimum number of tracks to accept vertex
19  MinTracks = cms.uint32(2),
20  # Compute the z0 position of the vertex with a mean weighted with track momenta
21  # 0 = unweighted
22  # 1 = pT weighted
23  # 2 = pT^2 weighted
24  WeightedMean = cms.uint32(1),
25  # Chi2 cut for the Adaptive Vertex Reconstruction Algorithm
26  AVR_chi2cut = cms.double(5.),
27  # Do track quality cuts in emulation algorithms
28  EM_DoQualityCuts = cms.bool(False),
29  # Track-stubs Pt compatibility cut
30  FH_DoPtComp = cms.bool(True),
31  # chi2dof < 5 for tracks with Pt > 10
32  FH_DoTightChi2 = cms.bool(False),
33  # fastHisto algorithm histogram parameters (min,max,width) [cm]
34  # TDR settings: [-14.95, 15.0, 0.1]
35  # L1TkPrimaryVertexProducer: [-30.0, 30.0, 0.09983361065]
36  # HLS Firmware: [-14.4, 14.4, 0.4]
37  # Track word limits (128 binns): [-20.46912512, 20.46912512, 0.31983008]
38  # Track word limits (256 binns): [-20.46912512, 20.46912512, 0.15991504]
39  FH_HistogramParameters = cms.vdouble(-20.46912512, 20.46912512, 0.15991504),
40  # The number of vertixes to return (i.e. N windows with the highest combined pT)
41  FH_NVtx = cms.uint32(1),
42  # fastHisto algorithm assumed vertex half-width [cm]
43  FH_VertexWidth = cms.double(.15),
44  # Window size of the sliding window
45  FH_WindowSize = cms.uint32(3),
46  # Kmeans number of iterations
47  KmeansIterations = cms.uint32(10),
48  # Kmeans number of clusters
49  KmeansNumClusters = cms.uint32(18),
50  # DBSCAN pt threshold
51  DBSCANPtThreshold = cms.double(4.),
52  # DBSCAN min density tracks
53  DBSCANMinDensityTracks = cms.uint32(2),
54  # Minimum pt of tracks used to create vertex [GeV]
55  VxMinTrackPt = cms.double(2.0),
56  # Maximum pt of tracks used to create vertex [GeV]
57  VxMaxTrackPt = cms.double(127.0),
58  # When the track pt > VxMaxTrackPt, how should the tracks be considered
59  # -1 = tracks are valid
60  # 0 = tracks are mismeasured and ignored/truncated
61  # 1 = tracks are mismeasured and saturate at VxMaxTrackPt
62  # Option '0' was used for the TDR, but '1' is used for the firmware
63  VxMaxTrackPtBehavior = cms.int32(1),
64  # Maximum chi2 of tracks used to create vertex
65  VxMaxTrackChi2 = cms.double(100.),
66  # Minimum number of stubs associated to a track
67  VxMinNStub = cms.uint32(4),
68  # Minimum number of stubs in PS modules associated to a track
69  VxMinNStubPS = cms.uint32(3),
70  # Track weight NN graph
71  TrackWeightGraph = cms.FileInPath("L1Trigger/VertexFinder/data/NNVtx_WeightModelGraph.pb"),
72  # Pattern recognition NN graph
73  PatternRecGraph = cms.FileInPath("L1Trigger/VertexFinder/data/NNVtx_PatternModelGraph.pb"),
74  ),
75  # Debug printout
76  debug = cms.uint32(0)
77 )
78 
79 l1tVertexFinder = l1tVertexProducer.clone()
80 
81 l1tVertexFinderEmulator = l1tVertexProducer.clone()
82 l1tVertexFinderEmulator.VertexReconstruction.Algorithm = cms.string("fastHistoEmulation")
83 l1tVertexFinderEmulator.l1TracksInputTag = cms.InputTag("l1tTrackSelectionProducer", "Level1TTTracksSelectedEmulation")