26 for (
int i = 0;
i <
NGL; ++
i)
28 glbl_label[
i] = label_base +
i;
53 for (
int i = 0;
i <
NGL; ++
i)
55 glbl_label[
i] = label_base +
i;
77 for (
int i = 0;
i <
NGL; ++
i)
79 glbl_label[
i] = label_base +
i;
97 for (
int i = 0;
i <
NGL; ++
i)
99 glbl_label[
i] = label_base +
i;
106 if (layer > 22 && layer < 39)
108 if (layer > 38 && layer < 55)
118 for(
int ishell = 0; ishell < 2; ++ishell)
121 if(stave == stave_ref)
126 std::cout <<
" AlignemntDefs::getMvtxClamshell: did not find stave " << stave << std::endl;
133 unsigned int volume =
id.volume();
134 unsigned int acts_layer =
id.layer();
136 unsigned int sensor =
id.sensitive() - 1;
147 label_base += layer * 1000000 + stave * 10000 + sensor * 10;
154 label_base += layer * 1000000 + stave * 10000;
167 label_base += layer * 1000000 + clamshell*10000;
180 if(stave < breakat) { clamshell = 0; }
181 label_base += 0 * 1000000 + clamshell * 10000;
187 else if(layer > 2 && layer < 7)
202 stave = (sensor - breakat)/2;
208 label_base += layer * 1000000 + stave * 10000 + sensor * 10;
214 label_base += layer * 1000000 + stave * 10000;
225 label_base += layer * 1000000 + 0;
232 label_base += 3 * 1000000 + 0;
236 else if (layer > 6 && layer < 55)
242 int hitset = sensor / 12;
243 label_base += layer * 1000000 + hitset * 10000;
255 label_base += 7 * 1000000 + (region * 24 + side * 12 + sector) * 10000;
267 label_base += 7 * 1000000 + 0;
277 label_base += layer * 1000000 + tile * 10000 + sensor * 10;
283 label_base += 55 * 1000000 + 0;
292 std::vector<int> label_base;
296 for(
int ishl=0;ishl<2;++ishl)
298 int label = 1 + 0 * 1000000 + ishl*10000;
299 label_base.push_back(label);
304 for(
int ishl=0;ishl<2;++ishl)
306 for(
int ilyr = 0; ilyr < 3; ++ilyr)
308 int label = 1 + ilyr * 1000000 + ishl * 10000;
309 label_base.push_back(label);
315 for(
int ilyr = 0; ilyr < 3; ++ilyr)
319 int label = 1 + ilyr * 1000000 + istv * 10000;
320 label_base.push_back(label);
326 for(
int ilyr = 0; ilyr < 3; ++ilyr)
332 int label = 1 + ilyr * 1000000 + istv * 10000 + isnsr * 10;
333 label_base.push_back(label);
346 std::vector<int> label_base;
350 int label = 1 + 3 * 1000000 + 0;
351 label_base.push_back(label);
355 for(
int ilyr = 3; ilyr < 7; ++ilyr)
357 int label = 1 + ilyr * 1000000 + 0;
358 label_base.push_back(label);
363 for(
int ilyr = 3; ilyr < 7; ++ilyr)
367 int label = 1 + ilyr * 1000000 + istv * 10000;
368 label_base.push_back(label);
374 for(
int ilyr = 3; ilyr < 7; ++ilyr)
380 int label = 1 + ilyr * 1000000 + istv * 10000 + isnsr * 10;
381 label_base.push_back(label);
394 std::vector<int> label_base;
398 for(
int isec = 0; isec < 72; ++isec)
400 int label = 1 + 7 * 1000000 + isec * 10000;
401 label_base.push_back(label);
412 std::vector<int> labels;
413 for(
unsigned int ilbl = 0; ilbl < label_base.size(); ++ilbl)
415 for(
int ipar=0; ipar < 6; ++ipar)
417 int label_plus = label_base[ilbl] + ipar;
418 labels.push_back(label_plus);
427 std::cout <<
" float buffer: "
429 <<
" " << residual(index);
430 for (
int il = 0; il <
NLC; ++il)
432 if (lcl_derivative[il] != 0) std::cout <<
" lcl_deriv[" << il <<
"] " << lcl_derivative[il] <<
" ";
434 std::cout <<
" sigma "
435 <<
" " << clus_sigma(index) <<
" ";
436 for (
int ig = 0; ig <
NGL; ++ig)
438 if (glbl_derivative[ig] != 0) std::cout <<
" glbl_deriv[" << ig <<
"] " << glbl_derivative[ig] <<
" ";
440 std::cout <<
" int buffer: "
444 for (
int il = 0; il <
NLC; ++il)
446 if (lcl_derivative[il] != 0) std::cout <<
" lcl_label[" << il <<
"] " << il + 1 <<
" ";
450 for (
int ig = 0; ig <
NGL; ++ig)
452 if (glbl_derivative[ig] != 0) std::cout <<
" glbl_label[" << ig <<
"] " << glbl_label[ig] <<
" ";
454 std::cout <<
" end of meas " << std::endl;