9 void nucleus(
Int_t nProtons = 40,
Int_t nNeutrons = 60)
47 while ( i< nProtons) {
51 x = (2 * x - 1) * NucleusRadius;
52 y = (2 * y - 1) * NucleusRadius;
53 z = (2 * z - 1) * NucleusRadius;
59 while ( i < nNeutrons) {
63 x = (2 * x - 1) * NucleusRadius;
64 y = (2 * y - 1) * NucleusRadius;
65 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.
The manager class for any TGeo geometry.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void Draw(Option_t *option="")
draw top volume according to option
Class describing translations.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
Base class describing materials.
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 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
Media are used to store properties related to tracking and which are useful only when using geometry ...
virtual void SetLineColor(Color_t lcolor)
Set the line color.
you should not use this method at all Int_t Int_t z
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)