Compute Volume of TGeoVolume Objects

Hello,

Does there exist some method for TGeoVolume Objects that will automatically compute the volume of the given object?

Cheers

Hi,
Yes, depends how you want it. You can use:

to get the total volume, but you may also want to loop the volume daughters and subtract their capacity.

for (Int_t i=0; i<volume->GetNdaughters(); i++) { capacity -= volume->GetNode(i)->GetVolume()->GetShape()->Capacity() }

Cheers,

Thanks for the help!