// -*- mode: c++ -*- // // $Id: BrTpcFitCluster.h,v 1.2 2001/06/22 17:45:28 cholm Exp $ // $Author: cholm $ // $Date: 2001/06/22 17:45:28 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTpcFitCluster #define BRAT_BrTpcFitCluster #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TVirtualFitter #include "TVirtualFitter.h" #endif #ifndef BRAT_BrTpcCluster #include "BrTpcCluster.h" #endif class BrTpcFitCluster : public TObject { private: static BrTpcFitCluster* fgInstance; static Int_t fgMaxFitPoints; Int_t fNfitPoints; TVirtualFitter* fMinuit; Double_t* fZ; Double_t* fEZ; Double_t* fX; Double_t* fY; BrTpcCluster* fCluster; void AddDataPoint(Double_t zVal, Double_t ezVal, Double_t xVal, Double_t yVal); void Fit(); Double_t Func(Double_t x, Double_t y, Double_t *par); public: BrTpcFitCluster(); ~BrTpcFitCluster(); static BrTpcFitCluster* Instance() { return fgInstance; } Double_t ChiSquare(Double_t *par); void Clear(); void FitCluster(BrTpcCluster *cluster); Int_t GetNPoints(void) { return fNfitPoints;} ClassDef(BrTpcFitCluster,0) // BRAT cluster fitter }; #endif //____________________________________________________________________ // // $Log: BrTpcFitCluster.h,v $ // Revision 1.2 2001/06/22 17:45:28 cholm // Change names so that every data class has the same format, so that // we will not have to worry about that later on. The affected classes // are: // // BrTPCSequence -> BrTpcSequence // BrTPCCluster -> BrTpcCluster // BrTPCClusterTable -> BrTpcClusterTable // // These changes has ofcourse been propegated to the modules as well, // giving the changes // // BrTPCClusterFinder -> BrTpcClusterFinder // BrTPCSequenceAdder -> BrTpcSequenceAdder // // Revision 1.1.1.1 2001/06/21 14:55:13 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/17 17:32:18 pchristi // New classes and test programs. None are used in the clustering. // //