CMS 3D CMS Logo

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 <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
 

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

◆ dimmat

#define dimmat   30

Definition at line 41 of file TFParams.h.

◆ dimout

#define dimout   10

Definition at line 42 of file TFParams.h.

◆ nbmax_cell

#define nbmax_cell   1000

Definition at line 43 of file TFParams.h.

◆ PLSHDIM

#define PLSHDIM   650 /* size of the pulse shape array */

Definition at line 27 of file TFParams.h.

◆ SDIM2

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

Definition at line 26 of file TFParams.h.

Typedef Documentation

◆ matrice

typedef struct matrice matrice

Definition at line 35 of file TFParams.h.

Function Documentation

◆ cree_mat()

matrice cree_mat ( int  ,
int   
)

Definition at line 648 of file TFParams.cc.

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 }

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

Referenced by TFParams::fitpj().

◆ cree_mat_prod()

matrice cree_mat_prod ( matrice  ,
matrice   
)

Definition at line 630 of file TFParams.cc.

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 }

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

Referenced by TFParams::fitpj().

◆ fill_mat()

void fill_mat ( matrice  ,
matrice   
)

Definition at line 667 of file TFParams.cc.

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 }

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

◆ fill_mat_int()

matrice fill_mat_int ( matrice  ,
matrice  ,
matrice   
)
matrice::nb_lignes
int nb_lignes
Definition: TFParams.h:31
mps_fire.i
i
Definition: mps_fire.py:428
matrice::nb_colonnes
int nb_colonnes
Definition: TFParams.h:32
matrice
Definition: TFParams.h:30
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9
matrice::coeff
double ** coeff
Definition: TFParams.h:33
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
A