36 eveMng->GetViewers()->FirstChild()->SetRnrSelf(
false);
38 auto scene =
eveMng->SpawnNewScene(
"Lego",
"LegoView");
39 auto view =
eveMng->SpawnNewViewer(
"Lego",
"");
40 view->AddScene(scene);
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);
93 line->SetLineWidth(5);
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
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
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 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 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.
void Add(TObject *obj) override
The most important graphics class in the ROOT system.
TList * GetListOfPrimitives() const override
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
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)