//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // TPC Vertex: // // // Environment: // Software developed for the GEM-TPC collaboration in the fopiroot // framework, deriving from fairroot // Author List: // Sverre Doerheim TUM (original author) //----------------------------------------------------------- #include "TVector3.h" #include "TpcVertex.h" #include "GFRaveVertex.h" ClassImp(TpcVertex) TpcVertex::TpcVertex() :fpos(0,0,0),fcov(3,3),fErr(0), fHasRaveVtx(false), fRaveIndex(0), findex(0) { ; } TpcVertex::TpcVertex(TVector3 pos) :fpos(pos), fcov(3,3),fErr(0), fHasRaveVtx(false), fRaveIndex(0), findex(0) { ; } TpcVertex::TpcVertex(TVector3 pos, TMatrixTcov, double err) :fpos(pos), fcov(cov),fErr(err), fHasRaveVtx(false), fRaveIndex(0), findex(0) { ; } TpcVertex::TpcVertex(TVector3 pos, TMatrixTcov, std::vectortracks, TString trackBranchName) :fpos(pos), fcov(cov), fErr(0), fTrackBranchName(trackBranchName), fTrackIds(tracks), fHasRaveVtx(false), fRaveIndex(0), findex(0) { ; } TpcVertex::TpcVertex(TVector3 pos, double err, std::vectortracks, TString trackBranchName) :fpos(pos), fcov(3,3), fErr(err), fTrackBranchName(trackBranchName), fTrackIds(tracks), fHasRaveVtx(false), fRaveIndex(0), findex(0) { ; } TpcVertex::TpcVertex(TVector3 pos, TMatrixTcov, std::vectortracks, TString trackBranchName, unsigned int raveIndex, TString raveBranchName) :fpos(pos), fcov(cov), fErr(0), fTrackBranchName(trackBranchName), fTrackIds(tracks), fHasRaveVtx(true), fRaveBranchName(raveBranchName), fRaveIndex(raveIndex), findex(0) { ; } void TpcVertex::setTrackIds(std::vectortrackIds, TString branchName){ fTrackIds=trackIds; fTrackBranchName=branchName; } void TpcVertex::setRaveIndex(unsigned int caindex, TString branchName){ fRaveIndex=caindex; fRaveBranchName=branchName; }