AliPhysics  97344c9 (97344c9)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

Bayesian Method Unfolding Script. More...

#include <iostream>
#include <TList.h>
#include <TFile.h>
#include <TObject.h>
#include <TDirectory.h>
#include "TH1D.h"
#include "TH2D.h"
#include <TROOT.h>
#include <TSystem.h>
#include "RooUnfoldBayes.h"
#include "RooUnfoldResponse.h"
#include <TMath.h>
Include dependency graph for UnfoldMult.C:

Go to the source code of this file.

Typedefs

typedef TCollection Dir
 

Functions

TObjectGetObject (TDirectory *d, const char *name)
 
TObjectGetObject (TCollection *d, const char *name)
 
TCollectionGetCollection (TDirectory *d, const char *name)
 
TCollectionGetCollection (TCollection *d, const char *name)
 
TH1GetH1 (TDirectory *d, const char *name)
 
TH1GetH1 (TCollection *d, const char *name)
 
TH2GetH2 (TDirectory *d, const char *name)
 
TH2GetH2 (TCollection *d, const char *name)
 
TFile * OpenFile (const char *filename, Bool_t readNotWrite)
 
void GetHistos (Double_t lowLim, Double_t highLim, Dir *resp, Dir *data, TDirectory *out)
 
void ProcessUnfold (TH2 *response, TH1 *measured, TH1 *mcHist, TH1 *esdHist)
 
TH1GetTriggerBias (TH1 *mcHist, TH1 *esdHist)
 
void DoCorrection (TH1 *unfoldBefore, TH1 *triggerBias, TH1 *mcHist)
 
void UnfoldMult (const char *respFile="forward_response.root", const char *dataFile="forward_multiplicy.root", const char *outFile="unfolded.root")
 

Detailed Description

Bayesian Method Unfolding Script.

Author
Valentina Zaccolo
Date
Tue Mar 05 12:56:56 2013

Definition in file UnfoldMult.C.

Function Documentation

void DoCorrection ( TH1 unfoldBefore,
TH1 triggerBias,
TH1 mcHist 
)

Apply the trigger bias correction to the unfolded result

Parameters
unfoldBeforeUnfolded measured distribution
triggerBiasTrigger bias correction
mcHistMC truth distribution

Definition at line 358 of file UnfoldMult.C.

Referenced by ProcessUnfold().

TH2* GetH2 ( TDirectory *  d,
const char *  name 
)

Get a 2D-histogram from a directory

Parameters
dParent directory
nameName of histogram
Returns
Pointer to histogram or null

Definition at line 131 of file UnfoldMult.C.

Referenced by GetHistos().