50 TGeoVolume *top =
gGeoManager->MakeBox(
"Top",med, 10+5*rnd->Rndm(), 10+5*rnd->Rndm(), 10+5*rnd->Rndm());
57 double x = -8+16*rnd->Rndm();
58 double y = -8+16*rnd->Rndm();
59 double z = -8+16*rnd->Rndm();
67 if (rnd->Rndm() < 0.5)
72 for (
int j=0; j<50; j++)
76 if (rnd->Rndm() < 0.5)
77 track->SetLineColor(
kRed);
79 track->SetLineColor(
kBlue);
80 track->SetLineWidth(2);
82 track->AddPoint(
x,
y, z, 0);
83 track->AddPoint(-10 + 20*rnd->Rndm(), -10 + 20*rnd->Rndm(), -10 + 20*rnd->Rndm(), 0);
int Int_t
Signed integer 4 bytes (int).
externTGeoManager * gGeoManager
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Class describing rotation + translation.
void RegisterYourself() override
Register the matrix in the current manager, which will become the owner.
void SetTranslation(const TGeoTranslation &tr)
copy the translation component
The manager class for any TGeo geometry.
Base class describing materials.
void SetTransparency(Char_t transparency=0)
Media are used to store properties related to tracking and which are useful only when using geometry ...
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
void Draw(Option_t *option="") override
draw top volume according to option
void SetLineColor(Color_t lcolor) override
Set the line color.
Online http server for arbitrary ROOT application.
Bool_t Register(const char *subfolder, TObject *obj)
Register object in subfolder.
Bool_t Unregister(TObject *obj)
Unregister object.
Bool_t SetItemField(const char *fullname, const char *name, const char *value)
Set item field in sniffer.
Handles synchronous and a-synchronous timer events.
virtual void TurnOn()
Add the timer to the system timer list.