Message: want to add a lower half water sensitive underneath the upperhalf bone slice Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question want to add a lower half water sensitive underneath the upperhalf bone slice 

Forum: Geometry
Date: 16 Feb, 2009
From: Kent Wong <Kent Wong>

Hi,

   I've attached an EventAction.cc and an illustration of my 20cm water-bone phantom. The DetectorConstruction.cc gives a full detail of my phantom construction.

   Every 0.5 cm along the z-axis of the phantom, there is a water sensitive volume of 0.01 cm. The upperhalf bone width is 1 cm located at z= 18cm. I want to place a lowerhalf water sensitive volume right underneath that upperhalf bone. That lowerhalf water will have a 1cm width. So I created a new class of LowerWater. The problem is in the EventAction.cc (i.e. "under void EventAction::EndOfEventAction(const G4Event* )"), I need to declare:

THIS
      lateral[34]=lowerwater_lat_in[0];
      lateral[35]=lowerwater_lat_out[0];

      horizontal[34]=lowerwater_hor_in[0];
      horizontal[35]=lowerwater_hor_out[0];

      direction[34]=lowerwater_dir_in[0];
      direction[35]=lowerwater_dir_out[0];

AND
THAT
      lateral[34]=bone_lat_in[0];
      lateral[35]=bone_lat_out[0];

      horizontal[34]=bone_hor_in[0];
      horizontal[35]=bone_hor_out[0];

      direction[34]=bone_dir_in[0];
      direction[35]=bone_dir_out[0];
At the same time, Because the upperhalf bone and lowerhalf water are located at the same z= 18cm. They cannot share the same indices. How do I go around that? 

Thanks, Kent

  Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/02/16/08.55-26211-P_code_src_EventAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/02/16/09.03-2727-Upperhalf_Bone_@_8_cm.doc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/02/16/09.05-76201-c_DetectorConstruction.cc

 Add Message Add Message
to: "want to add a lower half water sensitive underneath the upperhalf bone slice"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]