Home » PANDA » PandaRoot » Tracking » Conversion of track parameters
Re: Conversion of track parameters [message #8973 is a reply to message #8971] |
Mon, 13 July 2009 13:33 |
StefanoSpataro
Messages: 2736 Registered: June 2005 Location: Torino
|
first-grade participant |
From: *to.infn.it
|
|
Thanks,
even if those functions do not solve my problem.
I have decided to use the following constructor, which should do the job:
FairTrackParP *parabula....
FairTrackParH *helix = new FairTrackParH(TVector3(parabula->GetX(), parabula->GetY(), parabula->GetZ()),
TVector3(parabula->GetPx(), parabula->GetPy(), parabula->GetPz()),
TVector3(parabula->GetDX(), parabula->GetDY(), parabula->GetDZ()),
TVector3(parabula->GetDPx(), parabula->GetDPy(), parabula->GetDPz()),
parabula->GetQ());
which is not so... stylish, bit it should work. Maybe one should implement a constructor from a generic FairTrackPar, such as:
FairTrackParP::FairTrackParP(const FairTrackPar* xxx);
FairTrackParH::FairTrackParH(const FairTrackPar* xxx);
to have something easier to write.
[Updated on: Mon, 13 July 2009 13:34] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jan 18 04:25:27 CET 2025
Total time taken to generate the page: 0.00632 seconds
|