22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geant 3.16 GEANT User’s Guide BASE400<br />

Origin : R.Brun, F.Carena Submitted: 01.10.84<br />

Revision : Revised: 16.12.93<br />

Documentation :<br />

Debugging facilities<br />

The flags IDEBUG, ITEST and ISWIT(1-10) are available to in the common /GCFLAG/ for debug control<br />

[BASE030]. The array ISWIT is filled through the data record SWIT. Some flags are used by GHEISHA<br />

[PHYS510] and by the routine GDEBUG.<br />

The flag IDEBUG is set to 1 in GTRIGI for the events with sequence number from IDEMIN to IDEMAX,<br />

as specified by the user on the data record DEBU. IfIDEMIN is negative, debug is activated also in the<br />

initialisation phase.<br />

The flag ITEST, set by the user via the data record DEBU, is also used by GTRIGI. The sequence number, the<br />

event number and the random numbers seeds are printed at the beginning of each event every ITEST from<br />

IDEMIN to IDEMAX.<br />

1 Debug of data structures<br />

The contents of the data structures can be dumped by the routine<br />

CALL GPRINT<br />

(CHNAME,NUMB)<br />

CHNAME<br />

NUMB<br />

(CHARACTER*4) name of a top level data structure;<br />

(INTEGER) number of the substructure to be printed, 0 for all.<br />

Examples<br />

• CALL GPRINT(’KINE’,0) prints all banks JKINE;<br />

• CALL GPRINT(’KINE’,8) prints JKINE bank for track 8;<br />

• CALL GPRINT(’VOLU’,0) prints all existing volumes.<br />

The following names are recognised:<br />

DIGI,HITS,KINE,MATE,VOLU,ROTM,SETS,TMED,PART,VERT,JXYZ<br />

GPRINT calls selectively the routines:<br />

GPDIGI(’*’,’*’) GPHITS(’*’,’*’) GPKINE(NUMB) GPMATE(NUMB)<br />

GPVOLU(NUMB) GPROTM(NUMB) GPSETS(’*’,’*’) GPTMED(NUMB)<br />

GPPART(NUMB) GPVERT(NUMB) GPJXYZ(NUMB)<br />

These routines can be called directly by the user. In case of SETS, HITS and DIGI the content of all detectors<br />

of all sets will be printed, so NUMB is irrelevant.<br />

39 BASE400 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!