Message: Cylindrical Parameterisation Causes Poor Performance Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Cylindrical Parameterisation Causes Poor Performance  

Forum: Geometry
Date: 19 Jul, 2016
From: Joseph DeCunha <Joseph DeCunha>

Hi there!

I've just finished coding a cylindrical parameterisation (derived from G4VPVParameterisation) class that parameterises along the radius and rho axis.

I'm implementing it in a parallel world in order to score dose. However, I've found that compared to other G4VPVParameterisation classes I've used the performance overhead is tremendous. For 200 particles my simulation time hopped from 4s to 45s.

I've narrowed the performance hit down to two statements in my ComputeDimensions method. My cylinder.SetDeltaPhiAngle and cylinder.SetStartPhiAngle statements. When I comment these two statements out my performance again returns to an acceptable level.

The number of parameterisations that I create does have some impact on performance -- but I've tried everything from 2500 to 30 parameterisations and the performance is still very poor.

I was wondering if this was a known phenomenon or if anyone could help push me in the right direction towards what may be behind the problem.

All the best, and thanks in advance

Joseph

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

1 More: Re: Cylindrical Parameterisation Causes Poor Performance   (Gabriele Cosmo - 19 Aug, 2016)
 Add Message Add Message
to: "Cylindrical Parameterisation Causes Poor Performance "

 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 ]