Message: How to record time-of-flight of neutrons when interacting with matters Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None How to record time-of-flight of neutrons when interacting with matters 

Forum: Hadronic Processes
Date: 09 Mar, 2011
From: Xiaohai Zhu <Xiaohai Zhu>

Hi,

I implemented hadronic(including both elastic and inelastic scattering) and electromagnetic processes in the PhysicsList.cc. I shot neutrons to a Graphite sample and arranged four detectors around the sample. I only introduced electromagnetic processes to 3 kinds of particles: gamma, electron and positon. I want to record the time of flight of neutrons by using

G4bool TrackerSD::ProcessHits(G4Step* aStep,G4TouchableHistory*)
{
  G4double edep = aStep->GetTotalEnergyDeposit();

  if(edep==0.) return false;

  TrackerHit* newHit = new TrackerHit();
  newHit->SetParticle (aStep->GetTrack()->GetDefinition()->GetParticleName());
  newHit->SetTrackID  (aStep->GetTrack()->GetTrackID());
  newHit->SetEdep     (edep);
  newHit->SetPos      (aStep->GetPostStepPoint()->GetPosition());
  newHit->SetInitTime (aStep->GetPostStepPoint()->GetGlobalTime());
  trackerCollection->insert( newHit );

neutrons may undergo scattering, and I want to record the time of flight spectrum of neutrons. But I found the particle names got by GetParticleName()were all gamma, electrons, and positron. For example:

"there are 5 hits in the event 1 particle name: gamma, track ID:XX, energy deposited:XXX, pos:XX, time:XX 2 particle name: e-,track ID:XX, energy deposited:XXX, pos:XX, time:XX 3 particle name: e-,track ID:XX, energy deposited:XXX, pos:XX, time:XX 4 particle name: e-,track ID:XX, energy deposited:XXX, pos:XX, time:XX 5 particle name: e-,track ID:XX, energy deposited:XXX, pos:XX, time:XX"

I thought the particle name-"neutron" should have been recorded by GetParticleName() in some steps, which means neutrons undergoing scattering in the steps.

 Add Message Add Message
to: "How to record time-of-flight of neutrons when interacting with matters"

 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 ]