30 for(
Int_t i = 0; i<npoints; i++)
32 ps->SetNextPoint(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
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
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
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=0)
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.
static constexpr double rad
static constexpr double s
static constexpr double ps
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
constexpr Double_t TwoPi()