10const char *esd_geom_file_name =
"http://root.cern/files/alice_ESDgeometry.root";
18 auto s =
gEve->SpawnNewScene(
"Projected Event");
19 gEve->GetDefaultViewer()->AddScene(s);
20 auto v =
gEve->GetDefaultGLViewer();
29 axes->SetTitle(
"TEveProjections demo");
35 auto geom =
TFile::Open(esd_geom_file_name,
"CACHEREAD");
43 gsre->SetPickableRecursively(
kTRUE);
44 gEve->AddGlobalElement(gsre);
46 mng->ImportElements(gsre);
50 for (
Int_t i = 0; i < 160; ++i)
51 line->SetNextPoint(120 *
sin(0.2 * i), 120 *
cos(0.2 * i), 80 - i);
53 mng->ImportElements(
line);
int Int_t
Signed integer 4 bytes (int).
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
An arbitrary polyline with fixed line and marker attributes.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Axes for non-linear projections.
Manager class for steering of projections and managing projected objects.
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.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Orthographic projection camera.
void SetZoomMinMax(Double_t min, Double_t max)
RVec< PromoteType< T > > cos(const RVec< T > &v)
RVec< PromoteType< T > > sin(const RVec< T > &v)