CbmRoot
CbmConverterManager Class Reference

#include <CbmConverterManager.h>

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

Public Member Functions

 CbmConverterManager ()=default
 
 ~CbmConverterManager () override
 
InitStatus Init () override
 
void Exec (Option_t *opt) override
 
void Finish () override
 
void AddTask (CbmConverterTask *task)
 
void SetOutFileName (std::string name)
 
void SetOutTreeName (std::string name)
 
void SetSystem (const std::string &system)
 
void SetBeamMomentum (float beam_mom)
 

Private Member Functions

void FillDataHeader ()
 

Private Attributes

TFile * out_file_ {nullptr}
 
TTree * out_tree_ {nullptr}
 
std::string out_file_name_ {""}
 
std::string out_tree_name_ {""}
 
std::string system_ {""}
 
float beam_mom_ {0.}
 
AnalysisTree::Configuration * out_config_ {nullptr}
 
AnalysisTree::DataHeader * data_header_ {nullptr}
 
std::vector< CbmConverterTask * > tasks_ {}
 
std::map< std::string, std::map< int, int > > index_map_ {}
 map CbmRoot to AT of indexes for a given branch More...
 

Detailed Description

Definition at line 13 of file CbmConverterManager.h.

Constructor & Destructor Documentation

◆ CbmConverterManager()

CbmConverterManager::CbmConverterManager ( )
default

◆ ~CbmConverterManager()

CbmConverterManager::~CbmConverterManager ( )
override

Definition at line 122 of file CbmConverterManager.cxx.

References data_header_, out_config_, out_file_, and out_tree_.

Member Function Documentation

◆ AddTask()

void CbmConverterManager::AddTask ( CbmConverterTask task)
inline

Definition at line 23 of file CbmConverterManager.h.

References task, and tasks_.

◆ Exec()

void CbmConverterManager::Exec ( Option_t *  opt)
override

Definition at line 38 of file CbmConverterManager.cxx.

References index_map_, out_tree_, task, and tasks_.

◆ FillDataHeader()

void CbmConverterManager::FillDataHeader ( )
private

Definition at line 64 of file CbmConverterManager.cxx.

References beam_mom_, data_header_, out_file_, system_, x, and y.

Referenced by ClassImp().

◆ Finish()

void CbmConverterManager::Finish ( )
override

Definition at line 51 of file CbmConverterManager.cxx.

References out_file_, out_tree_, task, and tasks_.

◆ Init()

InitStatus CbmConverterManager::Init ( )
override

◆ SetBeamMomentum()

void CbmConverterManager::SetBeamMomentum ( float  beam_mom)
inline

Definition at line 28 of file CbmConverterManager.h.

References beam_mom_.

◆ SetOutFileName()

void CbmConverterManager::SetOutFileName ( std::string  name)
inline

Definition at line 24 of file CbmConverterManager.h.

References out_file_name_.

◆ SetOutTreeName()

void CbmConverterManager::SetOutTreeName ( std::string  name)
inline

Definition at line 25 of file CbmConverterManager.h.

References out_tree_name_.

◆ SetSystem()

void CbmConverterManager::SetSystem ( const std::string &  system)
inline

Definition at line 27 of file CbmConverterManager.h.

References system_.

Member Data Documentation

◆ beam_mom_

float CbmConverterManager::beam_mom_ {0.}
private

Definition at line 39 of file CbmConverterManager.h.

Referenced by FillDataHeader(), and SetBeamMomentum().

◆ data_header_

AnalysisTree::DataHeader* CbmConverterManager::data_header_ {nullptr}
private

Definition at line 42 of file CbmConverterManager.h.

Referenced by ClassImp(), FillDataHeader(), and ~CbmConverterManager().

◆ index_map_

std::map<std::string, std::map<int, int> > CbmConverterManager::index_map_ {}
private

map CbmRoot to AT of indexes for a given branch

Definition at line 46 of file CbmConverterManager.h.

Referenced by Exec().

◆ out_config_

AnalysisTree::Configuration* CbmConverterManager::out_config_ {nullptr}
private

Definition at line 41 of file CbmConverterManager.h.

Referenced by ClassImp(), and ~CbmConverterManager().

◆ out_file_

TFile* CbmConverterManager::out_file_ {nullptr}
private

Definition at line 33 of file CbmConverterManager.h.

Referenced by ClassImp(), FillDataHeader(), Finish(), and ~CbmConverterManager().

◆ out_file_name_

std::string CbmConverterManager::out_file_name_ {""}
private

Definition at line 35 of file CbmConverterManager.h.

Referenced by ClassImp(), and SetOutFileName().

◆ out_tree_

TTree* CbmConverterManager::out_tree_ {nullptr}
private

Definition at line 34 of file CbmConverterManager.h.

Referenced by ClassImp(), Exec(), Finish(), and ~CbmConverterManager().

◆ out_tree_name_

std::string CbmConverterManager::out_tree_name_ {""}
private

Definition at line 36 of file CbmConverterManager.h.

Referenced by ClassImp(), and SetOutTreeName().

◆ system_

std::string CbmConverterManager::system_ {""}
private

Definition at line 38 of file CbmConverterManager.h.

Referenced by FillDataHeader(), and SetSystem().

◆ tasks_

std::vector<CbmConverterTask*> CbmConverterManager::tasks_ {}
private

Definition at line 43 of file CbmConverterManager.h.

Referenced by AddTask(), ClassImp(), Exec(), and Finish().


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