********************
*This example shows how one can obtain the cluster size
*distribution for tracks generated by the Heed program.
*Since Heed does not generate clusters but always delta
*electrons (they usually have a very short range), we use
*the NODELTA-ELECTRONS option on the TRACK command. This compresses
*the delta electrons into clusters.
*********************
global volt=1410.
global wire=0.002500
global pos=0.1
&cell
*pl x -1
*pl x +1
*period y 1
*rows
*s * * 0 0 1410.
*
tube radius 0.2 voltage 0
rows
s 1 {wire} 0 0 {volt}

&gas
global gas_file `xe_80_co2_20.gas`
global p 760
global gas_member `xeco2`
call inquire_member(gas_file,gas_member,`gas`,exist)
get {gas_file,gas_member}
heed xenon 80 co2 20
*opt gas-print
* opt gas-plot

&drift
global pos=0.03422
track {pos} -0.2 {pos} 0.2 electron energy 5000 ...
    nodelta notrace-delta-electrons nomultiple-scattering 
*track {pos} -0.2 {pos} 0.2 electron energy 5000 ...
*     delta-electrons notrace-delta-electrons nomultiple-scattering
*track {pos} -0.2 {pos} 0.2 electron energy 5000 ...
*     delta-electrons trace-delta-electrons nomultiple-scattering
&QUIT
