GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » Covariance Matrices in RhoCandidates
Re: Covariance Matrices in RhoCandidates [message #16235 is a reply to message #16042] Fri, 04 April 2014 16:09 Go to previous messageGo to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 501
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *pool.mediaWays.net
Hello Simon,

You could go with the track parameters defined at the "first" hit of the measured trajectory:
PndPidCandidate* pidCand = (PndPidCandidate*)cand->GetRecoCandidate();
PndTrack* track = ( PndTrack* ) tca->At ( pidCand->GetTrackIndex() );

FairTrackParP* firstpar = track->GetParamFirst();


Then access the things via: GetX(), GetDX(), GetPx(), GetDPx() (and the other coordinates similar).
Header of FairTrackPar: here.

For the non-diagonal elements, i.e. the covariance matrix:
Double_t fistparCov[6][6];
firstpar->GetMARSCov(firstparCov); //cov is being filled here



If you want to access the prefit do this:
PndTrackCand* mytcand = track->GetTrackCandPtr();


Cheers
Ralf
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: option of polarization for Lambda-Lambdabar model
Next Topic: pi0 in fast simulation
Goto Forum:
  


Current Time: Wed Dec 11 19:30:03 CET 2019

Total time taken to generate the page: 0.02435 seconds