Model of a nucleus built from TGeo classes.
void nucleus(
Int_t nProtons = 40,
Int_t nNeutrons = 60)
{
ProtonRadius = 60,
NucleusRadius,
distance = 60;
while ( i< nProtons) {
x = (2 * x - 1) * NucleusRadius;
y = (2 * y - 1) * NucleusRadius;
z = (2 * z - 1) * NucleusRadius;
i++;
}
}
i = 0;
while ( i < nNeutrons) {
x = (2 * x - 1) * NucleusRadius;
y = (2 * y - 1) * NucleusRadius;
z = (2 * z - 1) * NucleusRadius;
i++;
}
}
}
- Author
- Otto Schaile
Definition in file nucleus.C.