Message: G4TrajectoryContainer in batch mode Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4TrajectoryContainer in batch mode 

Forum: Event and Track Management
Date: 30 Jul, 2010
From: <ungaro@jlab.org>

I'm trying to get tracks info in EndOfEventAction with:

if (G4VVisManager::GetConcreteInstance())
{
  G4TrajectoryContainer *trajectoryContainer = evt->GetTrajectoryContainer();
  ...
}

G4VVisManager::GetConcreteInstance() returns non zero, but evt->GetTrajectoryContainer() is NULL in batch mode, so I can't access it.

The reason I need particles info (PID, parent ID, etc) in EndOfEventAction instead of the SD routines is that I want to avoid doing certain operation each step, but just at the end of the event.

Any help appreciated!

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

1 Feedback: Re: G4TrajectoryContainer in batch mode   (Gumplinger Peter - 30 Jul, 2010)
(_ Ok: Re: G4TrajectoryContainer in batch mode   (ungaro@jlab.org - 30 Jul, 2010)
 Add Message Add Message
to: "G4TrajectoryContainer in batch mode"

 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 ]