Message: [SOLVED] Re: Start each events under some condition Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok [SOLVED] Re: Start each events under some condition 

Forum: Event and Track Management
Re: Question Start each events under some condition (JungEun Elena Suh)
Date: 17 Sep, 2015
From: JungEun Elena Suh <JungEun Elena Suh>

Wow I found it.

I just put

(y is initial y position of primary particle.)
(G4RunManager* runManager = G4RunManager::GetRunManager();)

if(y<0) runManager->AbortEvent();

BeginOfEventAction, in EventAction.cc


It's so easy when I know that. :)

 Add Message Add Message
to: "[SOLVED] Re: Start each events under some condition"

 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 ]