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