3 |
ClassImp(AcLevel2); |
ClassImp(AcLevel2); |
4 |
|
|
5 |
AcLevel2::AcLevel2() { |
AcLevel2::AcLevel2() { |
6 |
|
this->Clear(); |
7 |
|
} |
8 |
|
|
9 |
|
void AcLevel2::Clear(){ |
10 |
status[0]=0; |
status[0]=0; |
11 |
hitmap[0]=0; |
hitmap[0]=0; |
12 |
hitstatus[0]=0; |
hitstatus[0]=0; |
13 |
trigger[0]=0; |
trigger[0]=0; |
|
//OBT=0ULL; |
|
|
//pro_num=0; |
|
|
//pkt_num=0ULL; |
|
14 |
status[1]=0; |
status[1]=0; |
15 |
hitmap[1]=0; |
hitmap[1]=0; |
16 |
hitstatus[1]=0; |
hitstatus[1]=0; |
17 |
trigger[1]=0; |
trigger[1]=0; |
18 |
} |
unpackError=0; |
19 |
|
} |
20 |
|
|
21 |
|
/** |
22 |
|
* Fills a struct cAcLevel2 with values from a AcLevel2 object (to put data into a F77 common). |
23 |
|
*/ |
24 |
|
void AcLevel2::GetLevel2Struct(cAcLevel2 *l2) const{ |
25 |
|
for(int i=0;i<2;i++){ |
26 |
|
l2->status[i] = status[i]; |
27 |
|
l2->hitmap[i] = hitmap[i]; |
28 |
|
l2->hitstatus[i] = hitstatus[i]; |
29 |
|
l2->trigger[i] = trigger[i]; |
30 |
|
} |
31 |
|
} |
32 |
|
|
33 |
|
void AcLevel2::SetFromLevel2Struct(cAcLevel2 *l2){ |
34 |
|
for(int i=0;i<2;i++){ |
35 |
|
status[i] = l2->status[i]; |
36 |
|
hitmap[i] = l2->hitmap[i]; |
37 |
|
hitstatus[i] = l2->hitstatus[i]; |
38 |
|
trigger[i] = l2->trigger[i]; |
39 |
|
} |
40 |
|
} |