//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Tpc Residual Object // Hit Index marks the position of the reference hit // (any 3D-point) in the appr. TClonesArray // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Felix Boehmer (original author) // Physik Department E18, TUM // //----------------------------------------------------------- #include "TpcSimpleResidual.h" TpcSimpleResidual::TpcSimpleResidual(const TpcResidual &theRes) { fRefX=theRes.getRefPos().X(); fRefY=theRes.getRefPos().Y(); fRefZ=theRes.getRefPos().Z(); fHitX=theRes.getHitPos().X(); fHitY=theRes.getHitPos().Y(); fHitZ=theRes.getHitPos().Z(); double * arr = theRes.getHitCov().GetMatrixArray(); fHitCov.assign(arr,arr+9); arr = theRes.getTrackCov().GetMatrixArray(); fTrackCov.assign(arr,arr+9); fDirX=theRes.getTrackDir().X(); fDirY=theRes.getTrackDir().Y(); fDirZ=theRes.getTrackDir().Z(); fTrackLength=theRes.getTrackLength(); fCharge=theRes.getCharge(); fTrackErrPhi=theRes.getTrackCov()[4][4]; fTrackErrZ=theRes.getTrackCov()[3][3]; }