{ Simple A; for (i=0;i<100;i++) { A.AddMeasurement(); } } // Simple.cxx follows this line /** ****************************************************************** * * Module Name : * * Author/Date : C.B. Lirakis / 19-Aug-04 * * Description : * * Restrictions/Limitations : * * Change Descriptions : * * Classification : Unclassified * * References : * * * RCS header info. * ---------------- * $RCSfile$ * $Author$ * $Date$ * $Locker$ * $Name$ * $Revision$ * * $Log: $ * * ******************************************************************* */ #ifndef lint /// RCS Information static char rcsid[]="$Header$"; #endif // System includes. #include #include #include #include /// Local Includes. #include "Simple.hh" /** ****************************************************************** * * Function Name : * * Description : * * Inputs : * * Returns : * * Error Conditions : * * Unit Tested on: * * Unit Tested by: CBL * * ******************************************************************* */ Simple::Simple() { int i; H = new TMatrixD(6,6); HT = new TMatrixD(6,6); for (i=0;i<3;i++) { H(i,i) = 1.0; } HT->Transpose(*H); } /** ****************************************************************** * * Function Name : * * Description : * * Inputs : * * Returns : * * Error Conditions : * * Unit Tested on: * * Unit Tested by: CBL * * ******************************************************************* */ Simple::~Simple() { delete H; delete HT; } /** ****************************************************************** * * Function Name : * * Description : * * Inputs : * * Returns : * * Error Conditions : * * Unit Tested on: * * Unit Tested by: CBL * * ******************************************************************* */ void Simple::AddMeasurement() { (*H) * (*HT); } // Simple.hh follows after this line /** ****************************************************************** * * Module Name : Simple.hh * * Author/Date : C.B. Lirakis / 18-Aug-04 * * Description : * * Restrictions/Limitations : * * Change Descriptions : * * Classification : Unclassified * * References : * * * RCS header info. * ---------------- * $RCSfile$ * $Author$ * $Date$ * $Locker$ * $Name$ * $Revision$ * * $Log: $ * * ******************************************************************* */ #ifndef __SIMPLE_hh_ #define __SIMPLE_hh_ #include "TMatrixD.h" class Simple { ClassDef(Simple, 0); public: /// Kalman filter constuctor Simple(); ~Simple(); void AddMeasurement(); private: TMatrixD *H, *HT; }; #endif