GmxInterface gmxInterface;
gmxInterface.enableLogVolDeDuplication(true);
gmxInterface.enablePhysVolDeDuplication(true);
gmxInterface.enableShapeDeDuplication(true);
gmxInterface.enableTransformDeDuplication(true);
/// Then pipe the interface to the gmx2Geo class
Gmx2Geo gmx2Geo(geomodel_xml_dir + std::string("/") + f, muonEnvelope,
gmxInterface, 0, "", proc);
GeoIntrusviePtr<RCBase>
GeoIntrusivePtr<GeoShape> myBox = make_intrusive<GeoBox>(10,10,10);
std::cout<<dynamic_pointer_cast<GeoBox>(myBox)->getHalfLengthX()<<std::endl;
Introduce environment variables to toggle the GeoDeDuplication mechanisms in the GMXPlugin
export GMX_USE_SHAPEDEDUPL=1 # Remove equivalent instances of shapes
export GMX_USE_LOGVOLDEDUPL=1 # Remove equivalent instances of logical volumes
export GMX_USE_PHYSVOLDEDUPL=1 #Remove equivalent istances of physical volumes
export GMX_USE_TRANSFDEDUPL=1 #Remove equivalent instances of transforms
Tagging : @nstyles, @pagessin, @dshope, @boudreau, @tsulaia, @ncalace, @mbandier