9 throw(std::runtime_error)
11 if (xtal < 1 || xtal > 1700) {
12 throw(std::runtime_error(
"ERROR: crystalToTriggerTower: crystal number out of bounds"));
15 int i = (int) floor((xtal-1)/20.0);
16 int j = (xtal-1) - 20*i;
17 int tti = (int) floor(i/5.0);
18 int ttj = (int) floor(j/5.0);
19 int tt = ttj + 4*tti + 1;
static int crystalToTriggerTower(int xtal)