AliPhysics  64f4410 (64f4410)

Calculate Chi2 distributions for different cluster parameters. More...

#include <TFile.h>
#include <TDirectoryFile.h>
#include <TList.h>
#include <TString.h>
#include <TROOT.h>
#include <TStyle.h>
#include <TH1D.h>
#include <TH2F.h>
#include <TH3F.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TLegend.h>
#include <TObject.h>
#include <TAxis.h>
#include <TGaxis.h>
#include <TLine.h>
#include <TF1.h>
#include <TMath.h>
#include <TArrayD.h>
#include <TGraphErrors.h>
Include dependency graph for CalculateParamChi2MCxTalkDataPerSM.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Chi2 (TH1D *h, TH1D *hD, TH1D *&hChi2, TH1D *&hDiff, Bool_t debug=kFALSE)
 
void CalculateParamChi2MCxTalkDataPerSM (TString histoName="SMM02NoCut", TString inputFileName="", Int_t dataProd=0, Int_t firstSM=0, Int_t lastSM=9, TArrayD binE=0, TArrayD prodParam=0, Int_t rebin=1, Bool_t debug=kFALSE)
 

Variables

TString fileFormat = ".eps"
 
Int_t firstEbin = 0
 

Detailed Description

Calculate Chi2 distributions for different cluster parameters.

Take the output distributions of CompareDataAndNMCProdPerSM.C and calculate the Chi2 distribution provided a "data" distribution reference compared to multiple MC distributions. See how to execute it in MakeDataMCComparisonPerSMClusterEbinAndChi2.C. Calculated Chi2 histograms stored in output file for further processing and calculations.

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS)

Definition in file CalculateParamChi2MCxTalkDataPerSM.C.

Function Documentation

void CalculateParamChi2MCxTalkDataPerSM ( TString  histoName = "SMM02NoCut",
TString  inputFileName = "",
Int_t  dataProd = 0,
Int_t  firstSM = 0,
Int_t  lastSM = 9,
TArrayD  binE = 0,
TArrayD  prodParam = 0,
Int_t  rebin = 1,
Bool_t  debug = kFALSE 
)

Main method

Parameters
histoName: Name of histogram with the parameter to study = "SMM02NoCut", "SMM02NoCut","SMM02", "SMM20LowM02NoCut","SMM20LowM02","SMM20HighM02NoCut","SMM20HighM02","SMNCell"
inputFileName: String with part of input file name
dataProd: Index of reference data production file
firstSM: First SM to be studied
lastSM: Last SM to be studied
binE: TArrayD with list of energy bin limits
prodParam: TArrayD with list of parameter that changed in the different MC
rebin: Optional additional histogram rebinning
debug: Bool to activate printfs.

Per SM/Param

Definition at line 59 of file CalculateParamChi2MCxTalkDataPerSM.C.

Referenced by MakeDataMCComparisonPerSMClusterEbinAndChi2().

void Chi2 ( TH1D h,
TH1D hD,
TH1D *&  hChi2,
TH1D *&  hDiff,
Bool_t  debug 
)

This method calculates the difference and Chi2 of 2 histograms

Parameters
h: Input MC histogram
hD: Input Data reference histogram
hChi2: Output Chi2 histogram
hDiff: Output Difference
debug: Print debugging info

Definition at line 794 of file CalculateParamChi2MCxTalkDataPerSM.C.

Referenced by CalculateParamChi2MCxTalkDataPerSM().

Variable Documentation

TString fileFormat = ".eps"
Int_t firstEbin = 0