31 for(
Int_t i = 0; i<npoints; i++)
33 ps->SetNextPoint(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
38 ps->SetMarkerSize(
r.Uniform(1, 2));
39 ps->SetMarkerStyle(4);
43 parent->AddElement(
ps);
62 for (
Int_t i=0; i<nps; ++i)
64 printf(
"level=%d nps=%d i=%d\n", level, nps, i);
65 ps = pointset(npoints, parent);
68 pointset_hierarchy(level, nps*fac, fac, npoints/fac,
ps);
84 l->SetMarkerSize(0.8);
87 l->InitBins(
"Charge", 9, 10, 100);
91 for (
Int_t i = 1; i <= 9; ++i)
94 l->GetBin(0) ->SetMainColor(
kGray);
95 l->GetBin(10)->SetMainColor(
kWhite);
98 for (
Int_t i = 0; i < 10000; ++i)
100 rad =
r.Uniform(60, 180);
102 z =
r.Uniform(-250, 250);
constexpr Double_t TwoPi()
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
static constexpr double ps
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
static constexpr double rad
An array of point-sets with each point-set playing a role of a bin in a histogram.
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
This is the base class for the ROOT Random number generators.
The TNamed class is the base class for all named ROOT classes.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
R__EXTERN TEveManager * gEve
char * Form(const char *fmt,...)
TEvePointSet is a render-element holding a collection of 3D points with optional per-point TRef and a...
R__EXTERN TRandom * gRandom
static constexpr double s
you should not use this method at all Int_t Int_t z
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...