ICP  1
isiscrpt_items.h
Go to the documentation of this file.
1 
2 struct char_item { const char* name; const char* val; };
3 struct int_item { const char* name; const int* pi; };
4 struct real_item { const char* name; const float* pf; };
5 
6 // must use pointers for dimension values as these may change during teh lifetime of the ICPe
7 // and this list is evaluated only once at first function call
8 struct int_array_item { const char* name; const int* pi; const int* dim0; const int* dim1; };
9 struct real_array_item { const char* name; const float* pf; const int* dim0; const int* dim1; };
10 
11 static char_item char_items[] = {
12  { "TITL", this->long_title },
13  { "NAME", this->inst_name },
14  { "USER", this->user_name }
15 };
16 
17 static real_item real_items[] = {
18  { "L1", &(this->i_l1) }
19 };
20 
21 static int always_one = 1;
22 
23 static int_item int_items[] = {
24  { "RUN_STATUS", &(this->run_status) },
25  { "SE_STATUS", &(this->se_status) },
26  { "NTC1", &(this->ntc[0]) },
27  { "NTC2", &(this->ntc[1]) },
28  { "NTC3", &(this->ntc[2]) },
29  { "NTC4", &(this->ntc[3]) },
30  { "NSP1", &(this->nsp[0]) },
31  { "NSP2", &(this->nsp[1]) },
32  { "NSP3", &(this->nsp[2]) },
33  { "NSP4", &(this->nsp[3]) },
34  { "NPER", &(this->nper) },
35  { "NDET", &(this->ndet) },
36  { "NPER", &(this->nper) },
37  { "NUSE", &(this->nuse) },
38  { "NMON", &(this->nmon) },
39  { "PRE1", &(always_one) }, // prescale for 32Mhz clock, TR1 on old DAE1; not used on DAE2
40  { "RUN", &(this->run_number) }
41 };
42 
44  { "MDET", this->mdet.data(), &(this->nmon), 0 },
45  { "SPEC", this->spec, &(this->ndet), 0 },
46  { "UDET", this->udet, &(this->ndet), 0 }
47 };
48 
50  { "TTHE", this->tthe, &(this->ndet), 0 },
51  { "LEN2", this->len2, &(this->ndet), 0 },
52  { "DELT", this->delt, &(this->ndet), 0 },
53  { "PHI", &(this->ut[0]), &(this->ndet), 0 }, //assume UT01
54  { "UT01", &(this->ut[0]), &(this->ndet), 0 }
55 // { "UT02", &(this->ut[1][0]), &(this->ndet), 0 }
56 };
const char * name
Definition: isiscrpt_items.h:4
const float * pf
Definition: isiscrpt_items.h:9
static int always_one
const char * name
Definition: isiscrpt_items.h:2
const int * pi
Definition: isiscrpt_items.h:3
const int * dim1
Definition: isiscrpt_items.h:8
static char_item char_items[]
const char * name
Definition: isiscrpt_items.h:9
static real_item real_items[]
static int_array_item int_array_items[]
const int * pi
Definition: isiscrpt_items.h:8
const char * name
Definition: isiscrpt_items.h:8
static int_item int_items[]
const float * pf
Definition: isiscrpt_items.h:4
const int * dim0
Definition: isiscrpt_items.h:8
const int * dim1
Definition: isiscrpt_items.h:9
static real_array_item real_array_items[]
const char * val
Definition: isiscrpt_items.h:2
const int * dim0
Definition: isiscrpt_items.h:9
const char * name
Definition: isiscrpt_items.h:3