CbmRoot
CbmAnaDielectronTaskDrawAll Class Reference

#include <CbmAnaDielectronTaskDrawAll.h>

Inheritance diagram for CbmAnaDielectronTaskDrawAll:
[legend]
Collaboration diagram for CbmAnaDielectronTaskDrawAll:
[legend]

Public Member Functions

 CbmAnaDielectronTaskDrawAll ()
 Default constructor. More...
 
virtual ~CbmAnaDielectronTaskDrawAll ()
 Destructor. More...
 
void DrawHistosFromFile (const std::string &fileNameInmed, const std::string &fileNameQgp, const std::string &fileNameOmega, const std::string &fileNamePhi, const std::string &fileNameOmegaDalitz, const std::string &outputDir="", Bool_t useMvd=false)
 Implement functionality of drawing histograms in the macro from the specified files, this function should be called from macro. More...
 

Private Member Functions

TH1D * H1 (int signalType, const std::string &name)
 
TH2D * H2 (int signalType, const std::string &name)
 
TH1D * GetCoctailMinv (CbmLmvmAnalysisSteps step)
 Create and return cotail vs. minv. More...
 
void DrawSBgVsMinv ()
 Draw S/Bg vs minv. More...
 
void DrawMinvAll ()
 Draw invariant mass histograms. More...
 
void DrawMinv (CbmLmvmAnalysisSteps step)
 Draw invariant mass spectra for all signal types for specified analysis step. More...
 
void DrawMinvPtAll ()
 Draw invariant mass vs Pt histograms. More...
 
void DrawMinvPt (CbmLmvmAnalysisSteps step)
 Draw invariant mass spectra vs Pt for all signal types for specified analysis step. More...
 
void FillMeanHist ()
 It creates a mean histogram from 4 files. More...
 
void SaveHist ()
 Save histograms for the study report. More...
 
void FillSumSignalsHist ()
 Fill sum signals. More...
 
void CalcCutEffRange (Double_t minMinv, Double_t maxMinv)
 Calculate cut efficiency in specified invariant mass region. More...
 
TH1D * SBgRange (Double_t minMinv, Double_t maxMinv)
 Create S/BG vs cuts for specified invariant mass range. More...
 
void SBgRangeAll ()
 Draw S/BG vs plots for different mass ranges. More...
 
void DrawSBgSignals ()
 Draw S/BG vs plots for different signals. More...
 
void SaveCanvasToImage ()
 Save all created canvases to images. More...
 
 CbmAnaDielectronTaskDrawAll (const CbmAnaDielectronTaskDrawAll &)
 
CbmAnaDielectronTaskDrawAll operator= (const CbmAnaDielectronTaskDrawAll &)
 
 ClassDef (CbmAnaDielectronTaskDrawAll, 1)
 

Private Attributes

Bool_t fUseMvd
 
Bool_t fDrawQgp
 
std::vector< CbmHistManager * > fHM
 
std::vector< TH1D * > fh_mean_bg_minv
 
std::vector< TH1D * > fh_mean_eta_minv
 
std::vector< TH1D * > fh_mean_pi0_minv
 
std::vector< TH2D * > fh_mean_eta_minv_pt
 
std::vector< TH2D * > fh_mean_pi0_minv_pt
 
std::vector< TH1D * > fh_mean_sbg_vs_minv
 
std::vector< TH1D * > fh_sum_s_minv
 
std::string fOutputDir
 

Static Private Attributes

static const int fNofSignals = 5
 

Detailed Description

Definition at line 27 of file CbmAnaDielectronTaskDrawAll.h.

Constructor & Destructor Documentation

◆ CbmAnaDielectronTaskDrawAll() [1/2]

CbmAnaDielectronTaskDrawAll::CbmAnaDielectronTaskDrawAll ( )
inline

Default constructor.

Definition at line 33 of file CbmAnaDielectronTaskDrawAll.h.

◆ ~CbmAnaDielectronTaskDrawAll()

virtual CbmAnaDielectronTaskDrawAll::~CbmAnaDielectronTaskDrawAll ( )
inlinevirtual

Destructor.

Definition at line 52 of file CbmAnaDielectronTaskDrawAll.h.

◆ CbmAnaDielectronTaskDrawAll() [2/2]

CbmAnaDielectronTaskDrawAll::CbmAnaDielectronTaskDrawAll ( const CbmAnaDielectronTaskDrawAll )
private

Member Function Documentation

◆ CalcCutEffRange()

void CbmAnaDielectronTaskDrawAll::CalcCutEffRange ( Double_t  minMinv,
Double_t  maxMinv 
)
private

Calculate cut efficiency in specified invariant mass region.

Parameters
[in]minMinimum invariant mass.
[in]maxMaximum invariant mass.

Definition at line 563 of file CbmAnaDielectronTaskDrawAll.cxx.

References DrawH1(), CbmLmvmHist::fAnaStepsLatex, CbmLmvmHist::fNofAnaSteps, kElId, kLinear, kMvd1Cut, kMvd2Cut, and x.

◆ ClassDef()

CbmAnaDielectronTaskDrawAll::ClassDef ( CbmAnaDielectronTaskDrawAll  ,
 
)
private

◆ DrawHistosFromFile()

void CbmAnaDielectronTaskDrawAll::DrawHistosFromFile ( const std::string &  fileNameInmed,
const std::string &  fileNameQgp,
const std::string &  fileNameOmega,
const std::string &  fileNamePhi,
const std::string &  fileNameOmegaDalitz,
const std::string &  outputDir = "",
Bool_t  useMvd = false 
)

Implement functionality of drawing histograms in the macro from the specified files, this function should be called from macro.

Parameters
[in]fileNameRho0Name of the file with rho0 histograms.
[in]fileNameOmegaName of the file with omega histograms.
[in]fileNamePhiName of the file with phi histograms.
[in]fileNameOmegaDalitzName of the file with omegaDalitz histograms.
[in]outputDirOutput directory for figures and .json file.
useMvddraw histograms related to the MVD detector?

Definition at line 36 of file CbmAnaDielectronTaskDrawAll.cxx.

References CbmLmvmHist::fNofAnaSteps, i, and kQgp.

◆ DrawMinv()

void CbmAnaDielectronTaskDrawAll::DrawMinv ( CbmLmvmAnalysisSteps  step)
private

Draw invariant mass spectra for all signal types for specified analysis step.

Parameters
[in]stepAnalysis step.

Definition at line 146 of file CbmAnaDielectronTaskDrawAll.cxx.

References DrawH1(), CbmLmvmHist::fAnaSteps, kInmed, kLinear, kLog, kMc, kOmega, kOmegaD, kPhi, and kQgp.

◆ DrawMinvAll()

void CbmAnaDielectronTaskDrawAll::DrawMinvAll ( )
private

Draw invariant mass histograms.

Definition at line 129 of file CbmAnaDielectronTaskDrawAll.cxx.

References kAcc, kElId, kMc, kPtCut, and kTtCut.

◆ DrawMinvPt()

void CbmAnaDielectronTaskDrawAll::DrawMinvPt ( CbmLmvmAnalysisSteps  step)
private

Draw invariant mass spectra vs Pt for all signal types for specified analysis step.

Parameters
[in]stepAnalysis step.

Definition at line 446 of file CbmAnaDielectronTaskDrawAll.cxx.

References DrawH2(), CbmLmvmHist::fAnaSteps, kInmed, kOmega, kOmegaD, kPhi, and kQgp.

◆ DrawMinvPtAll()

void CbmAnaDielectronTaskDrawAll::DrawMinvPtAll ( )
private

Draw invariant mass vs Pt histograms.

Definition at line 441 of file CbmAnaDielectronTaskDrawAll.cxx.

References kPtCut.

◆ DrawSBgSignals()

void CbmAnaDielectronTaskDrawAll::DrawSBgSignals ( )
private

◆ DrawSBgVsMinv()

void CbmAnaDielectronTaskDrawAll::DrawSBgVsMinv ( )
private

Draw S/Bg vs minv.

Definition at line 397 of file CbmAnaDielectronTaskDrawAll.cxx.

References DrawH1(), CbmLmvmHist::fAnaSteps, kLinear, kLog, kPtCut, and kTtCut.

◆ FillMeanHist()

void CbmAnaDielectronTaskDrawAll::FillMeanHist ( )
private

It creates a mean histogram from 4 files.

Definition at line 478 of file CbmAnaDielectronTaskDrawAll.cxx.

References CbmLmvmHist::fAnaSteps, CbmLmvmHist::fNofAnaSteps, and kQgp.

◆ FillSumSignalsHist()

void CbmAnaDielectronTaskDrawAll::FillSumSignalsHist ( )
private

Fill sum signals.

Definition at line 540 of file CbmAnaDielectronTaskDrawAll.cxx.

References CbmLmvmHist::fAnaSteps, CbmLmvmHist::fNofAnaSteps, kInmed, kOmega, kOmegaD, kPhi, and kQgp.

◆ GetCoctailMinv()

TH1D * CbmAnaDielectronTaskDrawAll::GetCoctailMinv ( CbmLmvmAnalysisSteps  step)
private

Create and return cotail vs. minv.

Definition at line 98 of file CbmAnaDielectronTaskDrawAll.cxx.

References CbmLmvmHist::fAnaSteps, kInmed, kOmega, kOmegaD, kPhi, and kQgp.

◆ H1()

TH1D * CbmAnaDielectronTaskDrawAll::H1 ( int  signalType,
const std::string &  name 
)
private

Definition at line 90 of file CbmAnaDielectronTaskDrawAll.cxx.

◆ H2()

TH2D * CbmAnaDielectronTaskDrawAll::H2 ( int  signalType,
const std::string &  name 
)
private

Definition at line 94 of file CbmAnaDielectronTaskDrawAll.cxx.

◆ operator=()

CbmAnaDielectronTaskDrawAll CbmAnaDielectronTaskDrawAll::operator= ( const CbmAnaDielectronTaskDrawAll )
private

◆ SaveCanvasToImage()

void CbmAnaDielectronTaskDrawAll::SaveCanvasToImage ( )
private

Save all created canvases to images.

Definition at line 776 of file CbmAnaDielectronTaskDrawAll.cxx.

◆ SaveHist()

void CbmAnaDielectronTaskDrawAll::SaveHist ( )
private

Save histograms for the study report.

Definition at line 524 of file CbmAnaDielectronTaskDrawAll.cxx.

References f, CbmLmvmHist::fNofAnaSteps, i, kPtCut, and kTtCut.

◆ SBgRange()

TH1D * CbmAnaDielectronTaskDrawAll::SBgRange ( Double_t  minMinv,
Double_t  maxMinv 
)
private

Create S/BG vs cuts for specified invariant mass range.

Parameters
[in]minMinimum invariant mass.
[in]maxMaximum invariant mass.

Definition at line 615 of file CbmAnaDielectronTaskDrawAll.cxx.

References CbmLmvmHist::fAnaStepsLatex, CbmLmvmHist::fNofAnaSteps, kElId, kMvd1Cut, kMvd2Cut, max(), min(), x, and y.

◆ SBgRangeAll()

void CbmAnaDielectronTaskDrawAll::SBgRangeAll ( )
private

Draw S/BG vs plots for different mass ranges.

Definition at line 646 of file CbmAnaDielectronTaskDrawAll.cxx.

References DrawH1(), kLinear, and kLog.

Member Data Documentation

◆ fDrawQgp

Bool_t CbmAnaDielectronTaskDrawAll::fDrawQgp
private

Definition at line 77 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_bg_minv

std::vector<TH1D*> CbmAnaDielectronTaskDrawAll::fh_mean_bg_minv
private

Definition at line 83 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_eta_minv

std::vector<TH1D*> CbmAnaDielectronTaskDrawAll::fh_mean_eta_minv
private

Definition at line 84 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_eta_minv_pt

std::vector<TH2D*> CbmAnaDielectronTaskDrawAll::fh_mean_eta_minv_pt
private

Definition at line 86 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_pi0_minv

std::vector<TH1D*> CbmAnaDielectronTaskDrawAll::fh_mean_pi0_minv
private

Definition at line 85 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_pi0_minv_pt

std::vector<TH2D*> CbmAnaDielectronTaskDrawAll::fh_mean_pi0_minv_pt
private

Definition at line 87 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_mean_sbg_vs_minv

std::vector<TH1D*> CbmAnaDielectronTaskDrawAll::fh_mean_sbg_vs_minv
private

Definition at line 89 of file CbmAnaDielectronTaskDrawAll.h.

◆ fh_sum_s_minv

std::vector<TH1D*> CbmAnaDielectronTaskDrawAll::fh_sum_s_minv
private

Definition at line 93 of file CbmAnaDielectronTaskDrawAll.h.

◆ fHM

std::vector<CbmHistManager*> CbmAnaDielectronTaskDrawAll::fHM
private

Definition at line 80 of file CbmAnaDielectronTaskDrawAll.h.

◆ fNofSignals

const int CbmAnaDielectronTaskDrawAll::fNofSignals = 5
staticprivate

Definition at line 73 of file CbmAnaDielectronTaskDrawAll.h.

◆ fOutputDir

std::string CbmAnaDielectronTaskDrawAll::fOutputDir
private

Definition at line 95 of file CbmAnaDielectronTaskDrawAll.h.

◆ fUseMvd

Bool_t CbmAnaDielectronTaskDrawAll::fUseMvd
private

Definition at line 76 of file CbmAnaDielectronTaskDrawAll.h.


The documentation for this class was generated from the following files: