--- DarthVader/NDLevel2/src/NDLevel2.cpp 2006/05/19 13:15:26 1.1.1.1 +++ DarthVader/NDLevel2/src/NDLevel2.cpp 2006/07/21 10:58:10 1.3 @@ -6,4 +6,25 @@ trigPhysics(0) {} +void NDLevel2::Clear(){ + upperBack = 0.; + bottomBack = 0.; + trigPhysics = 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)