22 for (
Int_t i=0; i < npoints; ++i)
23 ps->SetNextPoint(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
25 ps->SetMarkerColor(color);
26 ps->SetMarkerSize(3+
r.Uniform(1, 2));
27 ps->SetMarkerStyle(4);
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://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);
88 p->GetListOfPrimitives()->Add(
s);
91 for (
int i = 0; i < 200; ++i)
95 p->GetListOfPrimitives()->Add(
line,
"LINE");
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.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
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.
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 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.
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)
RVec< PromoteType< T > > cos(const RVec< T > &v)
RVec< PromoteType< T > > sin(const RVec< T > &v)
static constexpr double s
static constexpr double ps