GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Bug in PndPidEmcBayesAssociatorTask?
Re: Bug in PndPidEmcBayesAssociatorTask? [message #13031 is a reply to message #13027] Fri, 03 February 2012 16:52 Go to previous messageGo to previous message
Ronald Kunne is currently offline  Ronald Kunne
Messages: 32
Registered: October 2009
continuous participant
From: *in2p3.fr
The problem seems to be that the Lateral Moment = 0, for the EMC cluster, which is strange.

Andreas Pitka wrote on Fri, 03 February 2012 14:15

LATin=0


I can't change the code, but you can cure it by changing lines 205-209 of trunk/pid/PidClassifier/PndPidEmcBayesAssociatorTask.cxx :
// trafo that spreads out the parameters
   pp  = rangePconst0 + rangePconst1 * TMath::Log10(ppin);
   Z20 = -TMath::Log10(1-z20in);
   Z53 = -TMath::Log10(z53in);
   LAT = -TMath::Log10(LATin);

into
// trafo that spreads out the parameters
   if( ppin<0.000001)  ppin=0.000001;
   if(z20in>0.999999) z20in=0.999999;
   if(z53in<0.000001) z53in=0.000001;
   if(LATin<0.000001) LATin=0.000001;

   pp  = rangePconst0 + rangePconst1 * TMath::Log10(ppin);
   Z20 = -TMath::Log10(1-z20in);
   Z53 = -TMath::Log10(z53in);
   LAT = -TMath::Log10(LATin);


This checks for zeroes in all four logarithms.

Friendly greetings,
Ronald Kunne
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Looking for a valid reconstruction chain
Next Topic: Kaon lists from PndEventReader::FillList are empty
Goto Forum:
  


Current Time: Sat Apr 27 09:55:56 CEST 2024

Total time taken to generate the page: 0.01174 seconds