Message: Re: Problem in killing secondaries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem in killing secondaries  

Keywords: Problem in killing secondaries
Forum: Event and Track Management
Re: None Problem in killing secondaries (V. Grabski)
Date: 13 Feb, 2004
From: michel maire <michel maire>

User V. Grabski wrote:

>> Hello, The simple code like this is not killing secondaries ! Is there a
>> mistake? Thanks for advance, Varlen
>> 
>> G4ClassificationOfNewTrack 
>> pri1StackingAction::ClassifyNewTrack(const G4Track* aTrack)
>> {
>>   // keep primary particle 
>>   if (aTrack->GetParentID() == 0) return fUrgent;
>> 
>> // delete secondaries
>>   G4ClassificationOfNewTrack status = fKill;
>> 
>> return status; }

 I checked TestEm5, for instance with the macro tramu.mac
 It works.
 Did you registered your StackingAction in your main (see TestEm5.cc) ?

          Michel

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

 Add Message Add Message
to: "Re: Problem in killing secondaries "

 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 ]