CbmRoot
Loading...
Searching...
No Matches
CbmAnaLmvmDrawStudy Class Reference

#include <CbmAnaLmvmDrawStudy.h>

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

Public Member Functions

 CbmAnaLmvmDrawStudy ()
 Default constructor.
 
virtual ~CbmAnaLmvmDrawStudy ()
 Destructor.
 
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.
 

Private Member Functions

void SaveCanvasToImage ()
 
void DrawMinv ()
 
 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 23 of file CbmAnaLmvmDrawStudy.h.

Constructor & Destructor Documentation

◆ CbmAnaLmvmDrawStudy()

CbmAnaLmvmDrawStudy::CbmAnaLmvmDrawStudy ( )
inline

Default constructor.

Definition at line 29 of file CbmAnaLmvmDrawStudy.h.

◆ ~CbmAnaLmvmDrawStudy()

virtual CbmAnaLmvmDrawStudy::~CbmAnaLmvmDrawStudy ( )
inlinevirtual

Destructor.

Definition at line 34 of file CbmAnaLmvmDrawStudy.h.

Member Function Documentation

◆ ClassDef()

CbmAnaLmvmDrawStudy::ClassDef ( CbmAnaLmvmDrawStudy ,
1  )
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.

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 37 of file CbmAnaLmvmDrawStudy.cxx.

References DrawMinv(), fHM, fMeanFiles, fNofStudies, fOutputDir, fStudyNames, SaveCanvasToImage(), and SetDefaultDrawStyle().

◆ DrawMinv()

void CbmAnaLmvmDrawStudy::DrawMinv ( )
private

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 81 of file CbmAnaLmvmDrawStudy.cxx.

References DrawH1(), fHM, fMeanFiles, fStudyNames, kLinear, and kLog.

Referenced by DrawFromFile().

◆ SaveCanvasToImage()

void CbmAnaLmvmDrawStudy::SaveCanvasToImage ( )
private

Definition at line 74 of file CbmAnaLmvmDrawStudy.cxx.

References fCanvas, fOutputDir, and Cbm::SaveCanvasAsImage().

Referenced by DrawFromFile().

Member Data Documentation

◆ fCanvas

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

Definition at line 48 of file CbmAnaLmvmDrawStudy.h.

Referenced by SaveCanvasToImage().

◆ fHM

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

Definition at line 52 of file CbmAnaLmvmDrawStudy.h.

Referenced by DrawFromFile(), and DrawMinv().

◆ fMeanFiles

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

Definition at line 54 of file CbmAnaLmvmDrawStudy.h.

Referenced by DrawFromFile(), and DrawMinv().

◆ fNofStudies

Int_t CbmAnaLmvmDrawStudy::fNofStudies
private

Definition at line 49 of file CbmAnaLmvmDrawStudy.h.

Referenced by DrawFromFile().

◆ fOutputDir

std::string CbmAnaLmvmDrawStudy::fOutputDir
private

Definition at line 56 of file CbmAnaLmvmDrawStudy.h.

Referenced by DrawFromFile(), and SaveCanvasToImage().

◆ fStudyNames

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

Definition at line 50 of file CbmAnaLmvmDrawStudy.h.

Referenced by DrawFromFile(), and DrawMinv().


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