CbmRoot
CbmAnaLmvmDrawStudy Class Reference

#include <CbmAnaLmvmDrawStudy.h>

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

Public Member Functions

 CbmAnaLmvmDrawStudy ()
 Default constructor. More...
 
virtual ~CbmAnaLmvmDrawStudy ()
 Destructor. More...
 
void DrawFromFile (const std::vector< std::string > &fileNames, const std::vector< std::string > &fileNamesMean, const std::vector< std::string > &studyNames, const std::string &outputDir="")
 Implement functionality of drawing histograms in the macro from the specified files, this function should be called from macro. More...
 

Private Member Functions

TCanvas * CreateCanvas (const std::string &name, const std::string &title, int width, int height)
 
void DrawTextOnHist (const std::string &text, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
TH1D * H1 (int studyNum, const std::string &name)
 
TH2D * H2 (int studyNum, const std::string &name)
 
void SaveCanvasToImage ()
 
void SetAnalysisStepLabels (TH1 *h)
 
void DrawMinv ()
 
void DrawNofBgTracks ()
 
void DrawBgSourceTracks ()
 
void DrawBgSourcePairsStep (int step)
 
void DrawBgSourcePairs ()
 
void DrawBgSourceMinv ()
 
void DrawDistributions (const std::string &canvasName, const std::string &histName, int step, int sourceType)
 
 ClassDef (CbmAnaLmvmDrawStudy, 1)
 

Private Attributes

std::vector< TCanvas * > fCanvas
 
Int_t fNofStudies
 
std::vector< std::string > fStudyNames
 
std::vector< CbmHistManager * > fHM
 
std::vector< std::string > fMeanFiles
 
std::string fOutputDir
 

Detailed Description

Definition at line 25 of file CbmAnaLmvmDrawStudy.h.

Constructor & Destructor Documentation

◆ CbmAnaLmvmDrawStudy()

CbmAnaLmvmDrawStudy::CbmAnaLmvmDrawStudy ( )
inline

Default constructor.

Definition at line 31 of file CbmAnaLmvmDrawStudy.h.

◆ ~CbmAnaLmvmDrawStudy()

virtual CbmAnaLmvmDrawStudy::~CbmAnaLmvmDrawStudy ( )
inlinevirtual

Destructor.

Definition at line 45 of file CbmAnaLmvmDrawStudy.h.

Member Function Documentation

◆ ClassDef()

CbmAnaLmvmDrawStudy::ClassDef ( CbmAnaLmvmDrawStudy  ,
 
)
private

◆ CreateCanvas()

TCanvas * CbmAnaLmvmDrawStudy::CreateCanvas ( const std::string &  name,
const std::string &  title,
int  width,
int  height 
)
private

Definition at line 79 of file CbmAnaLmvmDrawStudy.cxx.

◆ DrawBgSourceMinv()

void CbmAnaLmvmDrawStudy::DrawBgSourceMinv ( )
private

◆ DrawBgSourcePairs()

void CbmAnaLmvmDrawStudy::DrawBgSourcePairs ( )
private

◆ DrawBgSourcePairsStep()

void CbmAnaLmvmDrawStudy::DrawBgSourcePairsStep ( int  step)
private

◆ DrawBgSourceTracks()

void CbmAnaLmvmDrawStudy::DrawBgSourceTracks ( )
private

Definition at line 184 of file CbmAnaLmvmDrawStudy.cxx.

References DrawH1(), i, kElId, kLinear, kPtCut, max(), and min().

◆ DrawDistributions()

void CbmAnaLmvmDrawStudy::DrawDistributions ( const std::string &  canvasName,
const std::string &  histName,
int  step,
int  sourceType 
)
private

◆ DrawFromFile()

void CbmAnaLmvmDrawStudy::DrawFromFile ( const std::vector< std::string > &  fileNames,
const std::vector< std::string > &  fileNamesMean,
const std::vector< std::string > &  studyNames,
const std::string &  outputDir = "" 
)

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

Parameters
[in]fileNamesNames of the file with histograms.
[in]studyNamesNames of the study to be drawn in Legend.
[in]outputDirName of the output directory.
[in]useMvd.

Definition at line 39 of file CbmAnaLmvmDrawStudy.cxx.

References i, kGamma, kPi0, kTtCut, and SetDefaultDrawStyle().

◆ DrawMinv()

void CbmAnaLmvmDrawStudy::DrawMinv ( )
private

Definition at line 123 of file CbmAnaLmvmDrawStudy.cxx.

References DrawH1(), f, i, kLinear, and kLog.

◆ DrawNofBgTracks()

void CbmAnaLmvmDrawStudy::DrawNofBgTracks ( )
private

Definition at line 165 of file CbmAnaLmvmDrawStudy.cxx.

References DrawH1(), i, kElId, kLinear, and kPtCut.

◆ DrawTextOnHist()

void CbmAnaLmvmDrawStudy::DrawTextOnHist ( const std::string &  text,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
private

Definition at line 88 of file CbmAnaLmvmDrawStudy.cxx.

◆ H1()

TH1D * CbmAnaLmvmDrawStudy::H1 ( int  studyNum,
const std::string &  name 
)
private

Definition at line 101 of file CbmAnaLmvmDrawStudy.cxx.

◆ H2()

TH2D * CbmAnaLmvmDrawStudy::H2 ( int  studyNum,
const std::string &  name 
)
private

Definition at line 105 of file CbmAnaLmvmDrawStudy.cxx.

◆ SaveCanvasToImage()

void CbmAnaLmvmDrawStudy::SaveCanvasToImage ( )
private

Definition at line 109 of file CbmAnaLmvmDrawStudy.cxx.

References i, and Cbm::SaveCanvasAsImage().

◆ SetAnalysisStepLabels()

void CbmAnaLmvmDrawStudy::SetAnalysisStepLabels ( TH1 *  h)
private

Member Data Documentation

◆ fCanvas

std::vector<TCanvas*> CbmAnaLmvmDrawStudy::fCanvas
private

Definition at line 62 of file CbmAnaLmvmDrawStudy.h.

◆ fHM

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

Definition at line 67 of file CbmAnaLmvmDrawStudy.h.

◆ fMeanFiles

std::vector<std::string> CbmAnaLmvmDrawStudy::fMeanFiles
private

Definition at line 69 of file CbmAnaLmvmDrawStudy.h.

◆ fNofStudies

Int_t CbmAnaLmvmDrawStudy::fNofStudies
private

Definition at line 63 of file CbmAnaLmvmDrawStudy.h.

◆ fOutputDir

std::string CbmAnaLmvmDrawStudy::fOutputDir
private

Definition at line 71 of file CbmAnaLmvmDrawStudy.h.

◆ fStudyNames

std::vector<std::string> CbmAnaLmvmDrawStudy::fStudyNames
private

Definition at line 64 of file CbmAnaLmvmDrawStudy.h.


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