Message: Resetting global time - triggering an event Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Resetting global time - triggering an event 

Forum: Event and Track Management
Date: 31 Mar, 2004
From: Kate Ross <kross@triumf.ca>

Hello,

I am simulating an event which, at the moment, consists of a positron passing through a scintillator volume (an SD). Upon entering the volume, I want to reset the timing of that particle, and every secondary produced thereafter. ie, the positron becomes the timing particle, which triggers and event.

I thought I could accomplish this task by using the following code in one step:

  G4double reset = 0.0;

  fTrack->SetGlobalTime(reset);

But this generates negative times for succeeding steps.

   11  1.05 ns   1.37 MeV  51.6 keV   198 mum  30.3 cm         SCIN  Transportation
reset...
   12  -1.05 ns   1.34 MeV  22.5 keV   122 mum  30.3 cm         WRAP  Transportation
   13  -1.05 ns   1.29 MeV  51.2 keV   129 mum  30.4 cm         MSCV  Transportation
   14  -911 ps    1.29 MeV   6.3 keV  3.86 cm   34.2 cm         HEN2  Transportation

Why is this happening? I would expect the global time to "start over" from the reset point. Any suggestions are welcome.

-Kate

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

 Add Message Add Message
to: "Resetting global time - triggering an event"

 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 ]