GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [FIXED] Recontruction of neutrals - macro is very slow
Re: Recontruction of neutrals - macro is very slow [message #15417 is a reply to message #15413] Tue, 03 September 2013 13:32 Go to previous messageGo to previous message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *gsi.de
Hi Elisabetta,


I think of two effects, which make your macros running slow:

1. When using neutrals, the combinatorics usually gets blown up quite significantly, since there are always huge numbers of neutral objects reconstructed.

2. This effect of getting slower and slower from event to event is a buggy effect of CINT I think. I observed it always, when the 'complexity' (however that really is defined) of the macro code gets above a certain threshold, which basically always happens at some point for complicated analyses.

An improvement for (1.) can be achieved but requiring a lower energy threshold for your gamma candidates, e.g. 30-100 MeV, in order to reduce the number of candidates.

This can be easily done with a RhoEnergyParticleSelector:
double minE = 0.03;
RhoEnergyParticleSelector *SelEnergy = new RhoEnergyParticleSelector("SelEnergy",50.+minE,100.);

while (theAnalysis->GetEvent())
{
  theAnalysis->FillList(gamma, "Neutral");
  gamma.Select(SelEnergy);
  ...

You should try some values or take a look at the gamma energy distribution beforehand to find an appropriate threshold.

In order to cope with (2.), you should convert your analysis code to run in a task. I already sent you a task version of your Ds2535 macro last week or that before, where you can take a look how this can be done, or you read the corresponding section in the new tutorial wiki

http://panda-wiki.gsi.de/cgi-bin/view/Computing/PandaRootRhoTutorial#3_A nalysis_in_a_Task

where it is also described.


Best regards,
Klaus
 
Read Message
Read Message
Read Message
Previous Topic: [FIXED] Problem in reconstructing neutral particle
Next Topic: [FIXED] Problems with photon reconstruction in pandaroot
Goto Forum:
  


Current Time: Fri Mar 29 02:29:21 CET 2024

Total time taken to generate the page: 0.01025 seconds