Compare commits
2 commits
7898046c26
...
97584ee496
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97584ee496 | ||
|
|
0425492016 |
1 changed files with 3 additions and 8 deletions
11
irena.c
11
irena.c
|
|
@ -1476,7 +1476,7 @@ double mV_calib[NC] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||||
static int have_let(int c)
|
static int have_let(int c)
|
||||||
{
|
{
|
||||||
for (int i=0; i<NI; i++)
|
for (int i=0; i<NI; i++)
|
||||||
if (high_gain_ch[i] == c
|
if ((high_gain_ch[i] == c || low_gain_ch[i]==c)
|
||||||
&& coinc_ch[i] >= 0
|
&& coinc_ch[i] >= 0
|
||||||
&& coinc_ch[i] < NC)
|
&& coinc_ch[i] < NC)
|
||||||
return i;
|
return i;
|
||||||
|
|
@ -1505,15 +1505,10 @@ void incr_histograms(struct event *ev)
|
||||||
hists.dose[lg] += mV[lg];
|
hists.dose[lg] += mV[lg];
|
||||||
else if (mV[hg] >= dose_min)
|
else if (mV[hg] >= dose_min)
|
||||||
hists.dose[hg] += mV[hg];
|
hists.dose[hg] += mV[hg];
|
||||||
}
|
|
||||||
for (int i=0; i<NI; i++) {
|
|
||||||
int hg = high_gain_ch[i];
|
|
||||||
if (hg < 0)
|
|
||||||
continue;
|
|
||||||
int ohg = coinc_ch[i];
|
int ohg = coinc_ch[i];
|
||||||
if (ohg < 0 || ohg >= NC)
|
if (ohg < 0 || ohg >= NC)
|
||||||
continue;
|
continue;
|
||||||
int lg = low_gain_ch[i];
|
|
||||||
if (lg < 0)
|
if (lg < 0)
|
||||||
lg = hg;
|
lg = hg;
|
||||||
int olg = -1;
|
int olg = -1;
|
||||||
|
|
@ -2818,7 +2813,7 @@ int process_cmd(char *l)
|
||||||
int nn = n->size;
|
int nn = n->size;
|
||||||
if (!nn)
|
if (!nn)
|
||||||
nn=1;
|
nn=1;
|
||||||
if (nn>1 && na>=2 && !index_number(*aa, &ii)) {
|
if (nn>1 && na>=1 && !index_number(*aa, &ii)) {
|
||||||
aa++;
|
aa++;
|
||||||
na--;
|
na--;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue