Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches

Detailed Description

{
// gGeoManager->GetVolume("TRAK")->InvisibleAll();
}
TGeoNode *getNodeFromPath(TGeoNode *top, std::string path)
{
TGeoNode *node = top;
std::istringstream f(path);
std::string s;
while (getline(f, s, '/'))
node = node->GetVolume()->FindNode(s.c_str());
return node;
}
void geoTopNode()
{
using namespace ROOT::Experimental;
auto eveMng = REveManager::Create();
eveMng->AllowMultipleRemoteConnections(false, false);
// tracker barrel
auto data = new REveGeoTopNodeData("https://root.cern/files/cms.root");
data->InitPath("/CMSE_1/TRAK_1/SVTX_1");
data->RefDescription().SetVisLevel(2);
eveMng->GetWorld()->AddElement(data);
// 3D GL representation
auto geoViz = new REveGeoTopNodeViz();
geoViz->SetGeoData(data);
data->AddNiece(geoViz);
eveMng->GetEventScene()->AddElement(geoViz);
geoViz->SetPickable(true);
eveMng->Show();
}
#define f(i)
Definition RSha256.hxx:104
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
R__EXTERN TGeoManager * gGeoManager
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Definition TFile.cxx:4338
TGeoVolume * GetVolume(const char *name) const
Search for a named volume. All trailing blanks stripped.
void DefaultColors(const TGeoColorScheme *cs=nullptr)
Set default volume colors according to A of material.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Definition TGeoNode.h:39
TGeoVolume * GetVolume() const
Definition TGeoNode.h:100
void SetTransparency(Char_t transparency=0)
Definition TGeoVolume.h:378
void SetLineColor(Color_t lcolor) override
Set the line color.
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
Namespace for ROOT features in testing.
Definition TROOT.h:100
Author
Alja Mrak-Tadel

Definition in file geoTopNode.C.