AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Combine.C File Reference
#include <TFile.h>
#include <THStack.h>
#include <TH1.h>
#include <TH2.h>
#include <TError.h>
#include <TMath.h>
#include <TClass.h>
#include <TCanvas.h>
#include <TSystem.h>
#include <TFitResult.h>
#include <TF1.h>
#include "GraphSysErr.C"
Include dependency graph for Combine.C:

Go to the source code of this file.

Namespaces

 CombineNS
 

Functions

void CombineNS::AddPath (const TString &dir, Bool_t prepend=true)
 
void MakeCommon (TObject *o, const char *name, Double_t val, Color_t c)
 
Int_t MakeP2P (TObject *o, const char *name, Color_t c)
 
Double_t SysEval (Double_t x, Double_t sMin, Double_t sMax, Double_t xMax)
 
Double_t CSysEval (Double_t x, Double_t sMin, Double_t sMax)
 
Double_t EtaSysEval (Double_t x, Double_t sMin, Double_t sMax)
 
TObjectMakeGSE (TH1 *g, Int_t bin)
 
TObjectGetO (TDirectory *dir, const char *name="result", TClass *cls=0, Bool_t verbose=true)
 
THStack * GetHS (TDirectory *dir, const char *name="result", Bool_t verbose=true)
 
TH1GetH1 (TDirectory *dir, const char *name="result", Bool_t verbose=true)
 
TH2GetH2 (TDirectory *dir, const char *name="result", Bool_t verbose=true)
 
TH1Combine (TH1 *left, TH1 *middle, TH1 *right, TDirectory *out, Bool_t cutAtTwo=true)
 
TH2Combine (TH2 *left, TH2 *middle, TH2 *right, TDirectory *out)
 
void CombineMap (TH2 *sleft, TH2 *smiddle, TH2 *sright, TDirectory *out)
 
void Combine (THStack *sleft, THStack *smiddle, THStack *sright, THStack *result, TDirectory *out, TList *gses, TH1 *cent=0, Bool_t cutAtTwo=true)
 
void Combine (UShort_t flags=0x0, const char *var="none")
 

Variables

const Bool_t kCombineLoaded = true
 
Int_t cW = 1200
 
Int_t cH = 800
 

Function Documentation

TH1* Combine ( TH1 left,
TH1 middle,
TH1 right,
TDirectory *  out,
Bool_t  cutAtTwo = true 
)

Definition at line 241 of file Combine.C.

Referenced by Combine(), and DoOne().

TH2* Combine ( TH2 left,
TH2 middle,
TH2 right,
TDirectory *  out 
)

Definition at line 283 of file Combine.C.

void Combine ( THStack *  sleft,
THStack *  smiddle,
THStack *  sright,
THStack *  result,
TDirectory *  out,
TList gses,
TH1 cent = 0,
Bool_t  cutAtTwo = true 
)

Definition at line 379 of file Combine.C.

void Combine ( UShort_t  flags = 0x0,
const char *  var = "none" 
)

Definition at line 428 of file Combine.C.

void CombineMap ( TH2 sleft,
TH2 smiddle,
TH2 sright,
TDirectory *  out 
)

Definition at line 326 of file Combine.C.

Referenced by Combine().

Double_t CSysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax 
)

Definition at line 84 of file Combine.C.

Referenced by MakeGSE().

Double_t EtaSysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax 
)

Definition at line 88 of file Combine.C.

TH1* GetH1 ( TDirectory *  dir,
const char *  name = "result",
Bool_t  verbose = true 
)

Definition at line 230 of file Combine.C.

Referenced by Combine().

TH2* GetH2 ( TDirectory *  dir,
const char *  name = "result",
Bool_t  verbose = true 
)

Definition at line 235 of file Combine.C.

Referenced by Combine().

THStack* GetHS ( TDirectory *  dir,
const char *  name = "result",
Bool_t  verbose = true 
)

Definition at line 225 of file Combine.C.

Referenced by Combine().

TObject* GetO ( TDirectory *  dir,
const char *  name = "result",
TClass *  cls = 0,
Bool_t  verbose = true 
)

Definition at line 192 of file Combine.C.

Referenced by GetH1(), GetH2(), and GetHS().

void MakeCommon ( TObject o,
const char *  name,
Double_t  val,
Color_t  c 
)

Define a correlated uncertainty

Parameters
oGraph
nameName
valValue (relative)
cColor

Definition at line 52 of file Combine.C.

Referenced by MakeGSE().

TObject* MakeGSE ( TH1 g,
Int_t  bin 
)

Make a GraphSysErr object

Parameters
gGraph
binBin number
Returns
Newly created GraphSysErr

Definition at line 102 of file Combine.C.

Referenced by Combine().

Int_t MakeP2P ( TObject o,
const char *  name,
Color_t  c 
)

Declare a point-to-point uncertainty

Parameters
oGraph
nameName
cColor
Returns
Id of Syst.unc.

Definition at line 69 of file Combine.C.

Referenced by MakeGSE().

Double_t SysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax,
Double_t  xMax 
)

Definition at line 79 of file Combine.C.

Referenced by CSysEval(), and EtaSysEval().

Variable Documentation

Int_t cW = 1200

Definition at line 25 of file Combine.C.

Referenced by Combine(), DrawDeltas2(), DrawDeltas3(), and DrawKs().

const Bool_t kCombineLoaded = true

Definition at line 24 of file Combine.C.