Hello,
I have a couple questions about using the Eve event display in ROOT…
I use the following ROOT macro for testing:
{
TEveManager::Create();
gEve->RegisterGeometryAlias("Default", "http://www.slac.stanford.edu/~jeremym/ldmx/detector.root");
gGeoManager = gEve->GetDefaultGeometry();
TGeoNode* node1 = gGeoManager->GetTopVolume()->FindNode("em_calorimeters_PV");
TEveGeoTopNode* ecal = new TEveGeoTopNode(gGeoManager, node1);
gEve->AddGlobalElement(ecal);
TGeoNode* node2 = gGeoManager->GetTopVolume()->FindNode("hadronic_calorimeter_PV");
TEveGeoTopNode* hcal = new TEveGeoTopNode(gGeoManager, node2);
gEve->AddGlobalElement(hcal);
gEve->Redraw3D(kTRUE);
}
A geometry does load but there are some issues with it:
-
For some reason, my macro doesn’t function similarly to the examples I have seen in tutorials when adding elements to the scene. Instead of seeing multiple top elements, I only end up seeing one of the them in the GL viewer (the hcal which is the last added so I assume it is overriding the other element for some reason). Though I can see both geometry components in the left-hand list. I can’t get both to display.
-
None of my visualization options that I set on the nodes, such as wireframe, hiding/showing daughters, etc. seem to have any affect even when I redraw. How do I get the scene to update when I set options? Redrawing doesn’t seem to do the trick.
-
I get this message when I start using the right click menus on the geom window:
Warning in <TGLRnrCtx::EndSelection>: Select buffer size (1024) insufficient. This is maximum.
Any advice on how to solve these issues?
Thanks.
–Jeremy