CMS 3D CMS Logo

Classes | Defines | Typedefs | Functions

CMSSW_4_4_3_patch1/src/CalibCalorimetry/EcalLaserAnalyzer/interface/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 "time.h"
#include "TGraph.h"
#include <stdio.h>
#include <math.h>
#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

Defines

#define dimmat   30
#define dimout   10
#define nbmax_cell   1000
#define PLSHDIM   650
#define SDIM2   10

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)

Define Documentation

#define dimmat   30

Definition at line 42 of file TFParams.h.

Referenced by TFParams::f3deg(), TFParams::fitpj(), TFParams::inverpj(), and TFParams::polfit().

#define dimout   10

Definition at line 43 of file TFParams.h.

Referenced by TFParams::polfit().

#define nbmax_cell   1000

Definition at line 44 of file TFParams.h.

#define PLSHDIM   650

Definition at line 27 of file TFParams.h.

#define SDIM2   10

Definition at line 26 of file TFParams.h.

Referenced by TFParams::set_const().


Typedef Documentation

typedef struct matrice matrice

Definition at line 36 of file TFParams.h.


Function Documentation

matrice cree_mat ( int  ,
int   
)

Definition at line 730 of file TFParams.cc.

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

Referenced by TFParams::fitpj().

{
  int i,j;
  matrice M ; /* resultat de la creation */
 
  M.nb_lignes = n_lignes ;
  M.nb_colonnes = n_colonnes ;
  M.coeff = (double**)malloc(M.nb_lignes*sizeof(double*)) ;
  for(i=0 ; i< M.nb_lignes; i++) 
    M.coeff[i]=(double*)calloc(M.nb_colonnes,sizeof(double));
  for(i=0 ; i< M.nb_lignes; i++) {
    for(j=0 ; j< M.nb_colonnes ; j++) {
        M.coeff[i][j] = 0.  ;
    }
  }
  //printf(" creation de matrice --->  nlignes %d ncolonnes %d  \n",
        // M.nb_lignes,M.nb_colonnes) ;
  return (M) ;
}
matrice cree_mat_prod ( matrice  ,
matrice   
)

Definition at line 710 of file TFParams.cc.

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

Referenced by TFParams::fitpj().

{
  int i,j;
  matrice M ; /* resultat de la creation */
 
  M.nb_lignes = A.nb_lignes ;
  M.nb_colonnes = B.nb_colonnes ;
  M.coeff = (double**)malloc(M.nb_lignes*sizeof(double*)) ;
  for(i=0 ; i< M.nb_lignes; i++) 
    M.coeff[i]=(double*)calloc(M.nb_colonnes,sizeof(double));
  for(i=0 ; i< M.nb_lignes; i++) {

    for(j=0 ; j< M.nb_colonnes ; j++) {
        M.coeff[i][j] = 0.  ;
    }
  }
  //printf(" creation de matrice ---->  nlignes %d ncolonnes %d  \n",
//       M.nb_lignes,M.nb_colonnes) ;
  return (M) ;
}
void fill_mat ( matrice  ,
matrice   
)

Definition at line 750 of file TFParams.cc.

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

{
  int i,j;
  /* on remplit la matrice M avec la matrice A */
 
  M.nb_lignes = A.nb_lignes ;
  M.nb_colonnes = A.nb_colonnes ;
  for(i=0 ; i< M.nb_lignes; i++) {
    for(j=0 ; j< M.nb_colonnes ; j++) {
        M.coeff[i][j] = A.coeff[i][j]  ;
        printf("matrice remplie %e \n",M.coeff[i][j]) ;
    }
  } 
  return ;
}
matrice fill_mat_int ( matrice  ,
matrice  ,
matrice   
)