Skip to content

Commit

Permalink
GMT LUT Changes for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mcepeda committed Jun 7, 2022
1 parent 93f8b0d commit 3856338
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions L1Trigger/Phase2L1GMT/interface/Constants.h
Expand Up @@ -70,12 +70,20 @@ namespace Phase2L1GMT {
const float maxTanl_ = 8.0;
const float maxZ0_ = 30.;
const float maxD0_ = 15.4;

const int barrelLimit0_ = 181 / 4;
const int barrelLimit1_ = 160 / 4;
const int barrelLimit2_ = 140 / 4;
const int barrelLimit3_ = 110 / 4;
const int barrelLimit4_ = 0;

/*
const int barrelLimit0_ = 228;
const int barrelLimit1_ = 179;
const int barrelLimit2_ = 154;
const int barrelLimit3_ = 154;
*/

// LSB
const float LSBpt = 0.03125;
const float LSBphi = 2. * M_PI / pow(2, BITSPHI);
Expand Down Expand Up @@ -1291,17 +1299,37 @@ namespace Phase2L1GMT {
13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13};

const ap_uint<8> lt_tpsID[256] = {
40, 56, 64, 88, 64, 32, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 56, 56, 54, 36, 36, 36, 36, 36, 36,
36, 36, 32, 28, 28, 28, 28, 52, 56, 52, 52, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 56, 52, 52,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 52, 36, 36, 36, 36, 36, 36, 36, 36, 56, 56, 36, 56,
36, 36, 28, 60, 60, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 120, 120, 120, 92, 92, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 28, 120, 152, 128, 100, 124, 80, 80, 64, 100, 64, 64, 64, 64, 64, 64, 28, 88,
92, 64, 92, 60, 60, 60, 92, 60, 60, 60, 60, 60, 60, 60, 36, 88, 88, 64, 64, 60, 60, 60, 60, 60, 60, 60,
92, 92, 92, 92, 28, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 28, 92, 92, 92, 92, 92,
92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 28, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64};
// const ap_uint<8> lt_tpsID[256] = {
// 40, 56, 64, 88, 64, 32, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 56, 56, 54, 36, 36, 36, 36, 36, 36,
// 36, 36, 32, 28, 28, 28, 28, 52, 56, 52, 52, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 56, 52, 52,
// 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 52, 36, 36, 36, 36, 36, 36, 36, 36, 56, 56, 36, 56,
// 36, 36, 28, 60, 60, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 28, 120, 120, 120, 92, 92, 64, 64,
// 64, 64, 64, 64, 64, 64, 64, 64, 28, 120, 152, 128, 100, 124, 80, 80, 64, 100, 64, 64, 64, 64, 64, 64, 28, 88,
// 92, 64, 92, 60, 60, 60, 92, 60, 60, 60, 60, 60, 60, 60, 36, 88, 88, 64, 64, 60, 60, 60, 60, 60, 60, 60,
// 92, 92, 92, 92, 28, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 28, 92, 92, 92, 92, 92,
// 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 28, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
// 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
// 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64};


// LUT with Low Pt (Bin 0, Pt<8 GeV) increased quality requirement. No changes for Pt>8
const ap_uint<8> lt_tpsID[256] = {59, 56, 64, 88, 64, 32, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56,
33, 56, 56, 54, 36, 36, 36, 36, 36, 36, 36, 36, 32, 28, 28, 28,
53, 52, 56, 52, 52, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
40, 56, 52, 52, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
47, 52, 36, 36, 36, 36, 36, 36, 36, 36, 56, 56, 36, 56, 36, 36,
60, 60, 60, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
58,120,120,120, 92, 92, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
58,120,152,128,100,124, 80, 80, 64,100, 64, 64, 64, 64, 64, 64,
53, 88, 92, 64, 92, 60, 60, 60, 92, 60, 60, 60, 60, 60, 60, 60,
64, 88, 88, 64, 64, 60, 60, 60, 60, 60, 60, 60, 92, 92, 92, 92,
41, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
49, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
38, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64};


} // namespace Phase2L1GMT
#endif

0 comments on commit 3856338

Please sign in to comment.