1 |
mocchiut |
1.1 |
#include <TObject.h> |
2 |
|
|
#include <AcLevel2.h> |
3 |
|
|
ClassImp(AcLevel2); |
4 |
|
|
|
5 |
|
|
AcLevel2::AcLevel2() { |
6 |
mocchiut |
1.5 |
this->Clear(); |
7 |
mocchiut |
1.1 |
} |
8 |
mocchiut |
1.2 |
|
9 |
|
|
void AcLevel2::Clear(){ |
10 |
|
|
status[0]=0; |
11 |
|
|
hitmap[0]=0; |
12 |
|
|
hitstatus[0]=0; |
13 |
|
|
trigger[0]=0; |
14 |
|
|
status[1]=0; |
15 |
|
|
hitmap[1]=0; |
16 |
|
|
hitstatus[1]=0; |
17 |
|
|
trigger[1]=0; |
18 |
mocchiut |
1.5 |
unpackError=0; |
19 |
mocchiut |
1.2 |
} |
20 |
pam-fi |
1.3 |
|
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 |
|
|
} |