897 int dphi[6] = {-999,-999,-999,-999,-999,-999}, deta[6] = {-999,-999,-999,-999,-999,-999};
898 int clct[4] = {-999,-999,-999,-999}, cscid[4] = {-999,-999,-999,-999};
899 int phis[4] = {-999,-999,-999,-999},
etas[4] = {-999,-999,-999,-999}, mode_inv = 0;;
900 int FR[4] = {-999,-999,-999,-999};
902 float theta_angle = ((track.
theta)*0.2874016 + 8.5)*(3.14159265359/180);
903 float eta = (-1)*
log(
tan(theta_angle/2));
909 if(verbose)
cout<<
"Track eta = "<<eta<<
" and has hits in stations ";
912 for(
unsigned int s=8;
s<12;
s++){
913 if((stubs.find(
s)->second).
size() == 1){
916 if(verbose)
cout<<
"s= " <<
s <<
" " << endl;
919 if(verbose)
cout<<
"eta= " <<
etas[
s-8] <<
" " << endl;
920 phis[
s-8] = track.
phis[
x];
921 if(verbose)
cout<<
"phi= " << phis[
s-8] <<
" " << endl;
922 clct[
s-8] = (stubs.find(
s)->second)[0].getPattern();
923 if(verbose)
cout<<
"clct= " << clct[
s-8] <<
" " << endl;
924 cscid[
s-8] = (stubs.find(
s)->second)[0].Id();
925 if(verbose)
cout<<
"cscid= " << cscid[
s-8] <<
" " << endl;
927 if(verbose)
cout<<
s <<
" " << (stubs.find(
s)->second)[0].detId<CSCDetId>().station()<<
" " << phis[
s-8] << endl;;
929 const CSCChamber* layer = cscGeometry->chamber((stubs.find(
s)->second)[0].detId<CSCDetId>());
935 int coord[5] = {586,686,815,924,1013};
936 for(
int i=0;
i<5;
i++){
938 if((fabs(glc.
z()) < (coord[
i] + 7)) && (fabs(glc.
z()) > (coord[
i] - 7)))
959 if(verbose)
cout <<
"\n Mode = " <<
mode <<
", inverted mode = " << mode_inv << endl;
965 for(
int d=0;
d<6;
d++){
970 if(phis[0] > 0 && phis[1] > 0){
971 dphi[0] = phis[1] - phis[0];
974 if(phis[0] > 0 && phis[2] > 0){
975 dphi[1] = phis[2] - phis[0];
978 if(phis[0] > 0 && phis[3] > 0){
979 dphi[2] = phis[3] - phis[0];
982 if(phis[1] > 0 && phis[2] > 0){
983 dphi[3] = phis[2] - phis[1];
986 if(phis[1] > 0 && phis[3] > 0){
987 dphi[4] = phis[3] - phis[1];
990 if(phis[2] > 0 && phis[3] > 0){
991 dphi[5] = phis[3] - phis[2];
999 float dPhi12__ = fabs(dphi[0]);
1000 float eta__ =
getEta(eta, 5);
1001 float clct1__ =
getCLCT(clct[0]);
1002 float clct2__ =
getCLCT(clct[1]);
1005 cout <<
"Inverted mode 3 Track " << endl;
1006 cout << setw(10) <<
"dPhi12: " << dphi[0] << setw(10) << dPhi12__ << endl;
1007 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1008 cout << setw(10) <<
"CLCT2: " << clct[1] << setw(10) << clct2__ << endl;
1009 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1013 float dPhi13__ = fabs(dphi[1]);
1014 float eta__ =
getEta(eta, 5);
1015 float clct1__ =
getCLCT(clct[0]);
1016 float clct3__ =
getCLCT(clct[2]);
1019 cout <<
"Inverted mode 5 Track " << endl;
1020 cout << setw(10) <<
"dPhi13: " << dphi[1] << setw(10) << dPhi13__ << endl;
1021 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1022 cout << setw(10) <<
"CLCT3: " << clct[2] << setw(10) << clct3__ << endl;
1023 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1027 float dPhi14__ = fabs(dphi[2]);
1028 float eta__ =
getEta(eta, 5);
1029 float clct1__ =
getCLCT(clct[0]);
1030 float clct4__ =
getCLCT(clct[3]);
1033 cout <<
"Inverted mode 9 Track " << endl;
1034 cout << setw(10) <<
"dPhi14: " << dphi[2] << setw(10) << dPhi14__ << endl;
1035 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1036 cout << setw(10) <<
"CLCT4: " << clct[3] << setw(10) << clct4__ << endl;
1037 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1041 float dPhi23__ = fabs(dphi[3]);
1042 float eta__ =
getEta(eta, 5);
1043 float clct2__ =
getCLCT(clct[1]);
1044 float clct3__ =
getCLCT(clct[2]);
1047 cout <<
"Inverted mode 9 Track " << endl;
1048 cout << setw(10) <<
"dPhi23: " << dphi[3] << setw(10) << dPhi23__ << endl;
1049 cout << setw(10) <<
"CLCT2: " << clct[1] << setw(10) << clct2__ << endl;
1050 cout << setw(10) <<
"CLCT3: " << clct[2] << setw(10) << clct3__ << endl;
1051 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1055 float dPhi24__ = fabs(dphi[4]);
1056 float eta__ =
getEta(eta, 5);
1057 float clct2__ =
getCLCT(clct[1]);
1058 float clct4__ =
getCLCT(clct[3]);
1061 cout <<
"Inverted mode 10 Track " << endl;
1062 cout << setw(10) <<
"dPhi24: " << dphi[4] << setw(10) << dPhi24__ << endl;
1063 cout << setw(10) <<
"CLCT2: " << clct[1] << setw(10) << clct2__ << endl;
1064 cout << setw(10) <<
"CLCT4: " << clct[3] << setw(10) << clct4__ << endl;
1065 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1069 float dPhi34__ = fabs(dphi[5]);
1070 float eta__ =
getEta(eta, 5);
1071 float clct3__ =
getCLCT(clct[2]);
1072 float clct4__ =
getCLCT(clct[3]);
1075 cout <<
"Inverted mode 12 Track " << endl;
1076 cout << setw(10) <<
"dPhi34: " << dphi[5] << setw(10) << dPhi34__ << endl;
1077 cout << setw(10) <<
"CLCT3: " << clct[2] << setw(10) << clct3__ << endl;
1078 cout << setw(10) <<
"CLCT4: " << clct[3] << setw(10) << clct4__ << endl;
1079 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1086 float eta__ =
getEta(eta, 5);
1087 float clct1__ =
getCLCT(clct[0]);
1089 cout <<
"Inverted mode 7 Track " << endl;
1090 cout << setw(10) <<
"dPhi12: " << dphi[0] << setw(10) << dPhi12__ << endl;
1091 cout << setw(10) <<
"dPhi23: " << dphi[3] << setw(10) << dPhi23__ << endl;
1092 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1093 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1099 float eta__ =
getEta(eta, 5);
1100 float clct1__ =
getCLCT(clct[0]);
1102 cout <<
"Inverted mode 11 Track " << endl;
1103 cout << setw(10) <<
"dPhi12: " << dphi[0] << setw(10) << dPhi12__ << endl;
1104 cout << setw(10) <<
"dPhi24: " << dphi[4] << setw(10) << dPhi24__ << endl;
1105 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1106 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1112 float eta__ =
getEta(eta, 5);
1113 float clct1__ =
getCLCT(clct[0]);
1115 cout <<
"Inverted mode 13 Track " << endl;
1116 cout << setw(10) <<
"dPhi13: " << dphi[1] << setw(10) << dPhi13__ << endl;
1117 cout << setw(10) <<
"dPhi34: " << dphi[5] << setw(10) << dPhi34__ << endl;
1118 cout << setw(10) <<
"CLCT1: " << clct[0] << setw(10) << clct1__ << endl;
1119 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1125 float eta__ =
getEta(eta, 5);
1126 float clct2__ =
getCLCT(clct[1]);
1128 cout <<
"Inverted mode 14 Track " << endl;
1129 cout << setw(10) <<
"dPhi23: " << dphi[3] << setw(10) << dPhi23__ << endl;
1130 cout << setw(10) <<
"dPhi34: " << dphi[5] << setw(10) << dPhi34__ << endl;
1131 cout << setw(10) <<
"CLCT2: " << clct[1] << setw(10) << clct2__ << endl;
1132 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1139 float eta__ =
getEta(eta, 5);
1142 cout <<
"Inverted mode 15 Track " << endl;
1143 cout << setw(10) <<
"dPhi12: " << dphi[0] << setw(10) << dPhi12__ << endl;
1144 cout << setw(10) <<
"dPhi23: " << dphi[3] << setw(10) << dPhi23__ << endl;
1145 cout << setw(10) <<
"dPhi34: " << dphi[5] << setw(10) << dPhi34__ << endl;
1146 cout << setw(10) <<
"eta : " << eta << setw(10) << eta__ << endl;
1150 float dPhi12 = dphi[0];
1151 float dPhi13 = dphi[1];
1152 float dPhi14 = dphi[2];
1153 float dPhi23 = dphi[3];
1154 float dPhi24 = dphi[4];
1155 float dPhi34 = dphi[5];
1156 float dTheta12 = deta[0];
1157 float dTheta13 = deta[1];
1158 float dTheta14 = deta[2];
1159 float dTheta23 = deta[3];
1160 float dTheta24 = deta[4];
1161 float dTheta34 = deta[5];
1163 float CLCT1 = clct[0];
1164 float CLCT2 = clct[1];
1165 float CLCT3 = clct[2];
1166 float CLCT4 = clct[3];
1172 unsigned long Address = 0x0;
1174 if (doComp && mode_inv==3)
1178 if (dPhi12<0) dPhi12Sign = -1;
1186 int dPhi12_ = fabs(dPhi12);
1187 int sign12_ = dPhi12Sign > 0 ? 1 : 0;
1190 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1191 CLCT1_ =
abs(CLCT1_);
1193 int CLCT2Sign_ = CLCT2_ > 0 ? 1 : 0;
1194 CLCT2_ =
abs(CLCT2_);
1198 int Mode_ = mode_inv;
1200 Address += ( dPhi12_ & ((1<<9)-1)) << (0);
1201 Address += ( sign12_ & ((1<<1)-1)) << (0+9);
1202 Address += ( dTheta12_ & ((1<<3)-1)) << (0+9+1);
1203 Address += ( CLCT1_ & ((1<<2)-1)) << (0+9+1+3);
1204 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1205 Address += ( CLCT2_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1206 Address += ( CLCT2Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1207 Address += ( FR1_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1208 Address += ( FR2_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1209 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1210 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1213 if (doComp && mode_inv==5)
1221 if (dPhi13<0) dPhi13Sign = -1;
1226 int dPhi13_ = fabs(dPhi13);
1227 int sign13_ = dPhi13Sign > 0 ? 1 : 0;
1230 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1231 CLCT1_ =
abs(CLCT1_);
1233 int CLCT3Sign_ = CLCT3_ > 0 ? 1 : 0;
1234 CLCT3_ =
abs(CLCT3_);
1238 int Mode_ = mode_inv;
1240 Address += ( dPhi13_ & ((1<<9)-1)) << (0);
1241 Address += ( sign13_ & ((1<<1)-1)) << (0+9);
1242 Address += ( dTheta13_ & ((1<<3)-1)) << (0+9+1);
1243 Address += ( CLCT1_ & ((1<<2)-1)) << (0+9+1+3);
1244 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1245 Address += ( CLCT3_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1246 Address += ( CLCT3Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1247 Address += ( FR1_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1248 Address += ( FR3_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1249 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1250 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1253 if (doComp && mode_inv==9)
1262 if (dPhi14<0) dPhi14Sign = -1;
1267 int dPhi14_ = fabs(dPhi14);
1268 int sign14_ = dPhi14Sign > 0 ? 1 : 0;
1271 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1272 CLCT1_ =
abs(CLCT1_);
1274 int CLCT4Sign_ = CLCT4_ > 0 ? 1 : 0;
1275 CLCT4_ =
abs(CLCT4_);
1279 int Mode_ = mode_inv;
1281 Address += ( dPhi14_ & ((1<<9)-1)) << (0);
1282 Address += ( sign14_ & ((1<<1)-1)) << (0+9);
1283 Address += ( dTheta14_ & ((1<<3)-1)) << (0+9+1);
1284 Address += ( CLCT1_ & ((1<<2)-1)) << (0+9+1+3);
1285 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1286 Address += ( CLCT4_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1287 Address += ( CLCT4Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1288 Address += ( FR1_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1289 Address += ( FR4_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1290 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1291 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1293 if (doComp && mode_inv==6)
1301 if (dPhi23<0) dPhi23Sign = -1;
1306 int dPhi23_ = fabs(dPhi23);
1307 int sign23_ = dPhi23Sign > 0 ? 1 : 0;
1310 int CLCT2Sign_ = CLCT2_ > 0 ? 1 : 0;
1311 CLCT2_ =
abs(CLCT2_);
1313 int CLCT3Sign_ = CLCT3_ > 0 ? 1 : 0;
1314 CLCT3_ =
abs(CLCT3_);
1318 int Mode_ = mode_inv;
1320 Address += ( dPhi23_ & ((1<<9)-1)) << (0);
1321 Address += ( sign23_ & ((1<<1)-1)) << (0+9);
1322 Address += ( dTheta23_ & ((1<<3)-1)) << (0+9+1);
1323 Address += ( CLCT2_ & ((1<<2)-1)) << (0+9+1+3);
1324 Address += ( CLCT2Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1325 Address += ( CLCT3_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1326 Address += ( CLCT3Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1327 Address += ( FR2_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1328 Address += ( FR3_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1329 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1330 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1332 if (doComp && mode_inv==10)
1340 if (dPhi24<0) dPhi24Sign = -1;
1345 int dPhi24_ = fabs(dPhi24);
1346 int sign24_ = dPhi24Sign > 0 ? 1 : 0;
1349 int CLCT2Sign_ = CLCT2_ > 0 ? 1 : 0;
1350 CLCT2_ =
abs(CLCT2_);
1352 int CLCT4Sign_ = CLCT4_ > 0 ? 1 : 0;
1353 CLCT4_ =
abs(CLCT4_);
1357 int Mode_ = mode_inv;
1359 Address += ( dPhi24_ & ((1<<9)-1)) << (0);
1360 Address += ( sign24_ & ((1<<1)-1)) << (0+9);
1361 Address += ( dTheta24_ & ((1<<3)-1)) << (0+9+1);
1362 Address += ( CLCT2_ & ((1<<2)-1)) << (0+9+1+3);
1363 Address += ( CLCT2Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1364 Address += ( CLCT4_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1365 Address += ( CLCT4Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1366 Address += ( FR2_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1367 Address += ( FR4_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1368 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1369 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1371 if (doComp && mode_inv==12)
1378 if (dPhi34<0) dPhi34Sign = -1;
1383 int dPhi34_ = fabs(dPhi34);
1384 int sign34_ = dPhi34Sign > 0 ? 1 : 0;
1387 int CLCT3Sign_ = CLCT3_ > 0 ? 1 : 0;
1388 CLCT3_ =
abs(CLCT3_);
1390 int CLCT4Sign_ = CLCT4_ > 0 ? 1 : 0;
1391 CLCT4_ =
abs(CLCT4_);
1395 int Mode_ = mode_inv;
1397 Address += ( dPhi34_ & ((1<<9)-1)) << (0);
1398 Address += ( sign34_ & ((1<<1)-1)) << (0+9);
1399 Address += ( dTheta34_ & ((1<<3)-1)) << (0+9+1);
1400 Address += ( CLCT3_ & ((1<<2)-1)) << (0+9+1+3);
1401 Address += ( CLCT3Sign_ & ((1<<1)-1)) << (0+9+1+3+2);
1402 Address += ( CLCT4_ & ((1<<2)-1)) << (0+9+1+3+2+1);
1403 Address += ( CLCT4Sign_ & ((1<<1)-1)) << (0+9+1+3+2+1+2);
1404 Address += ( FR3_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1);
1405 Address += ( FR4_ & ((1<<1)-1)) << (0+9+1+3+2+1+2+1+1);
1406 Address += ( eta_ & ((1<<5)-1)) << (0+9+1+3+2+1+2+1+1+1);
1407 Address += ( Mode_ & ((1<<4)-1)) << (0+9+1+3+2+1+2+1+1+1+5);
1410 if (doComp && mode_inv==7)
1418 if (dPhi12<0) dPhi12Sign = -1;
1419 if (dPhi23<0) dPhi23Sign = -1;
1426 int sign12_ = dPhi12Sign > 0 ? 1 : 0;
1427 int sign23_ = dPhi23Sign > 0 ? 1 : 0;
1430 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1431 CLCT1_ =
abs(CLCT1_);
1434 int Mode_ = mode_inv;
1436 Address += ( dPhi12_ & ((1<<7)-1)) << (0);
1437 Address += ( dPhi23_ & ((1<<5)-1)) << (0+7);
1438 Address += ( sign12_ & ((1<<1)-1)) << (0+7+5);
1439 Address += ( sign23_ & ((1<<1)-1)) << (0+7+5+1);
1440 Address += ( dTheta13_ & ((1<<3)-1)) << (0+7+5+1+1);
1441 Address += ( CLCT1_ & ((1<<2)-1)) << (0+7+5+1+1+3);
1442 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+7+5+1+1+3+2);
1443 Address += ( FR1_ & ((1<<1)-1)) << (0+7+5+1+1+3+2+1);
1444 Address += ( eta_ & ((1<<5)-1)) << (0+7+5+1+1+3+2+1+1);
1445 Address += ( Mode_ & ((1<<4)-1)) << (0+7+5+1+1+3+2+1+1+5);
1448 if (doComp && mode_inv==11)
1455 if (dPhi12<0) dPhi12Sign = -1;
1456 if (dPhi24<0) dPhi24Sign = -1;
1462 int sign12_ = dPhi12Sign > 0 ? 1 : 0;
1463 int sign24_ = dPhi24Sign > 0 ? 1 : 0;
1466 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1467 CLCT1_ =
abs(CLCT1_);
1470 int Mode_ = mode_inv;
1472 Address += ( dPhi12_ & ((1<<7)-1)) << (0);
1473 Address += ( dPhi24_ & ((1<<5)-1)) << (0+7);
1474 Address += ( sign12_ & ((1<<1)-1)) << (0+7+5);
1475 Address += ( sign24_ & ((1<<1)-1)) << (0+7+5+1);
1476 Address += ( dTheta14_ & ((1<<3)-1)) << (0+7+5+1+1);
1477 Address += ( CLCT1_ & ((1<<2)-1)) << (0+7+5+1+1+3);
1478 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+7+5+1+1+3+2);
1479 Address += ( FR1_ & ((1<<1)-1)) << (0+7+5+1+1+3+2+1);
1480 Address += ( eta_ & ((1<<5)-1)) << (0+7+5+1+1+3+2+1+1);
1481 Address += ( Mode_ & ((1<<4)-1)) << (0+7+5+1+1+3+2+1+1+5);
1483 if (doComp && mode_inv==13)
1490 if (dPhi13<0) dPhi13Sign = -1;
1491 if (dPhi34<0) dPhi34Sign = -1;
1497 int sign13_ = dPhi13Sign > 0 ? 1 : 0;
1498 int sign34_ = dPhi34Sign > 0 ? 1 : 0;
1501 int CLCT1Sign_ = CLCT1_ > 0 ? 1 : 0;
1502 CLCT1_ =
abs(CLCT1_);
1505 int Mode_ = mode_inv;
1507 Address += ( dPhi13_ & ((1<<7)-1)) << (0);
1508 Address += ( dPhi34_ & ((1<<5)-1)) << (0+7);
1509 Address += ( sign13_ & ((1<<1)-1)) << (0+7+5);
1510 Address += ( sign34_ & ((1<<1)-1)) << (0+7+5+1);
1511 Address += ( dTheta14_ & ((1<<3)-1)) << (0+7+5+1+1);
1512 Address += ( CLCT1_ & ((1<<2)-1)) << (0+7+5+1+1+3);
1513 Address += ( CLCT1Sign_ & ((1<<1)-1)) << (0+7+5+1+1+3+2);
1514 Address += ( FR1_ & ((1<<1)-1)) << (0+7+5+1+1+3+2+1);
1515 Address += ( eta_ & ((1<<5)-1)) << (0+7+5+1+1+3+2+1+1);
1516 Address += ( Mode_ & ((1<<4)-1)) << (0+7+5+1+1+3+2+1+1+5);
1519 if (doComp && mode_inv==14)
1527 if (dPhi23<0) dPhi23Sign = -1;
1528 if (dPhi34<0) dPhi34Sign = -1;
1534 int sign23_ = dPhi23Sign > 0 ? 1 : 0;
1535 int sign34_ = dPhi34Sign > 0 ? 1 : 0;
1538 int CLCT2Sign_ = CLCT2_ > 0 ? 1 : 0;
1539 CLCT2_ =
abs(CLCT2_);
1541 int Mode_ = mode_inv;
1543 Address += ( dPhi23_ & ((1<<7)-1)) << (0);
1544 Address += ( dPhi34_ & ((1<<6)-1)) << (0+7);
1545 Address += ( sign23_ & ((1<<1)-1)) << (0+7+6);
1546 Address += ( sign34_ & ((1<<1)-1)) << (0+7+6+1);
1547 Address += ( dTheta24_ & ((1<<3)-1)) << (0+7+6+1+1);
1548 Address += ( CLCT2_ & ((1<<2)-1)) << (0+7+6+1+1+3);
1549 Address += ( CLCT2Sign_ & ((1<<1)-1)) << (0+7+6+1+1+3+2);
1550 Address += ( eta_ & ((1<<5)-1)) << (0+7+6+1+1+3+2+1);
1551 Address += ( Mode_ & ((1<<4)-1)) << (0+7+6+1+1+3+2+1+5);
1554 if (doComp && mode_inv==15)
1560 if (dPhi12<0) dPhi12Sign = -1;
1561 if (dPhi23<0) dPhi23Sign = -1;
1562 if (dPhi34<0) dPhi34Sign = -1;
1564 dPhi23Sign *= dPhi12Sign;
1565 dPhi34Sign *= dPhi12Sign;
1572 int sign23_ = dPhi23Sign > 0 ? 1 : 0;
1573 int sign34_ = dPhi34Sign > 0 ? 1 : 0;
1576 int Mode_ = mode_inv;
1578 Address += ( dPhi12_ & ((1<<7)-1)) << 0;
1579 Address += ( dPhi23_ & ((1<<5)-1)) << (0+7);
1580 Address += ( dPhi34_ & ((1<<6)-1)) << (0+7+5);
1581 Address += ( sign23_ & ((1<<1)-1)) << (0+7+5+6);
1582 Address += ( sign34_ & ((1<<1)-1)) << (0+7+5+6+1);
1583 Address += ( FR1_ & ((1<<1)-1)) << (0+7+5+6+1+1);
1584 Address += ( eta_ & ((1<<5)-1)) << (0+7+5+6+1+1+1);
1585 Address += ( Mode_ & ((1<<4)-1)) << (0+7+5+6+1+1+1+5);
const TriggerPrimitiveStationMap & getStubs() const
static int getEtaInt(float eta, int bits=5)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
static float getEta(float eta, int bits=5)
std::vector< int > thetas
static float getCLCT(float clct)
static float getdTheta(float dTheta)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
static float getNLBdPhi(float dPhi, int bits, int max=512)
std::vector< std::vector< int > > deltas
static int getNLBdPhiBin(float dPhi, int bits, int max=512)
std::map< unsigned, TriggerPrimitiveCollection > TriggerPrimitiveStationMap
tuple size
Write out results.