CbmRoot
Loading...
Searching...
No Matches
CbmSimTracksConverter Class Referencefinal

#include <CbmSimTracksConverter.h>

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

Public Member Functions

 CbmSimTracksConverter (std::string out_branch_name, std::string match_to="")
 
 ~CbmSimTracksConverter () final
 
void SetUnigenInfo (const std::string &unigen_name)
 
void Init () final
 
void ProcessData (CbmEvent *event) final
 
void Finish () final
 
void Exec () final
 
const MapTypeGetOutIndexesMap () const
 
void SetIndexesMap (std::map< std::string, MapType > *indexes_map)
 
const std::string & GetOutputBranchName () const
 

Protected Attributes

MapType out_indexes_map_ {}
 CbmRoot to AnalysisTree indexes map for output branch.
 
std::string out_branch_ {}
 
std::map< std::string, MapType > * indexes_map_ {}
 from other tasks
 
std::string match_to_ {}
 AT branch to match.
 

Private Types

using MapType = std::map<int, int>
 

Private Member Functions

void InitUnigen ()
 

Private Attributes

AnalysisTree::Particles * sim_tracks_ {nullptr}
 
FairMCEventHeader * cbm_header_ {nullptr}
 
CbmMCDataManagercbm_mc_manager_ {nullptr}
 
CbmMCDataArraycbm_mc_tracks_new_ {nullptr}
 
UEventunigen_event_ {nullptr}
 
TFile * unigen_file_ {nullptr}
 
TTree * unigen_tree_ {nullptr}
 
std::string unigen_file_name_
 
Int_t entry_ {0}
 
Double_t beta_cm_ {0}
 CM velocity in the lab frame.
 
Bool_t use_unigen_ {false}
 
int imother_id_ {AnalysisTree::UndefValueInt}
 
int igeant_id_ {AnalysisTree::UndefValueInt}
 
int in_hits_ {AnalysisTree::UndefValueInt}
 
int icbm_id_ {AnalysisTree::UndefValueInt}
 
int istart_x_ {AnalysisTree::UndefValueInt}
 

Detailed Description

Definition at line 22 of file CbmSimTracksConverter.h.

Member Typedef Documentation

◆ MapType

using CbmConverterTask::MapType = std::map<int, int>
privateinherited

Definition at line 19 of file CbmConverterTask.h.

Constructor & Destructor Documentation

◆ CbmSimTracksConverter()

CbmSimTracksConverter::CbmSimTracksConverter ( std::string out_branch_name,
std::string match_to = "" )
inlineexplicit

Definition at line 25 of file CbmSimTracksConverter.h.

◆ ~CbmSimTracksConverter()

CbmSimTracksConverter::~CbmSimTracksConverter ( )
final

Definition at line 188 of file CbmSimTracksConverter.cxx.

References sim_tracks_.

Member Function Documentation

◆ Exec()

void CbmConverterTask::Exec ( )
inlinefinalinherited

Definition at line 33 of file CbmConverterTask.h.

◆ Finish()

void CbmSimTracksConverter::Finish ( )
inlinefinal

Definition at line 38 of file CbmSimTracksConverter.h.

◆ GetOutIndexesMap()

const MapType & CbmConverterTask::GetOutIndexesMap ( ) const
inlineinherited

Definition at line 35 of file CbmConverterTask.h.

References CbmConverterTask::out_indexes_map_.

◆ GetOutputBranchName()

const std::string & CbmConverterTask::GetOutputBranchName ( ) const
inlineinherited

Definition at line 39 of file CbmConverterTask.h.

References CbmConverterTask::out_branch_.

◆ Init()

◆ InitUnigen()

void CbmSimTracksConverter::InitUnigen ( )
private

◆ ProcessData()

◆ SetIndexesMap()

void CbmConverterTask::SetIndexesMap ( std::map< std::string, MapType > * indexes_map)
inlineinherited

Definition at line 37 of file CbmConverterTask.h.

References CbmConverterTask::indexes_map_.

◆ SetUnigenInfo()

void CbmSimTracksConverter::SetUnigenInfo ( const std::string & unigen_name)
inline

Definition at line 30 of file CbmSimTracksConverter.h.

References unigen_file_name_, and use_unigen_.

Member Data Documentation

◆ beta_cm_

Double_t CbmSimTracksConverter::beta_cm_ {0}
private

CM velocity in the lab frame.

Definition at line 55 of file CbmSimTracksConverter.h.

Referenced by InitUnigen(), and ProcessData().

◆ cbm_header_

FairMCEventHeader* CbmSimTracksConverter::cbm_header_ {nullptr}
private

Definition at line 42 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ cbm_mc_manager_

CbmMCDataManager* CbmSimTracksConverter::cbm_mc_manager_ {nullptr}
private

Definition at line 45 of file CbmSimTracksConverter.h.

Referenced by Init().

◆ cbm_mc_tracks_new_

CbmMCDataArray* CbmSimTracksConverter::cbm_mc_tracks_new_ {nullptr}
private

Definition at line 46 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ entry_

Int_t CbmSimTracksConverter::entry_ {0}
private

Definition at line 54 of file CbmSimTracksConverter.h.

Referenced by ProcessData().

◆ icbm_id_

int CbmSimTracksConverter::icbm_id_ {AnalysisTree::UndefValueInt}
private

Definition at line 61 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ igeant_id_

int CbmSimTracksConverter::igeant_id_ {AnalysisTree::UndefValueInt}
private

Definition at line 59 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ imother_id_

int CbmSimTracksConverter::imother_id_ {AnalysisTree::UndefValueInt}
private

Definition at line 58 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ in_hits_

int CbmSimTracksConverter::in_hits_ {AnalysisTree::UndefValueInt}
private

Definition at line 60 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ indexes_map_

std::map<std::string, MapType>* CbmConverterTask::indexes_map_ {}
protectedinherited

◆ istart_x_

int CbmSimTracksConverter::istart_x_ {AnalysisTree::UndefValueInt}
private

Definition at line 62 of file CbmSimTracksConverter.h.

Referenced by Init(), and ProcessData().

◆ match_to_

◆ out_branch_

◆ out_indexes_map_

MapType CbmConverterTask::out_indexes_map_ {}
protectedinherited

◆ sim_tracks_

AnalysisTree::Particles* CbmSimTracksConverter::sim_tracks_ {nullptr}
private

Definition at line 41 of file CbmSimTracksConverter.h.

Referenced by Init(), ProcessData(), and ~CbmSimTracksConverter().

◆ unigen_event_

UEvent* CbmSimTracksConverter::unigen_event_ {nullptr}
private

Definition at line 50 of file CbmSimTracksConverter.h.

Referenced by InitUnigen(), and ProcessData().

◆ unigen_file_

TFile* CbmSimTracksConverter::unigen_file_ {nullptr}
private

Definition at line 51 of file CbmSimTracksConverter.h.

Referenced by InitUnigen().

◆ unigen_file_name_

std::string CbmSimTracksConverter::unigen_file_name_
private

Definition at line 53 of file CbmSimTracksConverter.h.

Referenced by Init(), InitUnigen(), and SetUnigenInfo().

◆ unigen_tree_

TTree* CbmSimTracksConverter::unigen_tree_ {nullptr}
private

Definition at line 52 of file CbmSimTracksConverter.h.

Referenced by InitUnigen(), and ProcessData().

◆ use_unigen_

Bool_t CbmSimTracksConverter::use_unigen_ {false}
private

Definition at line 56 of file CbmSimTracksConverter.h.

Referenced by InitUnigen(), ProcessData(), and SetUnigenInfo().


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