CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
TFParams.h File Reference
#include "TROOT.h"
#include "TObject.h"
#include "TArrayI.h"
#include "TArrayD.h"
#include "TArrayC.h"
#include "TCanvas.h"
#include "TDirectory.h"
#include "TPaveLabel.h"
#include "TF1.h"
#include <ctime>
#include "TGraph.h"
#include <cstdio>
#include <cmath>
#include "TH2.h"
#include "TH1.h"
#include "TStyle.h"
#include "TPaveText.h"
#include "TProfile.h"
#include "TVirtualX.h"

Go to the source code of this file.

Classes

struct  matrice
 
class  TFParams
 

Typedefs

typedef struct matrice matrice
 

Functions

matrice cree_mat (int, int)
 
matrice cree_mat_prod (matrice, matrice)
 
void fill_mat (matrice, matrice)
 
matrice fill_mat_int (matrice, matrice, matrice)
 

Typedef Documentation

typedef struct matrice matrice

Definition at line 32 of file TFParams.h.

Function Documentation

matrice cree_mat ( int  ,
int   
)

Definition at line 648 of file TFParams.cc.

References matrice::coeff, mps_fire::i, dqmiolumiharvest::j, matrice::nb_colonnes, and matrice::nb_lignes.

Referenced by TFParams::fitpj().

648  {
649  int i, j;
650  matrice M; /* resultat de la creation */
651 
652  M.nb_lignes = n_lignes;
653  M.nb_colonnes = n_colonnes;
654  M.coeff = (double **)malloc(M.nb_lignes * sizeof(double *));
655  for (i = 0; i < M.nb_lignes; i++)
656  M.coeff[i] = (double *)calloc(M.nb_colonnes, sizeof(double));
657  for (i = 0; i < M.nb_lignes; i++) {
658  for (j = 0; j < M.nb_colonnes; j++) {
659  M.coeff[i][j] = 0.;
660  }
661  }
662  //printf(" creation de matrice ---> nlignes %d ncolonnes %d \n",
663  // M.nb_lignes,M.nb_colonnes) ;
664  return (M);
665 }
double ** coeff
Definition: TFParams.h:30
int nb_lignes
Definition: TFParams.h:28
int nb_colonnes
Definition: TFParams.h:29
matrice cree_mat_prod ( matrice  ,
matrice   
)

Definition at line 630 of file TFParams.cc.

References matrice::coeff, mps_fire::i, dqmiolumiharvest::j, matrice::nb_colonnes, and matrice::nb_lignes.

Referenced by TFParams::fitpj().

630  {
631  int i, j;
632  matrice M; /* resultat de la creation */
633 
634  M.nb_lignes = A.nb_lignes;
635  M.nb_colonnes = B.nb_colonnes;
636  M.coeff = (double **)malloc(M.nb_lignes * sizeof(double *));
637  for (i = 0; i < M.nb_lignes; i++)
638  M.coeff[i] = (double *)calloc(M.nb_colonnes, sizeof(double));
639  for (i = 0; i < M.nb_lignes; i++) {
640  for (j = 0; j < M.nb_colonnes; j++) {
641  M.coeff[i][j] = 0.;
642  }
643  }
644  //printf(" creation de matrice ----> nlignes %d ncolonnes %d \n",
645  // M.nb_lignes,M.nb_colonnes) ;
646  return (M);
647 }
double ** coeff
Definition: TFParams.h:30
int nb_lignes
Definition: TFParams.h:28
static const std::string B
int nb_colonnes
Definition: TFParams.h:29
void fill_mat ( matrice  ,
matrice   
)

Definition at line 667 of file TFParams.cc.

References matrice::coeff, mps_fire::i, dqmiolumiharvest::j, matrice::nb_colonnes, matrice::nb_lignes, and gpuVertexFinder::printf().

667  {
668  int i, j;
669  /* on remplit la matrice M avec la matrice A */
670 
671  M.nb_lignes = A.nb_lignes;
672  M.nb_colonnes = A.nb_colonnes;
673  for (i = 0; i < M.nb_lignes; i++) {
674  for (j = 0; j < M.nb_colonnes; j++) {
675  M.coeff[i][j] = A.coeff[i][j];
676  printf("matrice remplie %e \n", M.coeff[i][j]);
677  }
678  }
679  return;
680 }
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
matrice fill_mat_int ( matrice  ,
matrice  ,
matrice   
)