Compare TGeoShape

From: Jason Webb <jwebb_at_rcf.rhic.bnl.gov>
Date: Wed, 14 Jul 2010 17:03:00 -0400


Hi ROOTers,

Is there a simple way to compare two TGeoShapes to each other? Specifically I am interested in functionality like

TGeoShape *shape1 = ...
TGeoShape *shape2 = ...

if ( shape1->IsEqualTo(shape2) )
{

   std::cout << "same"<<std::endl;
}

where shape1 and shape2 are any of the TGeo shapes, and the 'IsEqualTo' function would return true if they are of the same class and have the same parameters.

Thanks,
Jason Received on Wed Jul 14 2010 - 23:03:08 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 15 2010 - 11:50:01 CEST