GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » CbmTrackPar bug?
icon5.gif  CbmTrackPar bug? [message #4691] Wed, 18 July 2007 17:36 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Hello,
i found something strange in the trackbase/CbmtrackPar.cxx.

Here you are the main constructor:

// ----- Constructor with parameters -----------------------------------
CbmTrackPar::CbmTrackPar(Double_t x, Double_t y, Double_t z,
Double_t px, Double_t py, Double_t pz, Double_t q)
{

fX = 0;
fY = 0;
fZ = 0;
fPx = 0;
fPy = 0;
fPz = 0;

fq= q;
Double_t p=TMath::Sqrt(fPx*fPx +fPy*fPy +fPz*fPz );
if (p!=0)fQp = q/p;
else fQp=0;
}


Should it be:

fX = x;
fY = y;
fZ = z;
fPx = px;
fPy = py;
fPz = pz;


or am I missing something?
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Geant4 links in setting the environment
Next Topic: MasterToLocal transformation
Goto Forum:
  


Current Time: Fri Nov 22 13:50:58 CET 2024

Total time taken to generate the page: 0.00904 seconds