Go to the source code of this file.
◆ set_vectors_of_collection_ids_and_size()
void set_vectors_of_collection_ids_and_size |
( |
std::vector< unsigned int > & |
element, |
|
|
std::vector< unsigned int > & |
nstraws, |
|
|
const unsigned int |
number_of_elements |
|
) |
| |
Definition at line 1 of file TRT_RDO_Elements.h.
19 element.resize(number_of_elements);
20 nstraws.resize(number_of_elements,24);
22 const unsigned int first_straw = 0x10000000
u;
28 for (
i=0;
i<32;
i++) {
29 for (j=0; j<6; j++) {
for (
k=0;
k<15;
k++) {
c++; element[
n++]=
c; };
c=
c+17; element[
n++]=
c; }
30 for (j=0; j<7; j++) {
for (
k=0;
k< 7;
k++) {
c++; element[
n++]=
c; };
c=
c+25; element[
n++]=
c; }
31 for (j=0; j<7; j++) {
c++; element[
n++]=
c; };
c=
c+601; element[
n++]=
c;
33 for (
i=0;
i<64;
i++) {
34 for (
k=0;
k<18;
k++) {
c++; element[
n++]=
c; };
c=
c+14; element[
n++]=
c;
35 for (
k=0;
k<23;
k++) {
c++; element[
n++]=
c; };
c=
c+9; element[
n++]=
c;
36 for (
k=0;
k<29;
k++) {
c++; element[
n++]=
c; };
c=
c+931; element[
n++]=
c;
38 for (
i=0;
i<32;
i++) {
39 for (j=0; j<6; j++) {
for (
k=0;
k<15;
k++) {
c++; element[
n++]=
c; };
c=
c+17; element[
n++]=
c; }
40 for (j=0; j<7; j++) {
for (
k=0;
k< 7;
k++) {
c++; element[
n++]=
c; };
c=
c+25; element[
n++]=
c; }
41 for (j=0; j<7; j++) {
c++; element[
n++]=
c; };
c=
c+601;
if (
n<number_of_elements) element[
n++]=
c;
45 for (
i=0;
i<number_of_elements;
i++) element[
i] = (element[
i]<<10)+first_straw;
53 for (
i=0;
i<64;
i++) {
55 for (j=0; j<4; j++) nstraws[
n++]=16;
56 for (j=0; j<5; j++) nstraws[
n++]=17;
57 for (j=0; j<5; j++) nstraws[
n++]=18;
58 for (j=0; j<3; j++) nstraws[
n++]=19;
59 nstraws[
n++]=18; nstraws[
n++]=19;
60 for (j=0; j<5; j++) nstraws[
n++]=20;
61 for (j=0; j<5; j++) nstraws[
n++]=21;
62 for (j=0; j<5; j++) nstraws[
n++]=22;
63 for (j=0; j<5; j++) nstraws[
n++]=23;
64 for (j=0; j<2; j++) nstraws[
n++]=24;
65 for (j=0; j<2; j++) nstraws[
n++]=23;
66 for (j=0; j<4; j++) nstraws[
n++]=24;
67 for (j=0; j<5; j++) nstraws[
n++]=25;
68 for (j=0; j<5; j++) nstraws[
n++]=26;
69 for (j=0; j<5; j++) nstraws[
n++]=27;
70 for (j=0; j<5; j++) nstraws[
n++]=28;
71 for (j=0; j<4; j++) nstraws[
n++]=29;