AliPhysics  86c65ee (86c65ee)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Check.C File Reference

Run check of reconstructed and simulated data. More...

#include <TROOT.h>
#include <TFile.h>
#include <TError.h>
#include <TH1.h>
#include <TH2.h>
#include <TF1.h>
#include <TCanvas.h>
#include <TVector3.h>
#include <TPDGCode.h>
#include <TParticle.h>
#include "AliRunLoader.h"
#include "AliLoader.h"
#include "AliESDEvent.h"
#include "AliESDv0.h"
#include "AliESDcascade.h"
#include "AliESDMuonTrack.h"
#include "AliESDCaloCluster.h"
#include "AliRun.h"
#include "AliStack.h"
#include "AliHeader.h"
#include "AliGenEventHeader.h"
#include "AliPID.h"
Include dependency graph for Check.C:

Go to the source code of this file.

Functions

TH1CreateHisto (const char *name, const char *title, Int_t nBins, Double_t xMin, Double_t xMax, const char *xLabel=NULL, const char *yLabel=NULL)
 
TH1CreateEffHisto (TH1 *hGen, TH1 *hRec)
 
Bool_t FitHisto (TH1 *histo, Double_t &res, Double_t &resError)
 
Bool_t Check (const char *gAliceFileName="galice.root", const char *esdFileName="AliESDs.root")
 

Detailed Description

Run check of reconstructed and simulated data.

Author
Christian Holm Christensen cholm.nosp@m.@nbi.nosp@m..dk
Date
Wed Oct 15 13:01:59 2014
Note
Do not modify this script

Definition in file Check.C.

Function Documentation

Bool_t Check ( const char *  gAliceFileName = "galice.root",
const char *  esdFileName = "AliESDs.root" 
)

Run the check.

Parameters
gAliceFileNameMC steering file
esdFileNameReconstructed data
Returns
true on success

Definition at line 147 of file Check.C.

TH1* CreateEffHisto ( TH1 hGen,
TH1 hRec 
)

Create efficiency histogram

Parameters
hGenGenerated
hRecReconstructed
Returns
Newly allocated histogram

Definition at line 77 of file Check.C.

Referenced by Check().

TH1* CreateHisto ( const char *  name,
const char *  title,
Int_t  nBins,
Double_t  xMin,
Double_t  xMax,
const char *  xLabel = NULL,
const char *  yLabel = NULL 
)

Create a histogram

Parameters
nameName of histogram
titleTitle of histogram
nBinsNumber of bins
xMinLease X valuee
xMaxLargest X value
xLabelX label
yLabelY label
Returns
newly allocated histogram

Definition at line 51 of file Check.C.

Referenced by Check().

Bool_t FitHisto ( TH1 histo,
Double_t res,
Double_t resError 
)

Fit a Gaussian distribution to data in histogram

Parameters
histoHistogram to fit
resOn return, the result
resErrorOn return, the error on the result
Returns
true on success, false if too few entries

Definition at line 118 of file Check.C.

Referenced by Check().