Message: Re: Segmentation fault for primary particles process name Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: Segmentation fault for primary particles process name 

Forum: Analysis
Re: Question Segmentation fault for primary particles process name (Volodymyr Rodin)
Re: Idea Re: Segmentation fault for primary particles process name (Michael H. Kelsey)
Date: Feb 14, 03:39
From: Volodymyr Rodin <Volodymyr Rodin>

>   G4VProcess* trkProc = aStep->GetTrack()->GetCreatorProcess();
>   analysisManager->FillNtupleSColumn(0,2,(trkProc?trkcProc->GetProcessName():G4String("Primary")));
> 
> That way, you have something human readable for the primary tracks.
> 
>      -- Michael Kelsey

Hi Michael,

This option worked for me:

 const G4VProcess* trkProc = aStep->GetTrack()->GetCreatorProcess()
 analysisManager->FillNtupleSColumn(0,2,(trkProc?trkcProc- 
 >GetProcessName():G4String("Primary")));

Thanks for the help,

Volodymyr Rodin

 Add Message Add Message
to: "Re: Segmentation fault for primary particles process name"

 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 ]