//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // PyROOT Wrapper for GFRaveVertexFactory // // // // // Environment: // Software developed for GEM-TPC detector in FOPI. // // Author List: // Felix Boehmer TUM (original author) // // //----------------------------------------------------------- #include "FopiPidGFVFWrapper.h" #include "GFRaveVertexFactory.h" #include ClassImp(FopiPidGFVFWrapper) FopiPidGFVFWrapper::FopiPidGFVFWrapper(int verbosity, bool vacProp) { fFactory = new GFRaveVertexFactory(verbosity, vacProp); fResult.clear(); fTracks.clear(); } FopiPidGFVFWrapper::~FopiPidGFVFWrapper() { delete fFactory; } void FopiPidGFVFWrapper::setMethod(const TString& meth) { fFactory->setMethod(meth.Data()); } void FopiPidGFVFWrapper::setBeamspot(const TVector3& pos, const TMatrixDSym& cov) { fFactory->setBeamspot(pos,cov); } unsigned int FopiPidGFVFWrapper::getNVertices() const { return fResult.size(); } GFRaveVertex* FopiPidGFVFWrapper::getVertex(unsigned int i) const { assert(ifindVertices(&fResult, fTracks,beamspot); } void FopiPidGFVFWrapper::addTrack(GFTrack* track) { fTracks.push_back(track); }