Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:17

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 
0005 from L1Trigger.L1TMuonBarrel.simKBmtfDigis_cfi import bmtfKalmanTrackingSettings as settings
0006 
0007 eLoss = settings.eLoss[0]
0008 alpha = settings.aPhiB[0]
0009 alpha2 = settings.aPhiBNLO[0]
0010 
0011 
0012 
0013 dxy=[]
0014 deltaK=[]
0015 
0016 
0017 for addr in range(0,2048):
0018     Knew=addr*2-int(2*addr/(1+eLoss*addr))
0019     deltaK.append(str(abs(Knew)))
0020 
0021     d = int(alpha*addr/(1+alpha2*addr))
0022     dxy.append(str(abs(d)))
0023         
0024 
0025 
0026 
0027 
0028 print('ap_ufixed<12,12> eLossVertex[2048] = {'+','.join(deltaK)+'};')
0029 print('ap_ufixed<12,12> dxyVertex[2048] = {'+','.join(dxy)+'};')
0030 
0031 
0032