Message: Track change CreatorProcess during tracking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Track change CreatorProcess during tracking 

Forum: Event and Track Management
Date: 22 Sep, 2018
From: filippo <filippo>

Hi,

I'm simulating photons against a lead target and recording neutrons created in a teflon cube behind the target. In my Sensitive Detector I use:

G4bool B2TrackerSD::ProcessHits(G4Step* aStep,G4TouchableHistory*) {

  const G4VProcess* creator = aStep->GetTrack()->GetCreatorProcess();
  G4String creator_process;

  if(creator!=0){ creator_process =creator->GetProcessName();}

  else
  creator_process = "primary";

   auto newHit = new B2TrackerHit();

   newHit->SetCreatorP (creator_process);

}

I then write results into root Ntuple and print the results to a txt file.

In the attached file you can see the outcome of the simulation. You will find just a particle to show the problem.

The question is: why does the neutron change CreatorProcess during the "movement" from one cell of the teflon absorber to another? Is the particle "created again" for some reason?

thanks you!

Best regards

Filippo

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/09/22/09.59-40241-track.txt

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

1 Ok: Track change CreatorProcess during tracking   (filippo - 23 Sep, 2018)
(_ Disagree: Re: Track change CreatorProcess during tracking   (filippo - 23 Sep, 2018)
(_ Question: Re: Track change CreatorProcess during tracking   (Jonathan Madsen - 27 Sep, 2018)
(_ Ok: Re: Track change CreatorProcess during tracking   (filippo - 27 Sep, 2018)
 Add Message Add Message
to: "Track change CreatorProcess during tracking"

 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 ]