--- DarthVader/S4Level2/src/S4Level2.cpp 2006/05/19 13:15:26 1.1.1.1 +++ DarthVader/S4Level2/src/S4Level2.cpp 2006/11/09 17:05:47 1.4 @@ -1,8 +1,27 @@ #include -S4Level2::S4Level2() : - S4calibrated(0), - S4adc(0) {} +S4Level2::S4Level2(){ + this->Clear(); +} + +void S4Level2::Clear(){ + S4calibrated = 0.; + S4adc = 0.; + unpackError = 0; +} +/** + * Fills a struct cS4Level2 with values from a S4Level2 object (to put data into a F77 common). + */ +void S4Level2::GetLevel2Struct(cS4Level2 *l2) const{ + l2->S4calibrated = S4calibrated; + l2->S4adc = S4adc; + +} + +void S4Level2::SetFromLevel2Struct(cS4Level2 *l2){ + S4calibrated = l2->S4calibrated; + S4adc = l2->S4adc; +} ClassImp(S4Level2)