If I try to export the extract from the geometry, I only get the top volume exported. I would like to have the whole tree in the extract. What I am doing wrong?
void save_extract(TString file)
{
TEveManager::Create();
gGeoManager = gEve->GetGeometry(file);
auto node = gGeoManager->GetTopNode();
if (!node) return ;
auto evenode = new TEveGeoTopNode(gGeoManager, node);
evenode->ExpandIntoListTrees();
gEve->AddGlobalElement(evenode);
gEve->Redraw3D(kTRUE);
evenode->SaveExtract("test_extract.root", "Extract", false);
}
You are getting me worried with the ALICE geometry there, this will probably get huge. There are ways of extracting geo shapes and matrices for specific geo paths on the fly, out of TGeo geometry – there was a post here about that here, let me dig it up (see the test2.C macro there):
Hi,
Thank you for this info. It might be worth to put the example in the tutorial/examples.
I just put the Alice detector as an example. Yes, you are right, the produced files are huge.