Message: Re: Problems with spectrum of multipeaks source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: Problems with spectrum of multipeaks source 

Forum: Physics List
Re: Question Problems with spectrum of multipeaks source (Nicolas Maurissen)
Re: None Re: Problems with spectrum of multipeaks source (michel maire)
Re: None Re: Problems with spectrum of multipeaks source (Nicolas Maurissen)
Date: 24 Jan, 2011
From: Tom Roberts <Tom Roberts>

On Mon, 24 Jan 2011 09:23:30 GMT, Nicolas Maurissen wrote:
>   G4String aPrePVname = aPrePV->GetName();
>   if(aPrePVname !="Cristal_phys") { return; }
> [...]

A comment on your code: you probably don't want to do string compares at every step, because that can slow it down considerably. Get a pointer to the physical volume and compare the pointers. I sped my program up by a factor of ten by removing a sscanf() from my UserSteppingAction(). It was deep in other classes, and was not obvious until I profiled the program.

Tom Roberts

 Add Message Add Message
to: "Re: Problems with spectrum of multipeaks source"

 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 ]