cms-L1TK / cmssw

Fork of CMSSW where improvements to L1 tracking code are developed.
http://cms-sw.github.io/
Apache License 2.0
4 stars 5 forks source link

DTC phi range hard-wired constants removed #140

Closed tomalin closed 2 years ago

tomalin commented 2 years ago

This eliminates the array of hard-wired constants from TrackletConfigBuilder that specified the phi ranges of modules read by each DTC. Instead these constants are determined at start of run from the CMS geometry DB. This is done by new function setDTCphirange().

Two additional functions are added, which are only needed to support stand-alone emulation, since it can't access the DB. writeDTCphirange() can optionally, when running within CMSSW, write the calculated DTC phi ranges to file dtcphirange.txt ; and setDTCphirange() can, when running stand-alone, read in dtcphirange.txt to avoid needing the DB.

The pragma CMSSW_GIT_HASH is used to switch between these depending on whether running standalone or not.

In addition, the calculation of the DTC phi ranges is now correct in the tilted barrel modules. Though this doesn't change the wiring map.

The file dtcphiranges.txt has been added to https://github.com/cms-L1TK/L1Trigger-TrackFindingTracklet .