Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:22

0001 /** \class Chi2
0002  *
0003  *  Chi2 calculation in survey data for drift tube chambers  
0004  *
0005  *  $Date: 2007/04/13 18:05:35 $
0006  *  $Revision: 1.1 $
0007  *  \author Pablo Martinez Ruiz del Arbol
0008  */
0009 
0010 #ifndef Alignment_SurveyAnalysis_Chi2_H
0011 #define Alignment_SurveyAnalysis_Chi2_H
0012 
0013 #include "TMatrixD.h"
0014 
0015 class Chi2 {
0016 public:
0017   Chi2(TMatrixD &, TMatrixD &, TMatrixD &);
0018   ~Chi2();
0019 
0020   TMatrixD &getCovariance();
0021   TMatrixD &getSolution();
0022   double getChi2();
0023   int getDOF();
0024 
0025 private:
0026   double myChi2;
0027   int dof;
0028   TMatrixD covariance;
0029   TMatrixD leftMatrix;
0030   TMatrixD rightMatrix;
0031   TMatrixD solution;
0032 };
0033 
0034 #endif