Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 651

root-tutorial-5.34.14-2.fc18.noarch.rpm

// Helper script for showing of extracted / simplified geometries.
// By default shows a simplified ALICE geometry.

void show_extract(const char* file="http://root.cern.ch/files/alice_ESDgeometry.root")
{
  TEveManager::Create();

  TFile::Open(file);

  TIter next(gDirectory->GetListOfKeys());
  TKey* key;
  TString xxx("TEveGeoShapeExtract");

  while ((key = (TKey*) next()))
  {
    if (xxx == key->GetClassName())
    {
      TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) key->ReadObj();
      TEveGeoShape* gs = TEveGeoShape::ImportShapeExtract(gse, 0);
      gEve->AddGlobalElement(gs);
    }
  }

  gEve->Redraw3D(kTRUE);
}