5 #ifndef ADD_MakeRegionalCand 6 #define ADD_MakeRegionalCand 12 int GMT_eta_from_theta[128] = {239, 235, 233, 230, 227, 224, 222, 219, 217, 214, 212, 210, 207, 205, 203, 201,
13 199, 197, 195, 193, 191, 189, 187, 186, 184, 182, 180, 179, 177, 176, 174, 172,
14 171, 169, 168, 166, 165, 164, 162, 161, 160, 158, 157, 156, 154, 153, 152, 151,
15 149, 148, 147, 146, 145, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133,
16 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117,
17 116, 116, 115, 114, 113, 112, 111, 110, 110, 109, 108, 107, 106, 106, 105, 104,
18 103, 102, 102, 101, 100, 99, 99, 98, 97, 96, 96, 95, 94, 93, 93, 92,
19 91, 91, 90, 89, 89, 88, 87, 87, 86, 85, 84, 84, 83, 83, 82, 81};
23 if (theta < 0)
return 0;
25 if (theta > 127)
return -240;
29 if (theta > 127)
return 239;
46 float phiDeg = (phi / (0.625 * 60)) * 0.979755;
47 int PackedPhi = floor( phiDeg - 35 );
56 int trackaddress,
int sector){
86 case(15): iQual = 8;
break;
87 case(14): iQual = 4;
break;
88 case(13): iQual = 4;
break;
89 case(12): iQual = 4;
break;
90 case(11): iQual = 4;
break;
91 default: iQual = 4;
break;
98 case(15): iQual = 12;
break;
99 case(14): iQual = 12;
break;
100 case(13): iQual = 12;
break;
101 case(12): iQual = 8;
break;
102 case(11): iQual = 12;
break;
103 case(10): iQual = 8;
break;
104 case(7): iQual = 8;
break;
105 default: iQual = 4;
break;
void setHwPhi(int bits)
Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)
Geom::Theta< T > theta() const
int GetPackedPhi(int phi)
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
l1t::RegionalMuonCand MakeRegionalCand(float pt, int phi, int theta, int sign, int mode, int trackaddress, int sector)
float GetGlobalEta(int theta, int sector)
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
void setHwPt(int bits)
Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
int GetPackedEta(int theta, int sector)
int GMT_eta_from_theta[128]
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
void setHwSign(int bits)
Set charge sign bit (charge = (-1)^(sign))