Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-03 00:42:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def customizePixelTracksForTriplets(process):
0004    
0005    from HLTrigger.Configuration.common import producers_by_type, esproducers_by_type
0006    names = ['CAHitNtupletAlpakaPhase1@alpaka','CAHitNtupletAlpakaPhase2@alpaka']
0007    
0008    for name in names:
0009       producers = producers_by_type(process, name)
0010       for producer in producers:
0011          producer.minHitsPerNtuplet = 3
0012 
0013          if name == 'CAHitNtupletAlpakaPhase1@alpaka':
0014           
0015             producer.avgHitsPerTrack    = 4.5      
0016             producer.avgCellsPerHit     = 27
0017             producer.avgCellsPerCell    = 0.071 
0018             producer.avgTracksPerCell   = 0.127 
0019             producer.maxNumberOfDoublets = str(512*1024) # this is actually low, should be ~630k, keeping the same for a fair comparison with master
0020             producer.maxNumberOfTuples   = str(32 * 1024) # this is on spot (µ+5*σ = 31.8k)
0021 
0022             producer.geometry.pairGraph = [  0, 1, 0, 4, 0,
0023                7, 1, 2, 1, 4,
0024                1, 7, 4, 5, 7,
0025                8, 2, 3, 2, 4,
0026                2, 7, 5, 6, 8,
0027                9, 0, 2, 1, 3,
0028                0, 5, 0, 8, 
0029                4, 6, 7, 9 ]
0030             producer.geometry.startingPairs = [i for i in range(8)] + [13, 14, 15, 16, 17, 18, 19]
0031             producer.geometry.phiCuts = [522, 730, 730, 522, 626,
0032                626, 522, 522, 626, 626,
0033                626, 522, 522, 522, 522,
0034                522, 522, 522, 522]
0035             producer.geometry.minZ = [-20., 0., -30., -22., 10., 
0036                -30., -70., -70., -22., 15., 
0037                -30, -70., -70., -20., -22., 
0038                0, -30., -70., -70.]
0039             producer.geometry.maxZ = [20., 30., 0., 22., 30., 
0040                -10., 70., 70., 22., 30., 
0041                -15., 70., 70., 20., 22., 
0042                30., 0., 70., 70.]
0043             producer.geometry.maxR = [20., 9., 9., 20., 7., 
0044                7., 5., 5., 20., 6., 
0045                6., 5., 5., 20., 20., 
0046                9., 9., 9., 9.]
0047                    
0048          elif name == 'CAHitNtupletAlpakaPhase2@alpaka':
0049 
0050             producer.avgHitsPerTrack    = 6.5      
0051             producer.avgCellsPerHit     = 6 # actually this is the same, quads has the same graph at the moment
0052             producer.avgCellsPerCell    = 0.151 
0053             producer.avgTracksPerCell   = 0.130 
0054             producer.maxNumberOfDoublets = str(5*512*1024) # could be lowered to 1.4M, keeping the same for a fair comparison with master
0055             producer.maxNumberOfTuples   = str(256 * 1024) # could be lowered to 120k, same as above
0056       
0057    return process
0058