Helper script for showing of extracted / simplified geometries.
By default shows a simplified ALICE geometry.
void show_extract(
const char*
file=
"csg.root")
{
const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
while (
auto key = (
TKey *)next())
{
if (extract_class == key->GetClassName())
{
}
}
if (!eve_shape)
{
Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
return;
}
}
void Error(const char *location, const char *msgfmt,...)
static REveGeoShape * ImportShapeExtract(REveGeoShapeExtract *gse, REveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
TGeoShape * GetShape() const
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
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.
virtual void Draw(Option_t *option="")
Draw this shape.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
REX::REveManager * eveMng
- Author
- Matevz Tadel
Definition in file show_extract.C.