testUnfold7c.C File Reference

Go to the source code of this file.

Defines

#define TEST_INPUT_COVARIANCE
#define READ(TYPE, binning, name)
#define NREPLICA   300

Functions

void CreateHistogramCopies (TH1 *h[3], TUnfoldBinning const *binning)
void CreateHistogramCopies (TH2 *h[3], TUnfoldBinning const *binningX)
TH2 * AddOverflowXY (TH2 *h, double widthX, double widthY)
TH1 * AddOverflowX (TH1 *h, double width)
void DrawOverflowX (TH1 *h, double posy)
void DrawOverflowY (TH1 *h, double posx)
void DrawPadProbability (TH2 *h)
void DrawPadEfficiency (TH1 *h)
void DrawPadReco (TH1 *histMcRec, TH1 *histMcbgrRec, TH1 *histDataRec, TH1 *histDataUnfold, TH2 *histProbability, TH2 *histRhoij)
void DrawPadTruth (TH1 *histMcsigGen, TH1 *histDataGen, TH1 *histDataUnfold, char const *text=0, double tau=0.0, vector< double > const *r=0, TF1 *f=0)
void DrawPadCorrelations (TH2 *h, vector< pair< TF1 *, vector< double > > > const *table)
TFitResultPtr DoFit (TH1 *h, TH2 *rho, TH1 *truth, char const *text, vector< pair< TF1 *, vector< double > > > &table, int niter=0)
void GetNiterGraphs (int iFirst, int iLast, vector< pair< TF1 *, vector< double > > > const &table, int color, TGraph *graph[4], int style)
void GetNiterHist (int ifit, vector< pair< TF1 *, vector< double > > > const &table, TH1 *hist[4], int color, int style, int fillStyle)
void testUnfold7c ()
void fcn (Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)

Variables

double const kLegendFontSize = 0.05
int kNbinC = 0
TRandom3 * g_rnd
TH1 * g_fcnHist = 0
TMatrixD * g_fcnMatrix = 0

Define Documentation

#define NREPLICA   300

Referenced by testUnfold7c().

#define READ ( TYPE,
binning,
name   ) 
Value:
TYPE *name[3]; inputFile->GetObject(#name,name[0]); \
  name[0]->Write();                                   \
  if(!name[0]) cout<<"Error reading " #name "\n";     \
  CreateHistogramCopies(name,binning);

Referenced by testUnfold7c().

#define TEST_INPUT_COVARIANCE

Definition at line 96 of file testUnfold7c.C.


Function Documentation

TH1 * AddOverflowX ( TH1 *  h,
double  width 
)

Definition at line 1143 of file testUnfold7c.C.

Referenced by testUnfold7c().

TH2 * AddOverflowXY ( TH2 *  h,
double  widthX,
double  widthY 
)

Definition at line 1113 of file testUnfold7c.C.

Referenced by testUnfold7c().

void CreateHistogramCopies ( TH2 *  h[3],
TUnfoldBinning const *  binningX 
)

Definition at line 1108 of file testUnfold7c.C.

void CreateHistogramCopies ( TH1 *  h[3],
TUnfoldBinning const *  binning 
)

Definition at line 1077 of file testUnfold7c.C.

Referenced by testUnfold7c().

TFitResultPtr DoFit ( TH1 *  h,
TH2 *  rho,
TH1 *  truth,
char const *  text,
vector< pair< TF1 *, vector< double > > > &  table,
int  niter = 0 
)

Definition at line 1476 of file testUnfold7c.C.

Referenced by testUnfold7c().

void DrawOverflowX ( TH1 *  h,
double  posy 
)
void DrawOverflowY ( TH1 *  h,
double  posx 
)

Definition at line 1182 of file testUnfold7c.C.

Referenced by DrawPadCorrelations(), and DrawPadProbability().

void DrawPadCorrelations ( TH2 *  h,
vector< pair< TF1 *, vector< double > > > const *  table 
)

Definition at line 1427 of file testUnfold7c.C.

Referenced by testUnfold7c().

void DrawPadEfficiency ( TH1 *  h  ) 

Definition at line 1203 of file testUnfold7c.C.

Referenced by testUnfold7c().

void DrawPadProbability ( TH2 *  h  ) 

Definition at line 1196 of file testUnfold7c.C.

Referenced by testUnfold7c().

void DrawPadReco ( TH1 *  histMcRec,
TH1 *  histMcbgrRec,
TH1 *  histDataRec,
TH1 *  histDataUnfold,
TH2 *  histProbability,
TH2 *  histRhoij 
)

Definition at line 1219 of file testUnfold7c.C.

Referenced by testUnfold7c().

void DrawPadTruth ( TH1 *  histMcsigGen,
TH1 *  histDataGen,
TH1 *  histDataUnfold,
char const *  text = 0,
double  tau = 0.0,
vector< double > const *  r = 0,
TF1 *  f = 0 
)

Definition at line 1317 of file testUnfold7c.C.

Referenced by testUnfold7c().

void fcn ( Int_t &  npar,
Double_t *  gin,
Double_t &  f,
Double_t *  u,
Int_t  flag 
)

Definition at line 1451 of file testUnfold7c.C.

Referenced by DoFit().

void GetNiterGraphs ( int  iFirst,
int  iLast,
vector< pair< TF1 *, vector< double > > > const &  table,
int  color,
TGraph *  graph[4],
int  style 
)

Definition at line 1010 of file testUnfold7c.C.

Referenced by testUnfold7c().

void GetNiterHist ( int  ifit,
vector< pair< TF1 *, vector< double > > > const &  table,
TH1 *  hist[4],
int  color,
int  style,
int  fillStyle 
)

Definition at line 1045 of file testUnfold7c.C.

Referenced by testUnfold7c().

void testUnfold7c (  ) 

Definition at line 140 of file testUnfold7c.C.


Variable Documentation

TH1* g_fcnHist = 0

Definition at line 1448 of file testUnfold7c.C.

Referenced by DoFit(), and fcn().

TMatrixD* g_fcnMatrix = 0

Definition at line 1449 of file testUnfold7c.C.

Referenced by DoFit(), and fcn().

TRandom3* g_rnd

Definition at line 138 of file testUnfold7c.C.

double const kLegendFontSize = 0.05
int kNbinC = 0

Definition at line 109 of file testUnfold7c.C.

Referenced by DrawPadReco(), and testUnfold7c().

 All Classes Files Functions Variables Enumerations Enumerator Defines

Generated on 17 Nov 2016 for TUnfold by  doxygen 1.6.1