34 auto eveMng = REX::REveManager::Create();
37 eveMng->GetViewers()->FirstChild()->SetRnrSelf(
false);
39 auto scene =
eveMng->SpawnNewScene(
"Lego",
"LegoView");
40 auto view =
eveMng->SpawnNewViewer(
"Lego",
"");
41 view->AddScene(
scene);
44 scene->AddElement(ps);
48 p->SetMargin(0, 0, 0, 0);
51 const char *
histFile =
"http://root.cern/files/cms_calo_hist.root";
59 ecalHist->GetXaxis()->SetLabelSize(1);
60 ecalHist->GetXaxis()->SetTitle(
"#eta");
61 ecalHist->GetYaxis()->SetLabelSize(1);
62 ecalHist->GetYaxis()->SetTitle(
"#varphi");
63 ecalHist->GetZaxis()->SetLabelSize(1);
70 for (
int i = 0; i < 200; ++i)
71 line->SetPoint(i, std::cos(i * 0.1), std::sin(i * 0.1), i * 0.25);
int Int_t
Signed integer 4 bytes (int)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TRandom * gRandom
void SetTitle(const std::string &title)
Set title of an element.
void SetMarkerColor(Color_t col) override
Set the marker color.
void SetMarkerSize(Size_t msize=1) override
Set marker size, propagate to projecteds.
int SetNextPoint(float x, float y, float z)
void SetMarkerStyle(Style_t mstyle=1) override
Set marker style, propagate to projecteds.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
static TString Encode(const char *data)
Transform data into a null terminated base64 string.
static TString ToJSON(const T *obj, Int_t compact=0, const char *member_name=nullptr)
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.
Graphics object made of three arrays X, Y and Z with the same number of points each.
2-D histogram with a float per channel (see TH1 documentation)
The Histogram stack class.
virtual void Add(TH1 *h, Option_t *option="")
Add a new histogram to the list.
void Draw(Option_t *chopt="") override
Draw this stack with its current attributes.
The most important graphics class in the ROOT system.
This is the base class for the ROOT Random number generators.
Namespace for ROOT features in testing.