Message: Re: Accessing Step Information Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Accessing Step Information 

Keywords: Time Dependent Magnetic Field
Forum: Event and Track Management
Re: Question Accessing Step Information (Zach Hartwig)
Date: 15 Mar, 2005
From: Makoto Asai <Makoto Asai>

How did you get the valid pointer of G4Track?
Your code

> G4Track *track;
> G4double localTime = track -> GetLocalTime();

should NOT work, since you don't set any valid pointer to your "track".
Your code should look like this

 G4Track* track = G4RunmanagerKernel::GetRunManagerKernel()
 G4double localTime = 0.;
 if(track) localTime = track->GetLocalTime();

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

1 Agree: Re: Accessing Step Information   (Zach Hartwig - 15 Mar, 2005)
(_ More: Re: Accessing Step Information   (Peter Gumplinger - 16 Mar, 2005)
 Add Message Add Message
to: "Re: Accessing Step Information"

 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 ]