1 |
#include <S4Level2.h> |
#include <S4Level2.h> |
2 |
|
|
3 |
S4Level2::S4Level2() : |
S4Level2::S4Level2(){ |
4 |
S4calibrated(0), |
this->Clear(); |
5 |
S4adc(0) {} |
} |
6 |
|
|
7 |
|
void S4Level2::Clear(){ |
8 |
|
S4calibrated = 0.; |
9 |
|
S4adc = 0.; |
10 |
|
unpackError = 0; |
11 |
|
} |
12 |
|
/** |
13 |
|
* Fills a struct cS4Level2 with values from a S4Level2 object (to put data into a F77 common). |
14 |
|
*/ |
15 |
|
void S4Level2::GetLevel2Struct(cS4Level2 *l2) const{ |
16 |
|
l2->S4calibrated = S4calibrated; |
17 |
|
l2->S4adc = S4adc; |
18 |
|
|
19 |
|
} |
20 |
|
|
21 |
|
void S4Level2::SetFromLevel2Struct(cS4Level2 *l2){ |
22 |
|
S4calibrated = l2->S4calibrated; |
23 |
|
S4adc = l2->S4adc; |
24 |
|
} |
25 |
|
|
26 |
|
|
27 |
ClassImp(S4Level2) |
ClassImp(S4Level2) |