CbmRoot
Loading...
Searching...
No Matches
PairAnalysisHelper.h
Go to the documentation of this file.
1#ifndef PAIRANALYSISHELPER_H
2#define PAIRANALYSISHELPER_H
3/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
7// //
8// PairAnalysis helpers //
9// //
10// //
11// Authors: //
12// Julian Book <Julian.Book@cern.ch> //
13// //
15
16
17#include "CbmDefs.h"
18
19#include <TArrayD.h>
20#include <TVectorDfwd.h>
21
22//class AliKFParticle;
23/* class AliVEvent; */
24/* class AliMCEvent; */
26class TFormula;
27class TH1;
28class TH2;
29class TObjArray;
30
32{
33
34 TVectorD* MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax);
35 TVectorD* MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax);
36 TVectorD* MakeArbitraryBinning(const char* bins);
37 TVectorD* MakeGausBinning(Int_t nbinsX, Double_t mean, Double_t sigma);
38 TVectorD* CombineBinning(TVectorD* low, TVectorD* high);
39
40 TArrayD* MakeStatBinLimits(TH1* h, Double_t stat);
41
42 TVectorD* MakePdgBinning();
43
44 // void RotateKFParticle(AliKFParticle * kfParticle,Double_t angle/*, const PairAnalysisEventNEW * const ev=0x0*/);
45
46 // tformula functions
47 Double_t EvalFormula(TFormula* form, const Double_t* values);
48 TString GetFormulaTitle(TFormula* form);
49 TString GetFormulaName(TFormula* form);
50 TFormula* GetFormula(const char* name, const char* formula);
51
52 // pdg labels
53 void SetPDGBinLabels(TH1* hist, Bool_t clean);
54 TString GetPDGlabel(Int_t pdg);
55 void SetGEANTBinLabels(TH1* hist);
56
57 // misc
58 TString GetDetName(ECbmModuleId det);
59 Double_t GetContentMinimum(TH1* h, Bool_t inclErr = kTRUE);
60 Double_t GetContentMaximum(TH1* h, Bool_t inclErr = kTRUE);
61 Double_t GetQuantile(TH1* h1, Double_t p = 0.5);
62
63 void NormalizeSlicesY(TH2* h);
64 void CumulateSlicesX(TH2* h, Bool_t reverse = kFALSE, Bool_t norm = kFALSE);
65 void Cumulate(TH1* h, Bool_t reverse = kFALSE, Bool_t norm = kFALSE);
66
67 TObject* FindObjectByTitle(TObjArray* arrhist, TString ref);
68
69 Int_t GetPrecision(Double_t value);
70
71} // namespace PairAnalysisHelper
72
73#endif
ECbmModuleId
Definition CbmDefs.h:39
Data class with information on a STS local track.
Int_t GetPrecision(Double_t value)
TString GetFormulaName(TFormula *form)
TObject * FindObjectByTitle(TObjArray *arrhist, TString ref)
void SetGEANTBinLabels(TH1 *hist)
TArrayD * MakeStatBinLimits(TH1 *h, Double_t stat)
TString GetFormulaTitle(TFormula *form)
Double_t GetQuantile(TH1 *h1, Double_t p=0.5)
void CumulateSlicesX(TH2 *h, Bool_t reverse=kFALSE, Bool_t norm=kFALSE)
Double_t GetContentMinimum(TH1 *h, Bool_t inclErr=kTRUE)
Double_t GetContentMaximum(TH1 *h, Bool_t inclErr=kTRUE)
TFormula * GetFormula(const char *name, const char *formula)
TVectorD * CombineBinning(TVectorD *low, TVectorD *high)
Double_t EvalFormula(TFormula *form, const Double_t *values)
TVectorD * MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax)
TVectorD * MakeGausBinning(Int_t nbinsX, Double_t mean, Double_t sigma)
void SetPDGBinLabels(TH1 *hist, Bool_t clean)
TString GetDetName(ECbmModuleId det)
void Cumulate(TH1 *h, Bool_t reverse=kFALSE, Bool_t norm=kFALSE)
TString GetPDGlabel(Int_t pdg)
TVectorD * MakeArbitraryBinning(const char *bins)
TVectorD * MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax)