22void show_extract(
const char* file=
"csg.root")
27 auto eveMng = REX::REveManager::Create();
33 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
37 while (
auto key = (
TKey *)next())
39 if (extract_class == key->GetClassName())
42 eve_shape = REX::REveGeoShape::ImportShapeExtract(gse,
nullptr);
49 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
TGeoShape * GetShape() const
void AddGlobalElement(REveElement *element, REveElement *parent=nullptr)
Add a global element, i.e.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Draw(Option_t *option="") override
Draw this shape.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
ROOT::Experimental::REveManager * eveMng