CMS 3D CMS Logo

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

◆ matrice

typedef struct matrice matrice

Definition at line 32 of file TFParams.h.

Function Documentation

◆ cree_mat()

matrice cree_mat ( int  ,
int   
)

Definition at line 648 of file TFParams.cc.

References calloc(), matrice::coeff, mps_fire::i, dqmiolumiharvest::j, malloc(), 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
void * malloc(size_t size) noexcept
int nb_colonnes
Definition: TFParams.h:29
void * calloc(size_t nitems, size_t item_size) noexcept

◆ cree_mat_prod()

matrice cree_mat_prod ( matrice  ,
matrice   
)

Definition at line 630 of file TFParams.cc.

References A, B, calloc(), matrice::coeff, mps_fire::i, dqmiolumiharvest::j, malloc(), 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 }
Definition: APVGainStruct.h:7
double ** coeff
Definition: TFParams.h:30
int nb_lignes
Definition: TFParams.h:28
void * malloc(size_t size) noexcept
int nb_colonnes
Definition: TFParams.h:29
Definition: APVGainStruct.h:7
void * calloc(size_t nitems, size_t item_size) noexcept

◆ fill_mat()

void fill_mat ( matrice  ,
matrice   
)

Definition at line 667 of file TFParams.cc.

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

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 }
Definition: APVGainStruct.h:7

◆ fill_mat_int()

matrice fill_mat_int ( matrice  ,
matrice  ,
matrice   
)