30 for(
Int_t i = 0; i<npoints; i++)
32 ps->SetNextPoint(
r.Uniform(-s,s),
r.Uniform(-s,s),
r.Uniform(-s,s));
33 ps->SetPointId(
new TNamed(
Form(
"Point %d", i),
""));
37 ps->SetMarkerSize(
r.Uniform(1, 2));
38 ps->SetMarkerStyle(4);
41 parent->AddElement(ps);
57 for (
Int_t i=0; i<nps; ++i) {
58 printf(
"level=%d nps=%d i=%d\n", level, nps, i);
59 ps = pointset(npoints, parent);
61 pointset_hierarchy(level, nps*fac, fac, npoints/fac, ps);
77 l->SetMarkerSize(0.8);
80 l->InitBins(
"Charge", 9, 10, 100);
84 for (
Int_t i = 1; i <= 9; ++i)
87 l->GetBin(0) ->SetMainColor(
kGray);
88 l->GetBin(10)->SetMainColor(
kWhite);
91 for (
Int_t i = 0; i < 10000; ++i) {
92 rad =
r.Uniform(60, 180);
94 z =
r.Uniform(-250, 250);
R__EXTERN TEveManager * gEve
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
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
An array of point-sets with each point-set playing a role of a bin in a histogram.
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
The TNamed class is the base class for all named ROOT classes.
This is the base class for the ROOT Random number generators.
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
constexpr Double_t TwoPi()