CMS 3D CMS Logo

Macros | Functions
TFParams.cc File Reference
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TFParams.h>
#include "TMatrixD.h"
#include "TMath.h"
#include <iostream>
#include <ctime>

Go to the source code of this file.

Macros

#define dimin   10
 
#define dimn   10
 
#define nsamp   10
 
#define ntrack   500
 
#define plshdim   300
 

Functions

matrice cree_mat (int n_lignes, int n_colonnes)
 
matrice cree_mat_prod (matrice A, matrice B)
 
void fill_mat (matrice A, matrice M)
 

Macro Definition Documentation

◆ dimin

#define dimin   10

◆ dimn

#define dimn   10

◆ nsamp

#define nsamp   10

◆ ntrack

#define ntrack   500

◆ plshdim

#define plshdim   300

Function Documentation

◆ cree_mat()

matrice cree_mat ( int  n_lignes,
int  n_colonnes 
)

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  A,
matrice  B 
)

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  A,
matrice  M 
)

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.

matrice::nb_lignes
int nb_lignes
Definition: TFParams.h:28
mps_fire.i
i
Definition: mps_fire.py:428
matrice::nb_colonnes
int nb_colonnes
Definition: TFParams.h:29
matrice
Definition: TFParams.h:27
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9
matrice::coeff
double ** coeff
Definition: TFParams.h:30
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
A