GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » backward endcap time consuming
Re: backward endcap time consuming [message #10637 is a reply to message #10613] Thu, 06 May 2010 12:04 Go to previous messageGo to previous message
Dima Melnychuk is currently offline  Dima Melnychuk
Messages: 213
Registered: April 2004
Location: National Centre for Nucle...
first-grade participant
From: *fuw.edu.pl
Hi Dmitry,

It seems that I partially solved the problem with time consumption with EMC endcaps simulation with root geometry.

The following lines of code in PndEmc::ProcessHits() were executed at each hit but results were not used. However these calculation were rather time consuming.

244 Int_t daughtQuar = gMC->NofVolDaughters(namQuar);
245 Int_t daughtSub = gMC->NofVolDaughters(namSub);
246 Int_t daughtBox = gMC->NofVolDaughters(namBox);
247 Int_t daughtCrys = gMC->NofVolDaughters(namCrys);

Equivalent lines of code were for forward endcap also. So I have removed them with rev. 8554. As a results simulations with Geant4, energy=0.7 GeV, theta=155 deg., phi=45 deg. were at least 4 times faster.

To identify the problem I used callgrind profiler.

valgrind --tool=callgrind root.exe sim_emc.C


And the output can be viewed with kcachegrind.

Best regards,

Dima
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with svn commit
Next Topic: Modification of EMC digitization
Goto Forum:
  


Current Time: Sat Nov 09 23:52:42 CET 2024

Total time taken to generate the page: 0.00596 seconds