GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Pandaroot crash due to TParticlePDG.h
Re: Pandaroot crash due to TParticlePDG.h [message #10590 is a reply to message #10588] Sat, 24 April 2010 20:58 Go to previous messageGo to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: 188.107.239*
i was checking the code and
i found some inconsistency in the particle definition
between FairParticle and TGeant3.cxx.

In TGeant3.cxx alphas are defined with a pdgCode
(Line 7002)
determined by pdg= 1000000000+10000* z +10 * a;
which is the correct way.

Instead in FairParticle,

The constructor for standard ions
Line 129
FairParticle(const char* name, Int_t z, Int_t a, Double_t mass ,Int_t q, Bool_t stable, Double_t decaytime)

uses fpdg =10000000+10000* z +10 * a;
where the difference here is that 10000000 must be substituted by 10e9.

I'm not sure wether that is the problem, but at least the pdg codes for particles must be consistent everywhere within the code.

best regards

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem with DpmEvtGen library
Next Topic: First results of TPC code profiling
Goto Forum:

Current Time: Sat Jun 22 05:01:39 CEST 2024

Total time taken to generate the page: 0.00899 seconds