Message: Re: Modifying Example N03 Stepping Action Class to Score In Water Phantom Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Modifying Example N03 Stepping Action Class to Score In Water Phantom 

Forum: Biasing and Scoring
Re: Question Modifying Example N03 Stepping Action Class to Score In Water Phantom (Ben Hug)
Date: 26 Dec, 2012
From: Tsukasa Aso <Tsukasa Aso>

Hi,

  The methods GetAbsorber() is defined in N03/include/DetectorConstruction.hh.
I suppose the file DetectorConstruction.hh/cc has been modified or replaced by you 
for your application. 

  In original N03 example, the SteppinAction checks the scoring volume by using 
DetectorConstruction::GetAbsorber() , DetectorConstructiion::GetGap(). 
These methods return the pointers of those physical volumes. 

 I think you have to prepare a method (i.e My_ScoreVolume() ) which returns the pointer of your
physical volume for scoring in your DetectorConstruction.

[DetectorConstruction]
(original)
    const G4VPhysicalVolume* GetAbsorber()   {return physiAbsorber;};
(i.e. modified)
    const G4VPhysicalVolume* My_ScoreVolume()   {return ptr_score_voume;};
              ** ptr_score_volume should be the pointer of physical volume of your scoring geometry.

And use it in SteppingAction by replacing  

if (volume == detector->GetAbsorber()) eventaction->AddAbs(edep,stepl);

to (for example )

if (volume == detector->My_ScoreVolume()) eventaction->AddAbs(edep,stepl);


Best regards,
Tsukasa

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: Modifying Example N03 Stepping Action Class to Score In Water Phantom   (Ben Hug - 29 Dec, 2012)
 Add Message Add Message
to: "Re: Modifying Example N03 Stepping Action Class to Score In Water Phantom"

 Subscribe Subscribe

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