Gamma filter using UI commands

Hi Everyone,

I am attempting to plot a gamma energy spectrum using the following macro file.

/score/create/boxMesh box11
/score/mesh/boxSize 11. 11. 11. cm
/score/mesh/nBin 80 80 80

/score/quantity/energyDeposit eDep MeV
/score/filter/particle gammaFilter gamma

/run/setCut 10 cm
/run/beamOn 100000
/score/dumpQuantityToFile box11 eDep cut1.csv

However, when I run this I get the following output.

G4WT3 > ### deleting gammaFilter 0x7fccf001ab90
G4WT0 > ### deleting gammaFilter 0x7fcd0001ab90
G4WT1 > ### deleting gammaFilter 0x7fccf801ab90
G4WT2 > ### deleting gammaFilter 0x7fccfc01ab90

deleting gammaFilter 0x2765a60

I am unsure why this is happening.
Any help would be very appreciated.


Hi Jason_T,

Please try this

/score/dumpQuantityToFile box11 eDep eDep.csv

and not " /score/dumpQuantityToFile box11 eDep cut1.csv "

I hope it helps. Good luck!