22 for (
Int_t i = 0; i < npoints; ++i)
33 auto eveMng = REX::REveManager::Create();
43 scene->AddElement(ps);
49 TPad *
p =
new TCanvas(
"LegoPad",
"Lego Pad Tit", 800, 400);
50 p->SetMargin(0, 0, 0, 0);
70 const char *
histFile =
"http://root.cern/files/cms_calo_hist.root";
73 auto ecalHist = (
TH2F *)hf->Get(
"ecalLego");
74 auto hcalHist = (
TH2F *)hf->Get(
"hcalLego");
77 ecalHist->SetFillColor(
kRed);
78 ecalHist->GetXaxis()->SetLabelSize(1);
80 ecalHist->GetXaxis()->SetTitle(
"#eta");
81 ecalHist->GetYaxis()->SetLabelSize(1);
83 ecalHist->GetYaxis()->SetTitle(
"#varphi");
84 ecalHist->GetZaxis()->SetLabelSize(1);
86 hcalHist->SetFillColor(
kBlue);
91 for (
int i = 0; i < 200; ++i)
92 line->SetPoint(i, std::cos(i * 0.1), std::sin(i * 0.1), i * 0.25);
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
REveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
virtual Bool_t SetRnrSelf(Bool_t rnr)
Set render state of this element, i.e.
REveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
REveViewer * SpawnNewViewer(const char *name, const char *title="")
Create a new GL viewer.
REveViewerList * GetViewers() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
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 AddScene(REveScene *scene)
Add 'scene' to the list of scenes.
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.
ROOT::Experimental::REveManager * eveMng
REX::REvePointSet * createPointSet(int npoints=2, float s=2, int color=28)