void generate_random(
Int_t i) {
r1 = (2*dr*
r->Rndm(i))-dr;
r2 = (2*dr*
r->Rndm(i))-dr;
r7 = (2*dr*
r->Rndm(i))-dr;
r9 = (2*dr*
r->Rndm(i))-dr;
r4 = (2*dr*
r->Rndm(i))-dr;
r3 = (2*dr*
r->Rndm(i))-dr;
r5 = (2*dr*
r->Rndm(i))-dr;
r6 = (2*dr*
r->Rndm(i))-dr;
r8 = (2*dr*
r->Rndm(i))-dr;
}
void parallelcoord() {
new TCanvas(
"c1",
"c1",0,0,800,700);
nt =
new TNtuple(
"nt",
"Demo ntuple",
"x:y:z:u:v:w");
for (
Int_t i=0; i<20000; i++) {
r->Sphere(s1x, s1y, s1z, 0.1);
r->Sphere(s2x, s2y, s2z, 0.2);
r->Sphere(s3x, s3y, s3z, 0.05);
generate_random(i);
nt->
Fill(r1, r2, r3, r4, r5, r6);
generate_random(i);
nt->
Fill(s1x, s1y, s1z, s2x, s2y, s2z);
generate_random(i);
nt->
Fill(r1, r2, r3, r4, r5, r6);
generate_random(i);
nt->
Fill(s2x-1, s2y-1, s2z, s1x+.5, s1y+.5, s1z+.5);
generate_random(i);
nt->
Fill(r1, r2, r3, r4, r5, r6);
generate_random(i);
nt->
Fill(s1x+1, s1y+1, s1z+1, s3x-2, s3y-2, s3z-2);
generate_random(i);
nt->
Fill(r1, r2, r3, r4, r5, r6);
}
nt->
Draw(
"x:y:z:u:v:w",
"",
"para",5000);
}
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
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
A simple TTree restricted to a list of float variables only.
Int_t Fill() override
Fill a Ntuple with current values in fArgs.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
A TParallelCoordRange is a range used for parallel coordinates plots.
void AddRange(TParallelCoordRange *range)
Add a range to the current selection on the axis.
Parallel Coordinates class.
void AddSelection(const char *title)
Add a selection.
TParallelCoordSelect * GetCurrentSelection()
Return the selection currently being edited.
void SetDotsSpacing(Int_t s=0)
Set dots spacing.
This is the base class for the ROOT Random number generators.
void Draw(Option_t *opt) override
Default Draw method for all objects.