43 while ( i< nProtons) {
47 x = (2 * x - 1) * NucleusRadius;
48 y = (2 * y - 1) * NucleusRadius;
49 z = (2 * z - 1) * NucleusRadius;
55 while ( i < nNeutrons) {
59 x = (2 * x - 1) * NucleusRadius;
60 y = (2 * y - 1) * NucleusRadius;
61 z = (2 * z - 1) * NucleusRadius;
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
Double_t distance(const TPoint2 &p1, const TPoint2 &p2)
virtual void Draw(Option_t *option="")
draw top volume according to option
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
TGeoVolume * MakeSphere(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360)
Make in one step a volume pointing to a sphere shape with given medium.
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
void nucleus(Int_t nProtons=40, Int_t nNeutrons=60)
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
R__EXTERN TRandom * gRandom
static RooMathCoreReg dummy
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void SetNsegments(Int_t nseg)
Set number of segments for approximating circles in drawing.
void SetVisLevel(Int_t level=3)
set default level down to which visualization is performed
Double_t Sqrt(Double_t x)