I fixed bugs and updated in the current script written by Ole in ~adaq/extract_SRC_charge.sh
The usage is: ~adaq/extract_SRC_charge.sh [Target=4He] Candidates for target is: LH2, LD, 4He, Optics
The bug is that some files it can not take care of a negative charge count. (Some EndofRun log will give a negative charge count!!!)
The previous version can read only for 4He target. I changed it such that it will sum up the charge for other target too.