10const char* esd_geom_file_name =
11 "http://root.cern.ch/files/alice_ESDgeometry.root";
24 auto pgv = pev->GetGLViewer();
33 auto p = mng->GetProjection();
34 p->AddPreScaleEntry(0, 0, 4);
35 p->AddPreScaleEntry(0, 45, 1);
36 p->AddPreScaleEntry(0, 310, 0.5);
37 p->SetUsePreScale(
kTRUE);
41 auto p = mng->GetProjection();
43 p->AddPreScaleEntry(0, 0, 4);
44 p->AddPreScaleEntry(1, 0, 4);
46 p->AddPreScaleEntry(0, 45, 1);
47 p->AddPreScaleEntry(1, 110, 1);
49 p->AddPreScaleEntry(0, 310, 0.5);
50 p->AddPreScaleEntry(1, 250, 0.5);
51 p->SetUsePreScale(
kTRUE);
62 auto geom =
TFile::Open(esd_geom_file_name,
"CACHEREAD");
71 mng->ImportElements(gsre);
75 for (
Int_t i=0; i<160; ++i)
76 line->SetNextPoint(120*
sin(0.2*i), 120*
cos(0.2*i), 80-i);
78 mng->ImportElements(
line);
88 auto sp = smng->GetProjection();
89 sp->SetUsePreScale(
kTRUE);
90 sp->AddPreScaleEntry(2, 0, 1);
91 sp->AddPreScaleEntry(2, 100, 0.2);
97 smng->ImportElements(gsre);
R__EXTERN TEveManager * gEve
virtual void AddElement(TEveElement *el)
Add el to the list of children.
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.
An arbitrary polyline with fixed line and marker attributes.
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TEveBrowser * GetBrowser() const
TGListTreeItem * AddToListTree(TEveElement *re, Bool_t open, TGListTree *lt=0)
TEveViewer * SpawnNewViewer(const char *name, const char *title="", Bool_t embed=kTRUE)
Create a new GL viewer.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
Axes for non-linear projections.
Manager class for steering of projections and managing projected objects.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
Orthographic projection camera.
void SetZoomMinMax(Double_t min, Double_t max)
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
TGTab * GetTabRight() const
void projection_prescale(std::string type="RhPhi")
static constexpr double s