Message: Scoring From Within Stepping Action In a Volume Defined In DetectorConstruction.cc - Similar to Example N03 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Scoring From Within Stepping Action In a Volume Defined In DetectorConstruction.cc - Similar to Example N03 

Forum: Biasing and Scoring
Date: 19 Dec, 2012
From: Ben Hug <Ben Hug>

Hi,

Im trying to score either the energy depositied or the dose in a square box (detector) within a water phantom with particles incident on the water phantom from the z direction. I only want to score the dose within the box only and am not intersted about the dose deposited in the medium surround the detector.

In SteppingAction.cc from the Example N03 there is a few lines (59 onwards) where they seem to find out what volume the particle track is in and if it is within a particular volume.

The volume name is detector/logical_detectorVolume/physical_detectorVolume and is defined in the DetectorConstruction.

I have not made any changes to the SteppingAction.cc file of N03.. can anyone give me pointers on how I can include in stepping action that I want to accumulate the energy deposited in this detector volume only and then write to file?

Thanks in advance,

Cheers

Ben

 Add Message Add Message
to: "Scoring From Within Stepping Action In a Volume Defined In DetectorConstruction.cc - Similar to Example N03"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews