#include <L1RCTNeighborMap.h>
|
std::vector< int > | east (int crate, int card, int region) |
|
std::vector< int > | ne (int crate, int card, int region) |
|
std::vector< int > | north (int crate, int card, int region) |
|
std::vector< int > | nw (int crate, int card, int region) |
|
std::vector< int > | se (int crate, int card, int region) |
|
std::vector< int > | south (int crate, int card, int region) |
|
std::vector< int > | sw (int crate, int card, int region) |
|
std::vector< int > | west (int crate, int card, int region) |
|
Definition at line 5 of file L1RCTNeighborMap.h.
◆ east()
vector< int > L1RCTNeighborMap::east |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 135 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
136 int newcrate(0), newcard(0), newregion(0);
137 std::vector<int>
east(3);
139 if (card != 0 && card != 1 && card != 6) {
148 }
else if (card == 0 || card == 1) {
151 newcrate =
crate + 9;
157 }
else if (card == 6) {
172 if (card != 4 && card != 5) {
175 }
else if (card == 4) {
178 }
else if (card == 5) {
189 east.at(0) = newcrate;
190 east.at(1) = newcard;
191 east.at(2) = newregion;
std::vector< int > east(int crate, int card, int region)
◆ ne()
vector< int > L1RCTNeighborMap::ne |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 397 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
398 int newcrate(0), newcard(0), newregion(0);
399 std::vector<int>
ne(3);
406 newcrate =
crate + 8;
411 newcrate =
crate - 1;
415 }
else if (card == 1) {
419 newcrate =
crate + 9;
422 }
else if (card == 2 || card == 4) {
424 newcard = card - 1 + 2 *
region;
426 newcrate =
crate - 1;
429 }
else if (card == 5 || card == 3) {
431 newcard = card - 3 + 2 *
region;
433 }
else if (card == 6) {
438 newcrate =
crate - 1;
447 if (card == 0 || card == 2) {
449 newcard = card + 1 + 2 *
region;
451 newcrate =
crate - 1;
454 }
else if (card == 1 || card == 3) {
456 newcard = card - 1 + 2 *
region;
458 }
else if (card == 4) {
461 newcrate =
crate - 1;
468 }
else if (card == 5) {
475 }
else if (card == 6) {
483 ne.at(2) = newregion;
std::vector< int > ne(int crate, int card, int region)
◆ north()
vector< int > L1RCTNeighborMap::north |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
◆ nw()
vector< int > L1RCTNeighborMap::nw |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 487 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
488 int newcrate(0), newcard(0), newregion(0);
489 std::vector<int>
nw(3);
496 newcrate =
crate - 10;
501 newcrate =
crate - 1;
505 }
else if (card == 1) {
509 newcrate =
crate - 9;
512 }
else if (card == 2 || card == 4) {
514 newcard = card - 1 + 2 *
region;
516 newcrate =
crate - 1;
519 }
else if (card == 5 || card == 3) {
521 newcard = card - 3 + 2 *
region;
523 }
else if (card == 6) {
528 newcrate =
crate - 1;
537 if (card == 0 || card == 2) {
539 newcard = card + 1 + 2 *
region;
541 newcrate =
crate - 1;
544 }
else if (card == 1 || card == 3) {
546 newcard = card - 1 + 2 *
region;
548 }
else if (card == 4) {
551 newcrate =
crate - 1;
558 }
else if (card == 5) {
565 }
else if (card == 6) {
573 nw.at(2) = newregion;
std::vector< int > nw(int crate, int card, int region)
◆ se()
vector< int > L1RCTNeighborMap::se |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 195 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
196 int newcrate(0), newcard(0), newregion(0);
197 std::vector<int>
se(3);
201 newcrate =
crate + 9;
209 }
else if (card == 1) {
212 newcrate =
crate + 10;
219 newcrate =
crate + 1;
225 }
else if (card == 2 || card == 4) {
228 newcard = card - 1 + 2 *
region;
229 }
else if (card == 5 || card == 3) {
231 newcard = card - 3 + 2 *
region;
233 newcrate =
crate + 1;
236 }
else if (card == 6) {
245 newcrate =
crate + 1;
251 if (card == 0 || card == 2) {
254 newcard = card + 2 *
region + 1;
255 }
else if (card == 1 || card == 3) {
257 newcard = card - 1 + 2 *
region;
259 newcrate =
crate + 1;
262 }
else if (card == 4) {
271 }
else if (card == 5) {
280 newcrate =
crate + 1;
283 }
else if (card == 6) {
292 se.at(2) = newregion;
std::vector< int > se(int crate, int card, int region)
◆ south()
vector< int > L1RCTNeighborMap::south |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
◆ sw()
vector< int > L1RCTNeighborMap::sw |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 296 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
297 int newcrate(0), newcard(0), newregion(0);
298 std::vector<int>
sw(3);
302 newcrate =
crate - 9;
310 }
else if (card == 1) {
313 newcrate =
crate - 8;
320 newcrate =
crate + 1;
326 }
else if (card == 2 || card == 4) {
329 newcard = card - 1 + 2 *
region;
330 }
else if (card == 5 || card == 3) {
332 newcard = card - 3 + 2 *
region;
334 newcrate =
crate + 1;
337 }
else if (card == 6) {
346 newcrate =
crate + 1;
352 if (card == 0 || card == 2) {
355 newcard = card + 1 + 2 *
region;
356 }
else if (card == 1 || card == 3) {
358 newcard = card - 1 + 2 *
region;
360 newcrate =
crate + 1;
363 }
else if (card == 4) {
372 }
else if (card == 5) {
381 newcrate =
crate + 1;
384 }
else if (card == 6) {
393 sw.at(2) = newregion;
std::vector< int > sw(int crate, int card, int region)
◆ west()
vector< int > L1RCTNeighborMap::west |
( |
int |
crate, |
|
|
int |
card, |
|
|
int |
region |
|
) |
| |
Definition at line 74 of file L1RCTNeighborMap.cc.
References FCDTask_cfi::crate, and nano_mu_digi_cff::region.
Referenced by L1RCT::shareNeighbors().
75 int newcrate(0), newcard(0), newregion(0);
76 std::vector<int>
west(3);
84 if (card != 4 && card != 5) {
87 }
else if (card == 4) {
90 }
else if (card == 5) {
101 if (card == 0 || card == 1) {
103 newcrate =
crate - 9;
111 }
else if (card != 6) {
120 }
else if (card == 6) {
129 west.at(0) = newcrate;
130 west.at(1) = newcard;
131 west.at(2) = newregion;
std::vector< int > west(int crate, int card, int region)