GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Tracking » Tracklength from GEANE
Re: Tracklength from GEANE [message #6407 is a reply to message #6404] Mon, 14 April 2008 16:57 Go to previous messageGo to previous message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: *e18.physik.tu-muenchen.de
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.


Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GEANE extrpolate to point of closest approach
Next Topic: demo with tracklength not running
Goto Forum:
  


Current Time: Thu Jul 18 13:26:23 CEST 2024

Total time taken to generate the page: 0.00929 seconds