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 HITS120<br />

Origin : R.Brun Submitted: 01.11.83<br />

Revision : Revised: 17.12.93<br />

Documentation :<br />

DETector Digitisation parameters<br />

CALL GSDETD<br />

(CHSET,CHDET,ND,CHNMSD,NBITSD)<br />

CHSET<br />

CHDET<br />

ND<br />

CHNMSD<br />

NBITSD<br />

(CHARACTER*4) set name;<br />

(CHARACTER*4) detector name;<br />

(INTEGER) number of elements per digitisation;<br />

(CHARACTER*4) array of ND names for the digitisation elements;<br />

(INTEGER) array of ND, NBITSD(I) (I=1,...,ND) is the number of bits into which to pack the<br />

I th element of the digit.<br />

Defines digitisation parameters for detector CHDET of set CHSET. The routine must be called at initialisation,<br />

after the geometrical volumes have been defined, to describe the digitisation elements and the way to pack<br />

them in the data structure JDIGI.<br />

Example<br />

Following on from the example in [HITS110], we want to add the digitisation information to detector EPHI<br />

of set ECAL. The information which should be stored for each digitisation is the ADC pulse height in the<br />

lead glass block, so that a digitisation in this scheme could look like:<br />

Element<br />

Value<br />

EPHI 12<br />

EZRI 41<br />

BLOC 3<br />

ADC 789<br />

The code to define the digitisation information could be:<br />

CHARACTER*4 CHNMSD<br />

DATA CHNMSD/’ADC ’/<br />

DATA NBITSD/16/<br />

CALL GSDETD(’ECAL’,’BLOC’,1,CHNMSD,NBITSD)<br />

CALL GFDETD<br />

(CHSET,CHDET,ND*,CHNMSD*,NBITSD*)<br />

Returns the digitisation parameters for detector CHDET of set CHSET. All arguments as explained in GSDETD.<br />

161 HITS120 – 1

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

Saved successfully!

Ooh no, something went wrong!