show_extract.C

Go to the documentation of this file.
00001 // Helper script for showing of extracted / simplified geometries.
00002 // By default shows a simplified ALICE geometry.
00003 
00004 void show_extract(const char* file="http://root.cern.ch/files/alice_ESDgeometry.root")
00005 {
00006   TEveManager::Create();
00007 
00008   TFile::Open(file);
00009 
00010   TIter next(gDirectory->GetListOfKeys());
00011   TKey* key;
00012   TString xxx("TEveGeoShapeExtract");
00013 
00014   while ((key = (TKey*) next()))
00015   {
00016     if (xxx == key->GetClassName())
00017     {
00018       TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) key->ReadObj();
00019       TEveGeoShape* gs = TEveGeoShape::ImportShapeExtract(gse, 0);
00020       gEve->AddGlobalElement(gs);
00021     }
00022   }
00023 
00024   gEve->Redraw3D(kTRUE);
00025 }

Generated on Tue Jul 5 15:43:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1