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);
70 const char*
histFile =
"http://amraktad.web.cern.ch/amraktad/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);
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.
virtual void SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top)
Set all margins.
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 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::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
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 Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
virtual void Add(TObject *obj)
The most important graphics class in the ROOT system.
TList * GetListOfPrimitives() const override
void Modified(Bool_t flag=1) override
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)