3 |
ClassImp(TrigLevel2); |
ClassImp(TrigLevel2); |
4 |
|
|
5 |
TrigLevel2::TrigLevel2() { |
TrigLevel2::TrigLevel2() { |
|
|
|
6 |
evcount = 0; |
evcount = 0; |
7 |
for (Int_t kk=0; kk<3;kk++){ |
memset(pmtpl, 0, 3*sizeof(Int_t)); |
8 |
pmtpl[kk] = 0; |
memset(patternbusy, 0, 3*sizeof(Int_t)); |
9 |
patternbusy[kk] = 0; |
memset(trigrate, 0, 6*sizeof(Int_t)); |
10 |
} |
memset(patterntrig, 0, 6*sizeof(Int_t)); |
11 |
|
memset(dltime, 0, 2*sizeof(Int_t)); |
12 |
for (Int_t kk=0; kk<6;kk++){ |
memset(s4calcount, 0, 2*sizeof(Int_t)); |
13 |
trigrate[kk] = 0; |
memset(pmtcount1, 0, 24*sizeof(Int_t)); |
14 |
patterntrig[kk] = 0; |
memset(pmtcount2, 0, 24*sizeof(Int_t)); |
|
} |
|
|
|
|
|
for (Int_t kk=0; kk<2;kk++){ |
|
|
dltime[kk] = 0; |
|
|
s4calcount[kk] = 0; |
|
|
} |
|
|
|
|
|
for (Int_t kk=0; kk<24;kk++){ |
|
|
pmtcount1[kk] = 0; |
|
|
pmtcount2[kk] = 0; |
|
|
} |
|
|
|
|
15 |
trigconf = 0; |
trigconf = 0; |
16 |
} |
} |
17 |
|
|
18 |
void TrigLevel2::Clear(){ |
void TrigLevel2::Clear(){ |
|
|
|
19 |
evcount = 0; |
evcount = 0; |
20 |
for (Int_t kk=0; kk<3;kk++){ |
memset(pmtpl, 0, 3*sizeof(Int_t)); |
21 |
pmtpl[kk] = 0; |
memset(patternbusy, 0, 3*sizeof(Int_t)); |
22 |
patternbusy[kk] = 0; |
memset(trigrate, 0, 6*sizeof(Int_t)); |
23 |
} |
memset(patterntrig, 0, 6*sizeof(Int_t)); |
24 |
|
memset(dltime, 0, 2*sizeof(Int_t)); |
25 |
for (Int_t kk=0; kk<6;kk++){ |
memset(s4calcount, 0, 2*sizeof(Int_t)); |
26 |
trigrate[kk] = 0; |
memset(pmtcount1, 0, 24*sizeof(Int_t)); |
27 |
patterntrig[kk] = 0; |
memset(pmtcount2, 0, 24*sizeof(Int_t)); |
|
} |
|
|
|
|
|
for (Int_t kk=0; kk<2;kk++){ |
|
|
dltime[kk] = 0; |
|
|
s4calcount[kk] = 0; |
|
|
} |
|
|
|
|
|
for (Int_t kk=0; kk<24;kk++){ |
|
|
pmtcount1[kk] = 0; |
|
|
pmtcount2[kk] = 0; |
|
|
} |
|
|
|
|
28 |
trigconf = 0; |
trigconf = 0; |
29 |
} |
} |
30 |
|
|