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)
gGeoManager = gEve->GetGeometry(file);
auto node = gGeoManager->GetTopNode();
if (!node) return ;
auto evenode = new TEveGeoTopNode(gGeoManager, node);
evenode->SaveExtract("test_extract.root", "Extract", false);
save_extract.C (442 Bytes)
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
@agheata if you will have time can you take a look, please? Thank you in advance!
@matevz who is the main author of TEve can help here.
I think you need ExpandIntoListTreesRecursively() otherwise it will only load top-levels as Eve objects.
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):
I’m looking for some more complex examples of TGeoNode usage within an Eve application, and the ROOT tutorials don’t seem to provide very much in this area.
All I find in tutorials/eve from ROOT 6.18 is the following:
$ grep TGeoNode *
geom_alice_its.C: TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
geom_alice_its.C:TEveGeoNode* descend_extract(TGeoNode* node)
geom_default.C: TGeoNode* node1 = gGeoManager->GetTopVolume()->FindNode("…
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.