|
CbmRoot
|
#include <LmvmHist.h>
Public Member Functions | |
| LmvmHist () | |
| virtual | ~LmvmHist () |
| std::vector< std::string > | CombineNames (const std::string &name, const std::vector< std::string > &subNames) |
| std::vector< std::string > | CombineNames (const std::string &name, const std::vector< std::string > &subNames1, const std::vector< std::string > &subNames2) |
| void | CreateH1 (const std::string &name, const std::string &axisX, const std::string &axisY, double nBins, double min, double max) |
| void | CreateH1 (const std::string &name, const std::string &axisX, const std::string &axisY, double nBins, double min, double max, bool doSumw2) |
| void | CreateH1 (const std::string &name, const std::vector< std::string > &subNames, const std::string &axisX, const std::string &axisY, double nBins, double min, double max) |
| void | CreateH1 (const std::string &name, const std::vector< std::string > &subNames, const std::string &axisX, const std::string &axisY, double nBins, double min, double max, bool doSumw2) |
| void | CreateH1 (const std::string &name, const std::vector< std::string > &subNames1, const std::vector< std::string > &subNames2, const std::string &axisX, const std::string &axisY, double nBins, double min, double max) |
| void | CreateH1 (const std::string &name, const std::vector< std::string > &subNames1, const std::vector< std::string > &subNames2, const std::string &axisX, const std::string &axisY, double nBins, double min, double max, bool doSumw2) |
| void | CreateH2 (const std::string &name, const std::string &axisX, const std::string &axisY, const std::string &axisZ, double nBinsX, double minX, double maxX, double nBinsY, double minY, double maxY) |
| void | CreateH2 (const std::string &name, const std::vector< std::string > &subNames, const std::string &axisX, const std::string &axisY, const std::string &axisZ, double nBinsX, double minX, double maxX, double nBinsY, double minY, double maxY) |
| void | CreateH2 (const std::string &name, const std::vector< std::string > &subNames1, const std::vector< std::string > &subNames2, const std::string &axisX, const std::string &axisY, const std::string &axisZ, double nBinsX, double minX, double maxX, double nBinsY, double minY, double maxY) |
| template<typename T> | |
| T * | CreateHByClone (const std::string &name, const std::string &newName) |
| TH1D * | CreateHByClone (TH1D *h, const std::string &newName) |
| template<typename T> | |
| T * | CreateHByClone (const std::string &name, const std::string &newName, ELmvmAnaStep step) |
| void | FillH1 (const std::string &name, double x, double w=1.) |
| void | FillH2 (const std::string &name, double x, double y, double w=1.) |
| void | FillH1 (const std::string &name, ELmvmAnaStep step, double x, double w=1.) |
| void | FillH2 (const std::string &name, ELmvmAnaStep step, double x, double y, double w=1.) |
| void | FillH1 (const std::string &name, ELmvmSrc src, double x, double wSignal) |
| void | FillH2 (const std::string &name, ELmvmSrc src, double x, double y, double wSignal) |
| void | FillH1 (const std::string &name, ELmvmSrc src, ELmvmAnaStep step, double x, double wSignal) |
| void | FillH2 (const std::string &name, ELmvmSrc src, ELmvmAnaStep step, double x, double y, double wSignal) |
| TNamed * | GetObject (const std::string &name) |
| TH1D * | H1 (const std::string &name) |
| TH2D * | H2 (const std::string &name) |
| TH1D * | H1 (const std::string &name, ELmvmAnaStep step) |
| TH2D * | H2 (const std::string &name, ELmvmAnaStep step) |
| TH1D * | H1 (const std::string &name, ELmvmSrc src) |
| TH2D * | H2 (const std::string &name, ELmvmSrc src) |
| TH1D * | H1 (const std::string &name, ELmvmSrc src, ELmvmAnaStep step) |
| TH2D * | H2 (const std::string &name, ELmvmSrc src, ELmvmAnaStep step) |
| TH1D * | H1Clone (const std::string &name) |
| TH2D * | H2Clone (const std::string &name) |
| TH1D * | H1Clone (const std::string &name, ELmvmAnaStep step) |
| TH2D * | H2Clone (const std::string &name, ELmvmAnaStep step) |
| TH1D * | H1Clone (const std::string &name, ELmvmSrc src) |
| TH2D * | H2Clone (const std::string &name, ELmvmSrc src) |
| TH1D * | H1Clone (const std::string &name, ELmvmSrc src, ELmvmAnaStep step) |
| TH2D * | H2Clone (const std::string &name, ELmvmSrc src, ELmvmAnaStep step) |
| std::string | GetName (const std::string &name, ELmvmAnaStep step) |
| std::string | GetName (const std::string &name, ELmvmSrc src) |
| std::string | GetName (const std::string &name, ELmvmSrc src, ELmvmAnaStep step) |
| void | SetOptH1 (TH1D *hist, TString xAxisTitle, TString yAxisTitle, Int_t Ndevision, Int_t style, Float_t size, Int_t color, std::string opt="") |
| void | SetOptCanvas (TCanvas *canvas) |
| void | SetLegend (std::vector< LmvmLegend >, double textsize, double x1, double y1, double x2, double y2) |
| void | DrawSimDataLabel (double xPos, double yPos) |
| void | DrawSimDataLabel (double xPos, double yPos, double textSize) |
| void | SetAnalysisStepAxis (TH1 *hist) |
| void | Rebin (const std::string &name, int nGroup) |
| void | Rebin (const std::string &name, const std::vector< std::string > &subNames, int nGroup) |
| void | Rebin (const std::string &name, const std::vector< std::string > &subNames1, const std::vector< std::string > &subNames2, int nGroup) |
| TH1D * | CreateSignificanceH1 (TH1D *s, TH1D *bg, const std::string &name, const std::string &option) |
| TH2D * | CreateSignificanceH2 (TH2D *signal, TH2D *bg, const std::string &name, const std::string &title) |
| void | DrawAll (int dim, const std::string &hFullname, const std::string &padText, std::vector< std::string > xLabel, std::vector< std::string > yLabel, bool logX, bool logY, double min, double max) |
| void | DrawAllGTracks (int dim, const std::string &cName, const std::string &hName, std::vector< std::string > xLabel, std::vector< std::string > yLabel, bool logX, bool logY, double min, double max) |
| void | DrawAllCands (int dim, const std::string &cName, const std::string &hName, std::vector< std::string > xLabel, std::vector< std::string > yLabel, bool logX, bool logY, double min, double max) |
| void | DrawAllCandsAndSteps (int dim, const std::string &cName, const std::string &hName, std::vector< std::string > xLabel, std::vector< std::string > yLabel, bool logX, bool logY, double min, double max) |
| void | DrawRatioElectronsOthers (const std::string &cName, const std::string &hName) |
| TH2D * | GetRatioElectronsOthers (const std::string &hName, ELmvmAnaStep step) |
| void | WriteToFile () |
| void | DrawEfficiency (TH1 *h1, TH1 *h2, double xPos, double yPos) |
| ClassDef (LmvmHist, 1) | |
Static Public Member Functions | |
| static void | DrawAnaStepOnPad (ELmvmAnaStep step) |
Public Attributes | |
| double | fRebinMinv = 1. |
| CbmHistManager | fHM |
Static Public Attributes | |
| static const int | fNofSrc = 5 |
| static const std::vector< ELmvmSrc > | fSrcs |
| static const std::vector< std::string > | fSrcNames = {"signal", "bg", "pi0", "gamma", "eta"} |
| static const std::vector< std::string > | fSrcLatex = {"S", "BG_{oth}", "#pi^{0}", "#gamma", "#eta"} |
| static const std::vector< int > | fSrcColors = {kRed, kBlue, kGreen, kOrange, kMagenta} |
| static const int | fNofAnaSteps = 12 |
| static const std::vector< ELmvmAnaStep > | fAnaSteps |
| static const std::vector< std::string > | fAnaStepNames |
| static const std::vector< std::string > | fAnaStepLatex |
| static const std::vector< int > | fAnaStepColors |
| static const std::vector< ELmvmAnaStep > | fAnaStepsFS |
| static const int | fNofSignals = 5 |
| static const std::vector< std::string > | fSignalNames |
| static const std::vector< ELmvmSignal > | fSignals |
| static const int | fNofBgPairSrc = 6 |
| static const std::vector< std::string > | fBgPairSrcNames = {"GG", "PP", "OO", "GP", "GO", "PO"} |
| static const std::vector< std::string > | fBgPairSrcLatex |
| static const int | fNofGTrackNames = 15 |
| static const std::vector< std::string > | fGTrackNames |
| static const std::vector< std::string > | fGTrackLatex |
| static const int | fNofCandNames = 10 |
| static const std::vector< std::string > | fCandNames |
| static const std::vector< std::string > | fCandLatex |
| static const std::vector< std::string > | fFSCandNames |
| static const std::vector< std::string > | fFSCandLatex |
Definition at line 18 of file LmvmHist.h.
| LmvmHist::LmvmHist | ( | ) |
Definition at line 78 of file LmvmHist.cxx.
Referenced by ClassDef().
|
inlinevirtual |
Definition at line 21 of file LmvmHist.h.
| LmvmHist::ClassDef | ( | LmvmHist | , |
| 1 | ) |
References LmvmHist().
| std::vector< std::string > LmvmHist::CombineNames | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames ) |
| std::vector< std::string > LmvmHist::CombineNames | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames1, | ||
| const std::vector< std::string > & | subNames2 ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max, | ||
| bool | doSumw2 ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max, | ||
| bool | doSumw2 ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames1, | ||
| const std::vector< std::string > & | subNames2, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max ) |
| void LmvmHist::CreateH1 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames1, | ||
| const std::vector< std::string > & | subNames2, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| double | nBins, | ||
| double | min, | ||
| double | max, | ||
| bool | doSumw2 ) |
| void LmvmHist::CreateH2 | ( | const std::string & | name, |
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| const std::string & | axisZ, | ||
| double | nBinsX, | ||
| double | minX, | ||
| double | maxX, | ||
| double | nBinsY, | ||
| double | minY, | ||
| double | maxY ) |
| void LmvmHist::CreateH2 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| const std::string & | axisZ, | ||
| double | nBinsX, | ||
| double | minX, | ||
| double | maxX, | ||
| double | nBinsY, | ||
| double | minY, | ||
| double | maxY ) |
| void LmvmHist::CreateH2 | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames1, | ||
| const std::vector< std::string > & | subNames2, | ||
| const std::string & | axisX, | ||
| const std::string & | axisY, | ||
| const std::string & | axisZ, | ||
| double | nBinsX, | ||
| double | minX, | ||
| double | maxX, | ||
| double | nBinsY, | ||
| double | minY, | ||
| double | maxY ) |
|
inline |
|
inline |
Definition at line 116 of file LmvmHist.h.
References CreateHByClone(), and GetName().
|
inline |
Definition at line 107 of file LmvmHist.h.
References fHM.
| TH1D * LmvmHist::CreateSignificanceH1 | ( | TH1D * | s, |
| TH1D * | bg, | ||
| const std::string & | name, | ||
| const std::string & | option ) |
Definition at line 384 of file LmvmHist.cxx.
| TH2D * LmvmHist::CreateSignificanceH2 | ( | TH2D * | signal, |
| TH2D * | bg, | ||
| const std::string & | name, | ||
| const std::string & | title ) |
Definition at line 413 of file LmvmHist.cxx.
| void LmvmHist::DrawAll | ( | int | dim, |
| const std::string & | hFullname, | ||
| const std::string & | padText, | ||
| std::vector< std::string > | xLabel, | ||
| std::vector< std::string > | yLabel, | ||
| bool | logX, | ||
| bool | logY, | ||
| double | min, | ||
| double | max ) |
Definition at line 505 of file LmvmHist.cxx.
References DrawH1(), DrawH2(), DrawTextOnPad(), H1Clone(), H2Clone(), kLinear, kLog, max(), and min().
Referenced by DrawAllCands(), DrawAllCandsAndSteps(), and DrawAllGTracks().
| void LmvmHist::DrawAllCands | ( | int | dim, |
| const std::string & | cName, | ||
| const std::string & | hName, | ||
| std::vector< std::string > | xLabel, | ||
| std::vector< std::string > | yLabel, | ||
| bool | logX, | ||
| bool | logY, | ||
| double | min, | ||
| double | max ) |
Definition at line 463 of file LmvmHist.cxx.
References DrawAll(), fCandLatex, fCandNames, fHM, max(), and min().
| void LmvmHist::DrawAllCandsAndSteps | ( | int | dim, |
| const std::string & | cName, | ||
| const std::string & | hName, | ||
| std::vector< std::string > | xLabel, | ||
| std::vector< std::string > | yLabel, | ||
| bool | logX, | ||
| bool | logY, | ||
| double | min, | ||
| double | max ) |
Definition at line 476 of file LmvmHist.cxx.
References DrawAll(), DrawRatioElectronsOthers(), fAnaStepNames, fAnaSteps, fCandLatex, fCandNames, fHM, GetName(), max(), and min().
| void LmvmHist::DrawAllGTracks | ( | int | dim, |
| const std::string & | cName, | ||
| const std::string & | hName, | ||
| std::vector< std::string > | xLabel, | ||
| std::vector< std::string > | yLabel, | ||
| bool | logX, | ||
| bool | logY, | ||
| double | min, | ||
| double | max ) |
Definition at line 450 of file LmvmHist.cxx.
References DrawAll(), fGTrackLatex, fGTrackNames, fHM, max(), and min().
|
static |
Definition at line 594 of file LmvmHist.cxx.
References DrawTextOnPad(), and fAnaStepLatex.
Referenced by DrawRatioElectronsOthers().
| void LmvmHist::DrawEfficiency | ( | TH1 * | h1, |
| TH1 * | h2, | ||
| double | xPos, | ||
| double | yPos ) |
Definition at line 585 of file LmvmHist.cxx.
References Cbm::NumberToString().
| void LmvmHist::DrawRatioElectronsOthers | ( | const std::string & | cName, |
| const std::string & | hName ) |
Definition at line 567 of file LmvmHist.cxx.
References DrawAnaStepOnPad(), DrawH2(), fAnaSteps, fHM, GetRatioElectronsOthers(), kLinear, and kLog.
Referenced by DrawAllCandsAndSteps().
| void LmvmHist::DrawSimDataLabel | ( | double | xPos, |
| double | yPos ) |
Definition at line 343 of file LmvmHist.cxx.
References DrawSimDataLabel().
Referenced by DrawSimDataLabel().
| void LmvmHist::DrawSimDataLabel | ( | double | xPos, |
| double | yPos, | ||
| double | textSize ) |
Definition at line 345 of file LmvmHist.cxx.
| void LmvmHist::FillH1 | ( | const std::string & | name, |
| double | x, | ||
| double | w = 1. ) |
References x.
| void LmvmHist::FillH1 | ( | const std::string & | name, |
| ELmvmAnaStep | step, | ||
| double | x, | ||
| double | w = 1. ) |
References x.
| void LmvmHist::FillH1 | ( | const std::string & | name, |
| ELmvmSrc | src, | ||
| double | x, | ||
| double | wSignal ) |
References x.
| void LmvmHist::FillH1 | ( | const std::string & | name, |
| ELmvmSrc | src, | ||
| ELmvmAnaStep | step, | ||
| double | x, | ||
| double | wSignal ) |
References x.
| void LmvmHist::FillH2 | ( | const std::string & | name, |
| double | x, | ||
| double | y, | ||
| double | w = 1. ) |
| void LmvmHist::FillH2 | ( | const std::string & | name, |
| ELmvmAnaStep | step, | ||
| double | x, | ||
| double | y, | ||
| double | w = 1. ) |
| void LmvmHist::FillH2 | ( | const std::string & | name, |
| ELmvmSrc | src, | ||
| double | x, | ||
| double | y, | ||
| double | wSignal ) |
| void LmvmHist::FillH2 | ( | const std::string & | name, |
| ELmvmSrc | src, | ||
| ELmvmAnaStep | step, | ||
| double | x, | ||
| double | y, | ||
| double | wSignal ) |
| std::string LmvmHist::GetName | ( | const std::string & | name, |
| ELmvmAnaStep | step ) |
Referenced by CreateHByClone(), DrawAllCandsAndSteps(), H1(), H1(), H1(), H2(), H2(), and H2().
| std::string LmvmHist::GetName | ( | const std::string & | name, |
| ELmvmSrc | src ) |
| std::string LmvmHist::GetName | ( | const std::string & | name, |
| ELmvmSrc | src, | ||
| ELmvmAnaStep | step ) |
References size().
|
inline |
Definition at line 130 of file LmvmHist.h.
References fHM.
Referenced by LmvmDrawAll::GetCocktailMinv().
| TH2D * LmvmHist::GetRatioElectronsOthers | ( | const std::string & | hName, |
| ELmvmAnaStep | step ) |
Definition at line 551 of file LmvmHist.cxx.
References fCandNames, H2(), and H2Clone().
Referenced by DrawRatioElectronsOthers().
|
inline |
Definition at line 132 of file LmvmHist.h.
References fHM.
Referenced by LmvmDrawAll::CalculateSBgResult(), LmvmDrawAll::DrawMinvOfficialStyle(), LmvmDrawAll::DrawStudies(), LmvmDrawAll::DrawSystematicErrorFsSignal(), LmvmDrawAll::GetCocktailMinv(), H1Clone(), H1Clone(), H1Clone(), and H1Clone().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 141 of file LmvmHist.h.
References H1().
Referenced by LmvmDrawAll::CalculateSignal(), LmvmDrawAll::CheckVaryBinWidth(), DrawAll(), LmvmDrawAll::DrawEfficiency(), LmvmDrawAll::DrawMinvScaleValues(), LmvmDrawAll::DrawMomPluto(), LmvmDrawAll::DrawRapidity(), LmvmDrawAll::DrawSystematicErrorFsSignal(), LmvmDrawAll::DrawTemperature(), and LmvmDrawAll::GetCBForNormRange().
|
inline |
Definition at line 143 of file LmvmHist.h.
References H1().
|
inline |
Definition at line 145 of file LmvmHist.h.
References H1().
|
inline |
Definition at line 147 of file LmvmHist.h.
References H1().
|
inline |
Definition at line 133 of file LmvmHist.h.
References fHM.
Referenced by LmvmDrawAll::DrawStudies(), GetRatioElectronsOthers(), H2Clone(), H2Clone(), H2Clone(), and H2Clone().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 142 of file LmvmHist.h.
References H2().
Referenced by DrawAll(), LmvmDrawAll::DrawPtY(), LmvmDrawAll::DrawStudies(), and GetRatioElectronsOthers().
|
inline |
Definition at line 144 of file LmvmHist.h.
References H2().
|
inline |
Definition at line 146 of file LmvmHist.h.
References H2().
|
inline |
Definition at line 151 of file LmvmHist.h.
References H2().
| void LmvmHist::Rebin | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames, | ||
| int | nGroup ) |
| void LmvmHist::Rebin | ( | const std::string & | name, |
| const std::vector< std::string > & | subNames1, | ||
| const std::vector< std::string > & | subNames2, | ||
| int | nGroup ) |
| void LmvmHist::Rebin | ( | const std::string & | name, |
| int | nGroup ) |
| void LmvmHist::SetAnalysisStepAxis | ( | TH1 * | hist | ) |
Definition at line 354 of file LmvmHist.cxx.
References fAnaStepLatex, fAnaSteps, fNofAnaSteps, Reco, and x.
| void LmvmHist::SetLegend | ( | std::vector< LmvmLegend > | , |
| double | textsize, | ||
| double | x1, | ||
| double | y1, | ||
| double | x2, | ||
| double | y2 ) |
Definition at line 324 of file LmvmHist.cxx.
| void LmvmHist::SetOptCanvas | ( | TCanvas * | canvas | ) |
Definition at line 298 of file LmvmHist.cxx.
| void LmvmHist::SetOptH1 | ( | TH1D * | hist, |
| TString | xAxisTitle, | ||
| TString | yAxisTitle, | ||
| Int_t | Ndevision, | ||
| Int_t | style, | ||
| Float_t | size, | ||
| Int_t | color, | ||
| std::string | opt = "" ) |
Definition at line 254 of file LmvmHist.cxx.
References size().
| void LmvmHist::WriteToFile | ( | ) |
Definition at line 583 of file LmvmHist.cxx.
References fHM.
|
static |
Definition at line 39 of file LmvmHist.h.
|
static |
Definition at line 33 of file LmvmHist.h.
Referenced by DrawAnaStepOnPad(), and SetAnalysisStepAxis().
|
static |
Definition at line 31 of file LmvmHist.h.
Referenced by DrawAllCandsAndSteps().
|
static |
Definition at line 27 of file LmvmHist.h.
Referenced by DrawAllCandsAndSteps(), DrawRatioElectronsOthers(), and SetAnalysisStepAxis().
|
static |
Definition at line 36 of file LmvmHist.h.
|
static |
Definition at line 48 of file LmvmHist.h.
|
static |
Definition at line 47 of file LmvmHist.h.
|
static |
Definition at line 62 of file LmvmHist.h.
Referenced by DrawAllCands(), and DrawAllCandsAndSteps().
|
static |
Definition at line 60 of file LmvmHist.h.
Referenced by DrawAllCands(), DrawAllCandsAndSteps(), and GetRatioElectronsOthers().
|
static |
Definition at line 75 of file LmvmHist.h.
|
static |
Definition at line 73 of file LmvmHist.h.
|
static |
Definition at line 55 of file LmvmHist.h.
Referenced by DrawAllGTracks().
|
static |
Definition at line 52 of file LmvmHist.h.
Referenced by DrawAllGTracks().
| CbmHistManager LmvmHist::fHM |
Definition at line 195 of file LmvmHist.h.
Referenced by CreateHByClone(), CreateHByClone(), DrawAllCands(), DrawAllCandsAndSteps(), DrawAllGTracks(), DrawRatioElectronsOthers(), LmvmDrawAll::DrawStudies(), LmvmDrawAll::DrawSystematicErrorFsSignal(), GetObject(), H1(), H2(), and WriteToFile().
|
static |
Definition at line 31 of file LmvmHist.h.
Referenced by SetAnalysisStepAxis().
|
static |
Definition at line 42 of file LmvmHist.h.
|
static |
Definition at line 50 of file LmvmHist.h.
|
static |
Definition at line 46 of file LmvmHist.h.
|
static |
Definition at line 38 of file LmvmHist.h.
|
static |
Definition at line 25 of file LmvmHist.h.
| double LmvmHist::fRebinMinv = 1. |
Definition at line 23 of file LmvmHist.h.
|
static |
Definition at line 42 of file LmvmHist.h.
|
static |
Definition at line 44 of file LmvmHist.h.
|
static |
Definition at line 25 of file LmvmHist.h.
|
static |
Definition at line 24 of file LmvmHist.h.
|
static |
Definition at line 23 of file LmvmHist.h.
Definition at line 21 of file LmvmHist.h.