Message: TrajectoryContainer's entries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None TrajectoryContainer's entries 

Forum: Event and Track Management
Date: 14 May, 2013
From: Florian Zenoni <Florian Zenoni>

Dear experts,

in my EndOfEventAction(G4Event* anEvent) function, I coded the following rather common lines:

G4TrajectoryContainer* trajectoryContainer = anEvent->GetTrajectoryContainer();
G4int n_trajectories = 0;
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();

It worked without any problem until the moment I redefined a class that inherited from G4VTrajectory. Now n_trajectories is always 0. I think that I have overwritten the function that fills the TrajectoryContainer, but I can't find out which one it is.

Could you please help me?


Thanks in advance,
Florian

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

1 None: Re: TrajectoryContainer's entries   (Florian Zenoni - 14 May, 2013)
 Add Message Add Message
to: "TrajectoryContainer's entries"

 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 ]