30 for (
Int_t i = 0; i < npoints; i++) {
31 ps->SetNextPoint(
r.Uniform(-s, s),
r.Uniform(-s, s),
r.Uniform(-s, s));
32 ps->SetPointId(
new TNamed(
Form(
"Point %d", i),
""));
36 ps->SetMarkerSize(
r.Uniform(1, 2));
37 ps->SetMarkerStyle(4);
40 parent->AddElement(ps);
56 for (
Int_t i = 0; i < nps; ++i) {
57 printf(
"level=%d nps=%d i=%d\n", level, nps, i);
58 ps = pointset(npoints, parent);
60 pointset_hierarchy(level, nps * fac, fac, npoints / fac, ps);
76 l->SetMarkerSize(0.8);
79 l->InitBins(
"Charge", 9, 10, 100);
83 for (
Int_t i = 1; i <= 9; ++i)
86 l->GetBin(0)->SetMainColor(
kGray);
87 l->GetBin(10)->SetMainColor(
kWhite);
90 for (
Int_t i = 0; i < 10000; ++i) {
91 rad =
r.Uniform(60, 180);
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
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 Int_t GetNumberOfColors()
static Int_t GetColorPalette(Int_t i)
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
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()