Hi!
I have checked in a new version of CbmGeanePro where I added the following:
void CbmGeanePro::Propagate(Int_t PDG) {
// main propagate call to fortran ERTRAK
GeantCode=fdbPDG->ConvertPdgToGeant3(PDG);
gMC3->Ertrak(x1,p1,x2,p2,GeantCode, fPropOption.Data());
std::cout<<"gMC3->TrackLength="<<gMC3->TrackLength()<<std::endl;
trklength=gMC3->TrackLength();
}
So now trklength is set for every Propagation. But I think there was some issue, that when we do it this way, the precision of trklength is limited to the stepsize??
In the recotasks/demo there is now a DemoToolsTask, which demosnatrate how to get the tracklength between two points.
Cheers!
Sebastian.
Cheers! Sebastian.