Location: $SCIG/examples/scintillator_array



The setup is an array of scintillator bars in a cylindrical configuration. The bars are trapezoids to maximize the surface area.

The geometry is constructed using the python script:

./scintillator_array.py


The output is defined by the entry +goutput in the jcard ‘scintillator_array.jcard’. Two format are written out: ‘text’ and ‘root’.

Sets the desired number of cores, number of events, and verbosity in the jcard ‘scintillator_array.jcard’. To run gemc:

gemc scintillator_array.jcard 

Use the -gui option to run interactively:

gemc simple_flux.jcard -gui

The geometry looks like this:

scint_array


Another picture with 1000 events, with hits in the sensitive bars:

scint_hits

After running, the produced root file can be inspected:

root
TFile f("events.root")
f.ls()

This will show the following branches in the output file:

The variables’ names in each branch can be listed and plotted. For example:

digitized_flux->Print()
digitized_flux->Draw("eTot:bar_id>>(37, 0, 38, 100, 20.0, 20.6)", "eTot>20", "colz")
trueInfo_flux->Draw("avgy:avgx>>(400, -400, 400, 400, -400, 400)", "", "colz")

will show the energy deposited in the bars versus bar id and the hit positions in the x-y plane:

[eTot_vs_bar_id]

[avgy_vs_avgx]



The code that produce the geometry: