35void generate_random(
Int_t i) {
38 r2 = (2*dr*
r->Rndm(i))-dr;
39 r3 = (2*dr*
r->Rndm(i))-dr;
40 r5 = (2*dr*
r->Rndm(i))-dr;
41 r6 = (2*dr*
r->Rndm(i))-dr;
42 r8 = (2*dr*
r->Rndm(i))-dr;
45void parallelcoordtrans() {
58 for (
Int_t i=0; i<1500; i++) {
59 r->Sphere(s1x, s1y, s1z, 0.1);
60 r->Sphere(s2x, s2y, s2z, 0.2);
61 r->Sphere(s3x, s3y, s3z, 0.05);
64 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, r8, r9);
68 nt->
Fill(s1x, s1y, s1z, s2x, s2y, s2z, r7, r8, r9);
72 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, s3y, r9);
76 nt->
Fill(s2x-1, s2y-1, s2z, s1x+.5, s1y+.5, s1z+.5, r7, r8, r9);
80 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, r8, r9);
84 nt->
Fill(s1x+1, s1y+1, s1z+1, s3x-2, s3y-2, s3z-2, r7, r8, r9);
88 nt->
Fill(r1, r2, r3, r4, r5, r6, s3x, r8, s3z );
97 nt->
Draw(
"x:y:z:u:v:w:a:b:c",
"",
"para");
114 nt->
Draw(
"x:y:z:u:v:w:a:b:c",
"",
"para");
128 c1->Print(
"parallelcoordtrans.pdf");
129 c1->Print(
"parallelcoordtrans.svg");
132 c1->Print(
"parallelcoordtrans.gif");
133 c1->Print(
"parallelcoordtrans.jpg");
134 c1->Print(
"parallelcoordtrans.png");
The color creation and management class.
virtual void SetAlpha(Float_t a)
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
A simple TTree restricted to a list of float variables only.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
void SetHistogramHeight(Double_t h=0)
Set the height of the bar histogram.
Parallel Coordinates class.
void SetLineColor(Color_t col)
This is the base class for the ROOT Random number generators.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.