@@ -28,9 +28,9 @@ namespace Phase2L1GMT {
2828 const int BITSD0 = 12 ;
2929
3030 // Muon ROI
31- const int BITSSTUBCOORD = 8 ;
31+ const int BITSSTUBCOORD = 10 ;
3232 const int BITSSTUBETA = 8 ;
33- const int BITSSTUBID = 9 ;
33+ const int BITSSTUBID = 12 ;
3434 const int BITSSTUBPHIQUALITY = 4 ;
3535 const int BITSSTUBETAQUALITY = 4 ;
3636 const int BITSSTUBTIME = 8 ;
@@ -45,8 +45,8 @@ namespace Phase2L1GMT {
4545 const int BITSSIGMAETA = 4 ;
4646 const int BITSSIGMACOORD = 4 ;
4747 const int BITSPROPCOORD = 9 ;
48- const int BITSPROPSIGMACOORD_A = 5 ;
49- const int BITSPROPSIGMACOORD_B = 5 ;
48+ const int BITSPROPSIGMACOORD_A = 6 ;
49+ const int BITSPROPSIGMACOORD_B = 6 ;
5050 const int BITSPROPSIGMAETA_A = 5 ;
5151 const int BITSPROPSIGMAETA_B = 5 ;
5252
@@ -62,8 +62,9 @@ namespace Phase2L1GMT {
6262 const int BITSGTETA = 14 ;
6363 const int BITSGTZ0 = 10 ;
6464 const int BITSGTD0 = 10 ;
65- const int BITSGTQUAL = 8 ;
66- const int BITSGTISO = 4 ;
65+ const int BITSGTQUAL = 6 ;
66+ const int BITSGTQUALSC = 7 ;
67+ const int BITSGTISO = 6 ;
6768 const int BITSGTBETA = 4 ;
6869
6970 // Bitwidth for Tau->3mu object
@@ -91,22 +92,24 @@ namespace Phase2L1GMT {
9192 const float LSBpt = 0.03125 ;
9293 const float LSBphi = 2 . * M_PI / pow(2 , BITSPHI);
9394 const float LSBeta = 2 . * M_PI / pow(2 , BITSETA);
94- const float LSBGTz0 = 0.05 ; // 0.5mm, in sync with GTT and Correlator
95- const float LSBGTd0 = 0.03 ; // from GT interface doc
96- const float LSBSAz0 = 1.6 ; // 0.05 * 32 cm, with range +- 25.6
97- const float LSBSAd0 = 3.84 ; // 0.03 * 128 cm, with range +- 245.76
95+ const float LSBGTiso = 0.25 ; // 0.25GeV, LSBphi * 8
96+ const float LSBGTz0 = 0.05 ; // 0.5mm, in sync with GTT and Correlator
97+ const float LSBGTd0 = 0.03 ; // from GT interface doc
98+ const float LSBSAz0 = 1.6 ; // 0.05 * 32 cm, with range +- 25.6
99+ const float LSBSAd0 = 3.84 ; // 0.03 * 128 cm, with range +- 245.76
98100
99101 typedef ap_uint<64 > wordtype;
100- typedef ap_uint<1 > valid_gt_t ; // valid
101- typedef ap_uint<1 > q_gt_t ; // charge
102- typedef ap_uint<BITSGTPT> pt_gt_t ; // pt of tracker muon
103- typedef ap_int<BITSGTPHI> phi_gt_t ; // phi of tracker muon
104- typedef ap_int<BITSGTETA> eta_gt_t ; // eta of tracker muon
105- typedef ap_int<BITSGTZ0> z0_gt_t ; // z0 of tracker muon
106- typedef ap_int<BITSGTD0> d0_gt_t ; // d0 of tracker muon
107- typedef ap_uint<BITSGTISO> iso_gt_t ; // isolation of tracker muon
108- typedef ap_uint<BITSGTBETA> beta_gt_t ; // beta of tracker muon
109- typedef ap_uint<BITSGTQUAL> qual_gt_t ; // quality of tracker muon
102+ typedef ap_uint<1 > valid_gt_t ; // valid
103+ typedef ap_uint<1 > q_gt_t ; // charge
104+ typedef ap_uint<BITSGTPT> pt_gt_t ; // pt of tracker muon
105+ typedef ap_int<BITSGTPHI> phi_gt_t ; // phi of tracker muon
106+ typedef ap_int<BITSGTETA> eta_gt_t ; // eta of tracker muon
107+ typedef ap_int<BITSGTZ0> z0_gt_t ; // z0 of tracker muon
108+ typedef ap_int<BITSGTD0> d0_gt_t ; // d0 of tracker muon
109+ typedef ap_uint<BITSGTISO> iso_gt_t ; // isolation of tracker muon
110+ typedef ap_uint<BITSGTBETA> beta_gt_t ; // beta of tracker muon
111+ typedef ap_uint<BITSGTQUAL> qual_gt_t ; // quality of tracker muon
112+ typedef ap_int<BITSGTQUALSC> qualsc_gt_t ; // quality score of tracker muon (qual/q)
110113
111114 // Standalone muon datatype
112115 typedef ap_uint<1 > valid_sa_t ; // valid
0 commit comments