CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | 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 <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
 

Macros

#define dimmat   30
 
#define dimout   10
 
#define nbmax_cell   1000
 
#define PLSHDIM   650 /* size of the pulse shape array */
 
#define SDIM2   10 /* number of samples for cristal */
 

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)
 

Macro Definition Documentation

#define dimmat   30

Definition at line 42 of file TFParams.h.

Referenced by TFParams::f3deg(), 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 /* size of the pulse shape array */

Definition at line 27 of file TFParams.h.

#define SDIM2   10 /* number of samples for cristal */

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 701 of file TFParams.cc.

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

Referenced by TFParams::fitpj().

702 {
703  int i,j;
704  matrice M ; /* resultat de la creation */
705 
706  M.nb_lignes = n_lignes ;
707  M.nb_colonnes = n_colonnes ;
708  M.coeff = (double**)malloc(M.nb_lignes*sizeof(double*)) ;
709  for(i=0 ; i< M.nb_lignes; i++)
710  M.coeff[i]=(double*)calloc(M.nb_colonnes,sizeof(double));
711  for(i=0 ; i< M.nb_lignes; i++) {
712  for(j=0 ; j< M.nb_colonnes ; j++) {
713  M.coeff[i][j] = 0. ;
714  }
715  }
716  //printf(" creation de matrice ---> nlignes %d ncolonnes %d \n",
717  // M.nb_lignes,M.nb_colonnes) ;
718  return (M) ;
719 }
int i
Definition: DBlmapReader.cc:9
double ** coeff
Definition: TFParams.h:34
int j
Definition: DBlmapReader.cc:9
int nb_lignes
Definition: TFParams.h:32
int nb_colonnes
Definition: TFParams.h:33
matrice cree_mat_prod ( matrice  ,
matrice   
)

Definition at line 681 of file TFParams.cc.

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

Referenced by TFParams::fitpj().

682 {
683  int i,j;
684  matrice M ; /* resultat de la creation */
685 
686  M.nb_lignes = A.nb_lignes ;
687  M.nb_colonnes = B.nb_colonnes ;
688  M.coeff = (double**)malloc(M.nb_lignes*sizeof(double*)) ;
689  for(i=0 ; i< M.nb_lignes; i++)
690  M.coeff[i]=(double*)calloc(M.nb_colonnes,sizeof(double));
691  for(i=0 ; i< M.nb_lignes; i++) {
692 
693  for(j=0 ; j< M.nb_colonnes ; j++) {
694  M.coeff[i][j] = 0. ;
695  }
696  }
697  //printf(" creation de matrice ----> nlignes %d ncolonnes %d \n",
698 // M.nb_lignes,M.nb_colonnes) ;
699  return (M) ;
700 }
int i
Definition: DBlmapReader.cc:9
double ** coeff
Definition: TFParams.h:34
int j
Definition: DBlmapReader.cc:9
int nb_lignes
Definition: TFParams.h:32
int nb_colonnes
Definition: TFParams.h:33
void fill_mat ( matrice  ,
matrice   
)

Definition at line 721 of file TFParams.cc.

References matrice::coeff, i, j, matrice::nb_colonnes, matrice::nb_lignes, and mathSSE::return().

722 {
723  int i,j;
724  /* on remplit la matrice M avec la matrice A */
725 
726  M.nb_lignes = A.nb_lignes ;
727  M.nb_colonnes = A.nb_colonnes ;
728  for(i=0 ; i< M.nb_lignes; i++) {
729  for(j=0 ; j< M.nb_colonnes ; j++) {
730  M.coeff[i][j] = A.coeff[i][j] ;
731  printf("matrice remplie %e \n",M.coeff[i][j]) ;
732  }
733  }
734  return ;
735 }
int i
Definition: DBlmapReader.cc:9
return((rh^lh)&mask)
int j
Definition: DBlmapReader.cc:9
matrice fill_mat_int ( matrice  ,
matrice  ,
matrice   
)