Skip to content

Commit 858479a

Browse files
authored
Merge pull request #47474 from zhenbinwu/tpsupdatePR2_14
Phase 2 GMT Update of TPS algo
2 parents 28b9451 + 1e8fc1e commit 858479a

File tree

5 files changed

+1074
-915
lines changed

5 files changed

+1074
-915
lines changed

DataFormats/L1TMuonPhase2/interface/Constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace Phase2L1GMT {
4444
//Track Muon Match
4545
const int BITSSIGMAETA = 4;
4646
const int BITSSIGMACOORD = 4;
47-
const int BITSPROPCOORD = 9;
47+
const int BITSPROPCOORD = 6; //lowered this to make room for another prop coefficient
4848
const int BITSPROPSIGMACOORD_A = 6;
4949
const int BITSPROPSIGMACOORD_B = 6;
5050
const int BITSPROPSIGMAETA_A = 5;

L1Trigger/Phase2L1GMT/interface/TPSAlgorithm.h

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,30 @@
1212
#include "L1Trigger/Phase2L1GMT/interface/ConvertedTTTrack.h"
1313
#include "L1Trigger/Phase2L1GMT/interface/PreTrackMatchedMuon.h"
1414
#include "L1Trigger/Phase2L1GMT/interface/TPSLUTs.h"
15-
#include <fstream>
1615
#include <iostream>
1716

1817
namespace Phase2L1GMT {
1918

20-
const unsigned int PHIDIVIDER = 1 << (BITSPHI - BITSSTUBCOORD);
19+
const unsigned int PHISHIFT = BITSPHI - BITSSTUBCOORD;
2120
const unsigned int ETADIVIDER = 1 << (BITSETA - BITSSTUBETA);
21+
const unsigned int BITSHIFTPROP1C1 = 9;
22+
const unsigned int BITSHIFTPROP2C1 = 23;
23+
const unsigned int BITSHIFTPROP3C1 = 22;
24+
const unsigned int BITSHIFTPROP1C2 = 9;
25+
const unsigned int BITSHIFTPROP2C2 = 24;
26+
const unsigned int BITSHIFTPROP3C2 = 19;
27+
const unsigned int BITSHIFTRES1 = 11;
28+
//for comparison with absK to see which functional form to propagate phi according to
29+
//coord1 k cutoff: 4096
30+
//coord2 k cutoffs: 1024, 7168, 4096, 2048, 4096
31+
const unsigned int BITSHIFTCURVSCALEC1 = 12;
32+
const unsigned int BITSHIFTCURVSCALEC2LEADS[5] = {10, 13, 12, 11, 12};
33+
const unsigned int BITSHIFTCURVSCALEC2CORRS[5] = {0, 10, 0, 0, 0};
34+
2235
const unsigned int BITSPROP = BITSPHI - 2;
23-
const unsigned int PROPMAX = ~ap_uint<BITSPROP>(0);
36+
const ap_uint<BITSPROP> PROPMAX = ~ap_uint<BITSPROP>(0);
37+
const ap_uint<BITSSIGMACOORD> SIGMAMAX = ~ap_uint<BITSSIGMACOORD>(0);
38+
const ap_uint<BITSSIGMACOORD> SIGMAMIN = 2;
2439

2540
struct propagation_t {
2641
ap_int<BITSSTUBCOORD> coord1;

0 commit comments

Comments
 (0)