Message: Is any thing wrong with my secondary electron collection? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Is any thing wrong with my secondary electron collection? 

Forum: Medical Applications
Date: 08 Apr, 2008
From: <jfgao@mdanderson.org>

Dear G4 Developers: I followed some anwsers from the website and came out a couple of lines to collect secondary electrons in my sensitive detector. But I got nothing. Any body can help me check with what is wrong with it? Thank you in advance!

 G4bool HadrontherapyPhantomSD::ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist)
{
  if(!ROhist)
    return false;    
............

      G4Track*  aTrack = aStep->GetTrack();  
      if (aTrack->GetDefinition() == G4Electron::Electron()) 
	  {  
      	  G4double	energy = aTrack->GetKineticEnergy();
	        	energy = energy/eV;
       	  G4int         nElectron= aStep->GetSecondary();
	  printf(" NofE,KE==",nElectron,energy);	
          }
.........

} Gao

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

1 Feedback: Re: Is any thing wrong with my secondary electron collection?   (Pedro Arce - 11 Apr, 2008)
 Add Message Add Message
to: "Is any thing wrong with my secondary electron collection?"

 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 ]