51 for (
Int_t i=0; i<10; i++)
65 cname = usepw ?
"cpw" :
"cnopw";
68 else c =
new TCanvas(cname,
"",800,600);
93 for (
Int_t i=0; i<10; i++) {
95 sag = 8.-0.494*(i-4.5)*(i-4.5);
void Print(Option_t *option="") const
Print the real and cpu time passed between the start and stop events.
TGeoPhysicalNode * MakePhysicalNode(const char *path=0)
Makes a physical node corresponding to a path.
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void AddNode(const char *path)
Add a node normally to this world. Overlapping nodes not allowed.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
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.
virtual void SetParallel()
Set the parallel option (default).
TGeoParallelWorld * GetParallelWorld() const
void Stop()
Stop the stopwatch.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
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.
void AddOverlap(TGeoVolume *vol, Bool_t activate=kTRUE)
To use this optimization, the user should declare the full list of volumes which may overlap with any...
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
void RandomRays(Int_t nrays=10000, Double_t startx=0, Double_t starty=0, Double_t startz=0, const char *target_vol=0, Bool_t check_norm=kFALSE)
Random raytracing method.
Int_t PrintDetectedOverlaps() const
Print the overlaps which were detected during real tracking.
virtual const char * GetName() const
Returns name of object.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
void SetUseParallelWorldNav(Bool_t flag)
Activate/deactivate usage of parallel world navigation.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a component to the assembly.
R__EXTERN TGeoManager * gGeoManager
Bool_t CloseGeometry()
The main geometry must be closed.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Bool_t Align(TGeoMatrix *newmat=0, TGeoShape *newshape=0, Bool_t check=kFALSE, Double_t ovlp=0.001)
Align a physical node with a new relative matrix/shape.
TGeoParallelWorld * CreateParallelWorld(const char *name)
Create a parallel world for prioritized navigation.
void parallel_world(Bool_t usepw=kTRUE, Bool_t useovlp=kTRUE)