CbmRoot
|
#include <LmvmDrawAll.h>
Public Member Functions | |
LmvmDrawAll () | |
virtual | ~LmvmDrawAll () |
void | DrawHistFromFile (const std::string &fileInmed, const std::string &fileQgp, const std::string &fileOmega, const std::string &filePhi, const std::string &fileOmegaD, const std::string &outputDir="", bool useMvd=false) |
template<class T > | |
void | CreateMeanHist (const string &name, int nofEvents, int nofRebins) |
template<class T > | |
T * | GetCocktailMinv (const string &name, ELmvmAnaStep step) |
Private Member Functions | |
LmvmHist * | H (ELmvmSignal signal) |
int | GetNofTotalEvents () |
template<class T > | |
T * | GetCocktailMinv (const std::string &name, ELmvmAnaStep step) |
TH1D * | GetCocktailMinvH1 (const std::string &name, ELmvmAnaStep step) |
void | DrawSBgVsMinv () |
Draw S/Bg vs minv. | |
void | DrawMinvAll () |
void | DrawMinv (ELmvmAnaStep step) |
void | DrawMinvPtAll () |
void | DrawMomRecoPrecision () |
void | DrawMinvBgSourcesAll () |
void | DrawMinvCombBgAndSignal () |
Draw invariant mass spectra for all signal types for specified analysis step with BG reduced by combinatorial BG. | |
void | DrawMinvOfficialStyle () |
Draw invariant mass spectra in official style. | |
template<class T > | |
void | CreateMeanHist (const std::string &name, int nofEvents, int nofRebins=-1) |
void | CreateMeanHistAll () |
void | SaveHist () |
Save histograms for the study report. | |
void | CalcCutEffRange (double minMinv, double maxMinv) |
Calculate cut efficiency in specified invariant mass region. | |
void | CalcCombBGHistos () |
Calculate combinatorial BG contribution. | |
TH1D * | SBgRange (double minMinv, double maxMinv) |
Create S/BG vs cuts for specified invariant mass range. | |
void | SBgRangeAll () |
Draw S/BG vs plots for different mass ranges. | |
void | InvestigateMisid () |
Draw properties of misidentified particles. | |
void | DrawBetaMomSpectra () |
void | DrawMomPluto () |
void | DrawTofM2 () |
void | DrawGTrackVertex () |
void | DrawSignificancesAll () |
void | DrawSignificance (TH2D *hEl, TH2D *hBg, const std::string &name, double minZ, double maxZ, const std::string &option) |
void | DrawCutEffSignal () |
void | DrawPionSuppression () |
void | DrawMomentum () |
void | DrawPtYAndTofM2Elid () |
void | DrawTofPilePids () |
void | DrawTofHitXY () |
void | DrawPurity () |
void | DrawPurityHistText (TH2D *h) |
void | DrawChi2 () |
void | DrawMinvScaleValues () |
void | DrawSBgResults () |
Draw properties of misidentified particles in comparison with not-misidentified. | |
LmvmSBgResultData | CalculateSBgResult (ELmvmSignal signal, ELmvmAnaStep step) |
void | SaveCanvasToImage () |
Save all created canvases to images. | |
LmvmDrawAll (const LmvmDrawAll &) | |
LmvmDrawAll | operator= (const LmvmDrawAll &) |
ClassDef (LmvmDrawAll, 1) | |
Private Attributes | |
bool | fUseMvd |
std::vector< LmvmHist * > | fH |
LmvmHist | fHMean |
int | fRebMinv = 5 |
std::string | fOutputDir |
double | fZ = -44. |
Definition at line 23 of file LmvmDrawAll.h.
|
inline |
Definition at line 26 of file LmvmDrawAll.h.
|
inlinevirtual |
Definition at line 27 of file LmvmDrawAll.h.
|
private |
|
private |
Calculate combinatorial BG contribution.
Definition at line 1865 of file LmvmDrawAll.cxx.
References LmvmHist::CreateHByClone(), ElId, LmvmHist::fAnaSteps, fHMean, GetCocktailMinvH1(), GetNofTotalEvents(), LmvmHist::H1(), and LmvmHist::H1Clone().
Referenced by DrawHistFromFile().
|
private |
Calculate cut efficiency in specified invariant mass region.
[in] | min | Minimum invariant mass. |
[in] | max | Maximum invariant mass. |
Definition at line 1961 of file LmvmDrawAll.cxx.
References Bg, CbmHistManager::CreateCanvas(), LmvmHist::CreateH1(), DrawH1(), ElId, LmvmHist::fAnaStepLatex, LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, LmvmHist::fNofAnaSteps, fUseMvd, GetCocktailMinvH1(), LmvmHist::H1(), kLinear, Mvd1Cut, Mvd2Cut, and x.
Referenced by DrawHistFromFile().
|
private |
Definition at line 2087 of file LmvmDrawAll.cxx.
References Bg, H(), LmvmHist::H1(), Mc, Omega, Phi, and Signal.
Referenced by DrawSBgResults().
|
private |
|
private |
Referenced by CreateMeanHistAll().
void LmvmDrawAll::CreateMeanHist | ( | const string & | name, |
int | nofEvents, | ||
int | nofRebins ) |
Definition at line 109 of file LmvmDrawAll.cxx.
References CbmHistManager::Add(), LmvmHist::fHM, fHMean, LmvmHist::fSignals, LmvmHist::GetObject(), and H().
|
private |
Definition at line 124 of file LmvmDrawAll.cxx.
References Bg, CreateMeanHist(), Eta, LmvmHist::fAnaSteps, LmvmHist::fCandNames, LmvmHist::fGTrackNames, fHMean, fRebMinv, LmvmHist::GetName(), GetNofTotalEvents(), and Pi0.
Referenced by DrawHistFromFile().
|
private |
Definition at line 532 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), DrawTextOnPad(), LmvmHist::fCandLatex, LmvmHist::fCandNames, LmvmHist::fHM, fHMean, LmvmHist::H2Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 1186 of file LmvmDrawAll.cxx.
References LmvmHist::DrawAllCands(), fHMean, max(), and min().
Referenced by InvestigateMisid().
|
private |
Definition at line 601 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawTextOnPad(), ElId, LmvmHist::fCandNames, LmvmHist::fHM, fHMean, GammaCut, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, Mc, PtCut, and TtCut.
Referenced by DrawHistFromFile().
|
private |
Definition at line 419 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), LmvmHist::fHM, fHMean, LmvmHist::H2Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
void LmvmDrawAll::DrawHistFromFile | ( | const std::string & | fileInmed, |
const std::string & | fileQgp, | ||
const std::string & | fileOmega, | ||
const std::string & | filePhi, | ||
const std::string & | fileOmegaD, | ||
const std::string & | outputDir = "", | ||
bool | useMvd = false ) |
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 43 of file LmvmDrawAll.cxx.
References CalcCombBGHistos(), CalcCutEffRange(), CreateMeanHistAll(), DrawBetaMomSpectra(), DrawCutEffSignal(), DrawGTrackVertex(), DrawMinvAll(), DrawMinvBgSourcesAll(), DrawMinvCombBgAndSignal(), DrawMinvOfficialStyle(), DrawMinvPtAll(), DrawMinvScaleValues(), DrawMomPluto(), DrawMomRecoPrecision(), DrawPionSuppression(), DrawPurity(), DrawSBgResults(), DrawSBgVsMinv(), DrawSignificancesAll(), DrawTofHitXY(), DrawTofM2(), fH, fHMean, LmvmHist::fNofSignals, fOutputDir, LmvmHist::fSignalNames, fUseMvd, InvestigateMisid(), SaveCanvasToImage(), SaveHist(), SBgRangeAll(), and SetDefaultDrawStyle().
|
private |
Definition at line 1211 of file LmvmDrawAll.cxx.
References Bg, DrawH1(), Eta, fHMean, LmvmHist::fNofSignals, fRebMinv, LmvmHist::fSignals, GetCocktailMinvH1(), H(), LmvmHist::H1Clone(), Inmed, kLinear, Mc, Omega, OmegaD, Phi, Pi0, Qgp, and Signal.
Referenced by DrawMinvAll().
|
private |
Definition at line 1200 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawMinv(), ElId, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fHM, and fHMean.
Referenced by DrawHistFromFile().
|
private |
Definition at line 1510 of file LmvmDrawAll.cxx.
References Bg, CbmHistManager::CreateCanvas(), DrawH1(), ElId, LmvmHist::fHM, fHMean, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Draw invariant mass spectra for all signal types for specified analysis step with BG reduced by combinatorial BG.
Definition at line 1608 of file LmvmDrawAll.cxx.
References Bg, CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawH1(), ElId, LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, GetCocktailMinvH1(), LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Draw invariant mass spectra in official style.
Definition at line 1325 of file LmvmDrawAll.cxx.
References Bg, CbmHistManager::CreateCanvas(), ElId, Eta, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, fRebMinv, GetCocktailMinvH1(), GetNofTotalEvents(), H(), LmvmHist::H1(), LmvmHist::H1Clone(), Inmed, Mc, Omega, OmegaD, Phi, Pi0, Qgp, LmvmHist::SetLegend(), LmvmHist::SetOptCanvas(), LmvmHist::SetOptH1(), and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 1599 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, GetCocktailMinv(), LmvmHist::GetName(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 284 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), LmvmHist::fHM, fHMean, LmvmUtils::GetMassScaleInmed(), LmvmUtils::GetMassScaleQgp(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 575 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::DrawAllGTracks(), DrawH1(), DrawTextOnPad(), LmvmHist::fCandLatex, LmvmHist::fCandNames, LmvmHist::fHM, fHMean, LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by InvestigateMisid().
|
private |
Definition at line 553 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawTextOnPad(), LmvmHist::fHM, fHMean, LmvmHist::fSignalNames, LmvmHist::fSignals, H(), LmvmHist::H1Clone(), kLinear, kLog, and pi.
Referenced by DrawHistFromFile().
|
private |
Definition at line 1276 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawH1(), DrawH2(), DrawTextOnPad(), ElId, LmvmHist::fAnaStepLatex, LmvmHist::fAnaSteps, LmvmHist::fCandLatex, LmvmHist::fCandNames, LmvmHist::fHM, fHMean, LmvmHist::H1Clone(), LmvmHist::H2Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 629 of file LmvmDrawAll.cxx.
References Acc, CbmHistManager::CreateCanvas(), DrawH1(), DrawTextOnPad(), ElId, LmvmHist::fAnaStepNames, LmvmHist::fHM, fHMean, GammaCut, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, kLog, Mc, PtCut, and TtCut.
Referenced by DrawHistFromFile().
|
private |
Definition at line 748 of file LmvmDrawAll.cxx.
References counter, CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawH2(), DrawTextOnPad(), ElId, LmvmHist::fAnaSteps, LmvmHist::fCandLatex, LmvmHist::fCandNames, LmvmHist::fGTrackLatex, LmvmHist::fGTrackNames, LmvmHist::fHM, fHMean, LmvmHist::H2Clone(), kLinear, kLog, x, and y.
Referenced by InvestigateMisid().
|
private |
Definition at line 925 of file LmvmDrawAll.cxx.
References Acc, CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), DrawPurityHistText(), DrawTextOnPad(), ElId, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, LmvmHist::H2(), LmvmHist::H2Clone(), kLinear, kLog, Mc, Cbm::NumberToString(), and y.
Referenced by DrawHistFromFile().
|
private |
Definition at line 1029 of file LmvmDrawAll.cxx.
References DrawTextOnPad(), and Cbm::NumberToString().
Referenced by DrawPurity().
|
private |
Draw properties of misidentified particles in comparison with not-misidentified.
Definition at line 2056 of file LmvmDrawAll.cxx.
References CalculateSBgResult(), CbmHistManager::CreateCanvas(), LmvmHist::CreateH1(), DrawH1(), ElId, LmvmHist::fAnaStepLatex, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmSBgResultData::fFitMean, LmvmSBgResultData::fFitSigma, LmvmHist::fHM, fHMean, LmvmHist::fNofAnaSteps, fOutputDir, LmvmSBgResultData::fSBgRatio, LmvmSBgResultData::fSignallEff, LmvmHist::fSignalNames, LmvmHist::fSignals, fUseMvd, LmvmHist::H1(), Mvd1Cut, Mvd2Cut, and x.
Referenced by DrawHistFromFile().
|
private |
Draw S/Bg vs minv.
Definition at line 1839 of file LmvmDrawAll.cxx.
References Bg, CbmHistManager::CreateCanvas(), LmvmHist::CreateHByClone(), DrawH1(), LmvmHist::fHM, fHMean, GetCocktailMinvH1(), LmvmHist::H1Clone(), kLinear, kLog, PtCut, and TtCut.
Referenced by DrawHistFromFile().
|
private |
Definition at line 309 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::CreateSignificanceH1(), DrawH1(), DrawH2(), DrawTextOnPad(), LmvmHist::fHM, fHMean, kLinear, kLog, and Cbm::NumberToString().
Referenced by DrawSignificancesAll().
|
private |
Definition at line 357 of file LmvmDrawAll.cxx.
References DrawSignificance(), LmvmHist::fCandNames, fHMean, LmvmHist::H2(), and LmvmHist::H2Clone().
Referenced by DrawHistFromFile().
|
private |
Definition at line 436 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), DrawTextOnPad(), LmvmHist::fCandLatex, LmvmHist::fCandNames, LmvmHist::fHM, fHMean, LmvmHist::H1Clone(), LmvmHist::H2Clone(), kLinear, kLog, and Cbm::NumberToString().
Referenced by DrawHistFromFile().
|
private |
Definition at line 653 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), DrawTextOnPad(), LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fCandNames, LmvmHist::fGTrackNames, LmvmHist::fHM, fHMean, LmvmHist::H2(), LmvmHist::H2Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 883 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawH1(), DrawTextOnPad(), LmvmHist::fAnaSteps, LmvmHist::fHM, fHMean, LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by InvestigateMisid().
|
private |
Referenced by DrawMinvPtAll(), and GetCocktailMinvH1().
T * LmvmDrawAll::GetCocktailMinv | ( | const string & | name, |
ELmvmAnaStep | step ) |
Definition at line 257 of file LmvmDrawAll.cxx.
References Eta, fHMean, fRebMinv, LmvmHist::fSignals, LmvmHist::GetName(), LmvmHist::GetObject(), H(), LmvmHist::H1(), Pi0, and Signal.
|
private |
Definition at line 251 of file LmvmDrawAll.cxx.
References GetCocktailMinv().
Referenced by CalcCombBGHistos(), CalcCutEffRange(), DrawMinv(), DrawMinvCombBgAndSignal(), DrawMinvOfficialStyle(), DrawSBgVsMinv(), and SBgRange().
|
private |
Definition at line 99 of file LmvmDrawAll.cxx.
References fHMean, LmvmHist::fSignals, H(), and LmvmHist::H1().
Referenced by CalcCombBGHistos(), CreateMeanHistAll(), and DrawMinvOfficialStyle().
|
private |
Definition at line 41 of file LmvmDrawAll.cxx.
References fH.
Referenced by CalculateSBgResult(), CreateMeanHist(), DrawMinv(), DrawMinvOfficialStyle(), DrawMomPluto(), GetCocktailMinv(), and GetNofTotalEvents().
|
private |
Draw properties of misidentified particles.
Definition at line 1050 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::DrawAllCands(), LmvmHist::DrawAllCandsAndSteps(), LmvmHist::DrawAllGTracks(), DrawChi2(), DrawH1(), DrawH2(), DrawMomentum(), DrawPtYAndTofM2Elid(), DrawTextOnPad(), DrawTofPilePids(), LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fGTrackLatex, LmvmHist::fGTrackNames, LmvmHist::fHM, fHMean, fZ, LmvmHist::H1Clone(), LmvmHist::H2(), LmvmHist::H2Clone(), kLinear, kLog, and Cbm::NumberToString().
Referenced by DrawHistFromFile().
|
private |
|
private |
Save all created canvases to images.
Definition at line 2121 of file LmvmDrawAll.cxx.
References LmvmHist::fHM, fHMean, fOutputDir, and CbmHistManager::SaveCanvasToImage().
Referenced by DrawHistFromFile().
|
private |
Save histograms for the study report.
Definition at line 1855 of file LmvmDrawAll.cxx.
References fHMean, fOutputDir, and LmvmHist::WriteToFile().
Referenced by DrawHistFromFile().
|
private |
Create S/BG vs cuts for specified invariant mass range.
[in] | min | Minimum invariant mass. |
[in] | max | Maximum invariant mass. |
Definition at line 2007 of file LmvmDrawAll.cxx.
References Bg, LmvmHist::CreateH1(), ElId, LmvmHist::fAnaStepLatex, LmvmHist::fAnaSteps, fHMean, LmvmHist::fNofAnaSteps, fUseMvd, GetCocktailMinvH1(), LmvmHist::H1(), Mvd1Cut, Mvd2Cut, and x.
Referenced by SBgRangeAll().
|
private |
Draw S/BG vs plots for different mass ranges.
Definition at line 2034 of file LmvmDrawAll.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), LmvmHist::fHM, fHMean, kLinear, kLog, and SBgRange().
Referenced by DrawHistFromFile().
|
private |
Definition at line 37 of file LmvmDrawAll.h.
Referenced by DrawHistFromFile(), and H().
|
private |
Definition at line 38 of file LmvmDrawAll.h.
Referenced by CalcCombBGHistos(), CalcCutEffRange(), CreateMeanHist(), CreateMeanHistAll(), DrawBetaMomSpectra(), DrawChi2(), DrawCutEffSignal(), DrawGTrackVertex(), DrawHistFromFile(), DrawMinv(), DrawMinvAll(), DrawMinvBgSourcesAll(), DrawMinvCombBgAndSignal(), DrawMinvOfficialStyle(), DrawMinvPtAll(), DrawMinvScaleValues(), DrawMomentum(), DrawMomPluto(), DrawMomRecoPrecision(), DrawPionSuppression(), DrawPtYAndTofM2Elid(), DrawPurity(), DrawSBgResults(), DrawSBgVsMinv(), DrawSignificance(), DrawSignificancesAll(), DrawTofHitXY(), DrawTofM2(), DrawTofPilePids(), GetCocktailMinv(), GetNofTotalEvents(), InvestigateMisid(), SaveCanvasToImage(), SaveHist(), SBgRange(), and SBgRangeAll().
|
private |
Definition at line 42 of file LmvmDrawAll.h.
Referenced by DrawHistFromFile(), DrawSBgResults(), SaveCanvasToImage(), and SaveHist().
|
private |
Definition at line 40 of file LmvmDrawAll.h.
Referenced by CreateMeanHistAll(), DrawMinv(), DrawMinvOfficialStyle(), and GetCocktailMinv().
|
private |
Definition at line 35 of file LmvmDrawAll.h.
Referenced by CalcCutEffRange(), DrawHistFromFile(), DrawSBgResults(), and SBgRange().
|
private |
Definition at line 152 of file LmvmDrawAll.h.
Referenced by InvestigateMisid().