--- DarthVader/NDLevel2/src/NDLevel2.cpp 2006/05/19 13:15:26 1.1.1.1 +++ DarthVader/NDLevel2/src/NDLevel2.cpp 2006/11/09 17:05:45 1.4 @@ -1,9 +1,29 @@ #include -NDLevel2::NDLevel2() : - upperBack(0), - bottomBack(0), - trigPhysics(0) {} +NDLevel2::NDLevel2(){ + this->Clear(); +} +void NDLevel2::Clear(){ + upperBack = 0.; + bottomBack = 0.; + trigPhysics = 0.; + unpackError = 0; +} +/** + * Fills a struct cNDLevel2 with values from a NDLevel2 object (to put data into a F77 common). + */ +void NDLevel2::GetLevel2Struct(cNDLevel2 *l2) const{ + l2->upperback = upperBack; + l2->bottomback = bottomBack; + l2->trigphysics = trigPhysics; +} + + +void NDLevel2::SetFromLevel2Struct(cNDLevel2 *l2){ + upperBack = l2->upperback; + bottomBack = l2->bottomback; + trigPhysics = l2->trigphysics; +} ClassImp(NDLevel2)