{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/24402","repository_url":"https://api.github.com/repos/cms-sw/cmssw","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/24402/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/24402/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/24402/events","html_url":"https://github.com/cms-sw/cmssw/pull/24402","id":354825946,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNDk2Njk2","number":24402,"title":"CLCTs are offset by 1 BX in matching","user":{"login":"dildick","id":4134786,"node_id":"MDQ6VXNlcjQxMzQ3ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/4134786?v=4","gravatar_id":"","url":"https://api.github.com/users/dildick","html_url":"https://github.com/dildick","followers_url":"https://api.github.com/users/dildick/followers","following_url":"https://api.github.com/users/dildick/following{/other_user}","gists_url":"https://api.github.com/users/dildick/gists{/gist_id}","starred_url":"https://api.github.com/users/dildick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dildick/subscriptions","organizations_url":"https://api.github.com/users/dildick/orgs","repos_url":"https://api.github.com/users/dildick/repos","events_url":"https://api.github.com/users/dildick/events{/privacy}","received_events_url":"https://api.github.com/users/dildick/received_events","type":"User","site_admin":false},"labels":[{"id":673935047,"node_id":"MDU6TGFiZWw2NzM5MzUwNDc=","url":"https://api.github.com/repos/cms-sw/cmssw/labels/code-checks-approved","name":"code-checks-approved","color":"2cbe4e","default":false},{"id":88653795,"node_id":"MDU6TGFiZWw4ODY1Mzc5NQ==","url":"https://api.github.com/repos/cms-sw/cmssw/labels/comparison-pending","name":"comparison-pending","color":"fbca04","default":false},{"id":52820587,"node_id":"MDU6TGFiZWw1MjgyMDU4Nw==","url":"https://api.github.com/repos/cms-sw/cmssw/labels/l1-pending","name":"l1-pending","color":"fbca04","default":false},{"id":56953091,"node_id":"MDU6TGFiZWw1Njk1MzA5MQ==","url":"https://api.github.com/repos/cms-sw/cmssw/labels/orp-pending","name":"orp-pending","color":"fbca04","default":false},{"id":53167770,"node_id":"MDU6TGFiZWw1MzE2Nzc3MA==","url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-signatures","name":"pending-signatures","color":"ff8000","default":false},{"id":56131152,"node_id":"MDU6TGFiZWw1NjEzMTE1Mg==","url":"https://api.github.com/repos/cms-sw/cmssw/labels/tests-pending","name":"tests-pending","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/77","html_url":"https://github.com/cms-sw/cmssw/milestone/77","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/77/labels","id":3502981,"node_id":"MDk6TWlsZXN0b25lMzUwMjk4MQ==","number":77,"title":"CMSSW_10_3_X","description":null,"creator":{"login":"smuzaffar","id":4115138,"node_id":"MDQ6VXNlcjQxMTUxMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/4115138?v=4","gravatar_id":"","url":"https://api.github.com/users/smuzaffar","html_url":"https://github.com/smuzaffar","followers_url":"https://api.github.com/users/smuzaffar/followers","following_url":"https://api.github.com/users/smuzaffar/following{/other_user}","gists_url":"https://api.github.com/users/smuzaffar/gists{/gist_id}","starred_url":"https://api.github.com/users/smuzaffar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smuzaffar/subscriptions","organizations_url":"https://api.github.com/users/smuzaffar/orgs","repos_url":"https://api.github.com/users/smuzaffar/repos","events_url":"https://api.github.com/users/smuzaffar/events{/privacy}","received_events_url":"https://api.github.com/users/smuzaffar/received_events","type":"User","site_admin":false},"open_issues":43,"closed_issues":457,"state":"open","created_at":"2018-07-17T14:14:12Z","updated_at":"2018-08-28T17:49:40Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-08-28T17:16:28Z","updated_at":"2018-08-28T18:04:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/24402","html_url":"https://github.com/cms-sw/cmssw/pull/24402","diff_url":"https://github.com/cms-sw/cmssw/pull/24402.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/24402.patch"},"body":"Recent data vs emulator studies using 2018C data (in particular data from the ME+1/1/9 OTMB) have shown that the CLCT BX are not shifted in the ALCT-CLCT matching algorithms. They are shifted when the CLCTs are written to EDM ROOT files however. Because the ALCT-CLCT matching windows are quite wide (7BX) in the current CSC local trigger firmware and emulator, it has a negligible effect. However, it does start playing a role when the ALCT-CLCT matching window is reduced to 5BX and ultimately 3BX. That is foreseen in the \"SLHC\" version of the CSC local trigger.\r\n\r\nIn addition, the matching algorithm type was changed from CLCT-centric to ALCT-centric. This as always been the case in firmware. \r\n\r\nThis PR addresses these issues.\r\n\r\n@tahuang1991 @lpernie @ptcox \r\n"},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/416684505","html_url":"https://github.com/cms-sw/cmssw/pull/24402#issuecomment-416684505","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/24402","id":416684505,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjY4NDUwNQ==","user":{"login":"tahuang1991","id":5759902,"node_id":"MDQ6VXNlcjU3NTk5MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/5759902?v=4","gravatar_id":"","url":"https://api.github.com/users/tahuang1991","html_url":"https://github.com/tahuang1991","followers_url":"https://api.github.com/users/tahuang1991/followers","following_url":"https://api.github.com/users/tahuang1991/following{/other_user}","gists_url":"https://api.github.com/users/tahuang1991/gists{/gist_id}","starred_url":"https://api.github.com/users/tahuang1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahuang1991/subscriptions","organizations_url":"https://api.github.com/users/tahuang1991/orgs","repos_url":"https://api.github.com/users/tahuang1991/repos","events_url":"https://api.github.com/users/tahuang1991/events{/privacy}","received_events_url":"https://api.github.com/users/tahuang1991/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T18:04:05Z","updated_at":"2018-08-28T18:04:05Z","author_association":"CONTRIBUTOR","body":"around 2009, Several similar lines were added to the ALCT-CLCT matching part in CSC emulator \r\n\r\nif (!isSLHC) bx_alct_stop += match_trig_window_size%2;\r\n\r\nWhat it did  is extend the ALCT-CLCT matching window by a half of window size and at that time, because there is 1BX offset between wire digi timing and comparator digi timing from data and it results in 1BX offset in re-emulated ALCTs and CLCTs.  I guess, as a temporary solution to this offset saw by ALCT-CLCt matching in CSC emulator, the matching window is extended in this \"ulgy\" way. And now when we turned on isSLCH flag, we found that the window was not extended and the issue was uncovered. What we really should do about it is to add ALCT-CLCT bx offset also in the matching part in CSC emulator.  In our previous changes about timing shift, we only shift the BX of ALCT and CLCT in read-out part, not in matching part.\r\n\r\nAs for another change, ALCT-centric is enabled because in (O)TMB fw, it is always the case.  But it may not have any visible effect on offline re-emulation and MC.  It is quite important for (O)TMB fw to use ALCT-centric because ALCT has better timing and LCT timing is referred to ALCT timing, in other word, LCT is always built and sent out with fixed latency relative to ALCT timing"}}
{"actor":{"display_login":"tahuang1991"}}