CbmRoot
|
#include <CbmSimTracksConverter.h>
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 MapType & | GetOutIndexesMap () 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} |
CbmMCDataManager * | cbm_mc_manager_ {nullptr} |
CbmMCDataArray * | cbm_mc_tracks_new_ {nullptr} |
UEvent * | unigen_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} |
Definition at line 22 of file CbmSimTracksConverter.h.
|
privateinherited |
Definition at line 19 of file CbmConverterTask.h.
|
inlineexplicit |
Definition at line 25 of file CbmSimTracksConverter.h.
|
final |
Definition at line 188 of file CbmSimTracksConverter.cxx.
References sim_tracks_.
|
inlinefinalinherited |
Definition at line 33 of file CbmConverterTask.h.
|
inlinefinal |
Definition at line 38 of file CbmSimTracksConverter.h.
|
inlineinherited |
Definition at line 35 of file CbmConverterTask.h.
References CbmConverterTask::out_indexes_map_.
|
inlineinherited |
Definition at line 39 of file CbmConverterTask.h.
References CbmConverterTask::out_branch_.
|
final |
Definition at line 59 of file CbmSimTracksConverter.cxx.
References cbm_header_, cbm_mc_manager_, cbm_mc_tracks_new_, icbm_id_, igeant_id_, imother_id_, in_hits_, CbmMCDataManager::InitBranch(), InitUnigen(), istart_x_, CbmConverterTask::out_branch_, sim_tracks_, and unigen_file_name_.
|
private |
Definition at line 34 of file CbmSimTracksConverter.cxx.
References beta_cm_, URun::GetPProj(), URun::GetPTarg(), unigen_event_, unigen_file_, unigen_file_name_, unigen_tree_, and use_unigen_.
Referenced by Init().
|
finalvirtual |
Implements CbmConverterTask.
Definition at line 93 of file CbmSimTracksConverter.cxx.
References beta_cm_, cbm_header_, cbm_mc_tracks_new_, entry_, CbmMCDataArray::Get(), CbmEvent::GetMatch(), CbmMatch::GetNofLinks(), UEvent::GetParticle(), UEvent::GetPhi(), UParticle::GetPosition(), icbm_id_, igeant_id_, imother_id_, in_hits_, istart_x_, kMvd, kSts, kTrd, CbmConverterTask::out_branch_, CbmConverterTask::out_indexes_map_, sim_tracks_, CbmMCDataArray::Size(), unigen_event_, unigen_tree_, and use_unigen_.
|
inlineinherited |
Definition at line 37 of file CbmConverterTask.h.
References CbmConverterTask::indexes_map_.
|
inline |
Definition at line 30 of file CbmSimTracksConverter.h.
References unigen_file_name_, and use_unigen_.
|
private |
CM velocity in the lab frame.
Definition at line 55 of file CbmSimTracksConverter.h.
Referenced by InitUnigen(), and ProcessData().
|
private |
Definition at line 42 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 45 of file CbmSimTracksConverter.h.
Referenced by Init().
|
private |
Definition at line 46 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 54 of file CbmSimTracksConverter.h.
Referenced by ProcessData().
|
private |
Definition at line 61 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 59 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 58 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
private |
Definition at line 60 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
protectedinherited |
from other tasks
CbmRoot to AnalysisTree indexes map for branches
Definition at line 45 of file CbmConverterTask.h.
Referenced by CbmFsdHitsConverter::GetMatchMap(), CbmTofHitsConverter::GetMatchMap(), CbmStsTracksConverter::MapTracks(), CbmRichRingsConverter::ProcessData(), CbmTrdTracksConverter::ProcessData(), and CbmConverterTask::SetIndexesMap().
|
private |
Definition at line 62 of file CbmSimTracksConverter.h.
Referenced by Init(), and ProcessData().
|
protectedinherited |
AT branch to match.
Definition at line 47 of file CbmConverterTask.h.
Referenced by CbmConverterTask::CbmConverterTask(), CbmFsdHitsConverter::Init(), CbmRichRingsConverter::Init(), CbmStsTracksConverter::Init(), CbmTofHitsConverter::Init(), CbmTrdTracksConverter::Init(), CbmStsTracksConverter::MapTracks(), CbmFsdHitsConverter::ProcessData(), CbmRichRingsConverter::ProcessData(), CbmTofHitsConverter::ProcessData(), and CbmTrdTracksConverter::ProcessData().
|
protectedinherited |
Definition at line 44 of file CbmConverterTask.h.
Referenced by CbmConverterTask::CbmConverterTask(), CbmConverterTask::GetOutputBranchName(), CbmFsdHitsConverter::Init(), CbmFsdModulesConverter::Init(), CbmPsdModulesConverter::Init(), CbmRecEventHeaderConverter::Init(), CbmRichRingsConverter::Init(), CbmSimEventHeaderConverter::Init(), Init(), CbmStsTracksConverter::Init(), CbmTofHitsConverter::Init(), CbmTrdTracksConverter::Init(), CbmFsdHitsConverter::ProcessData(), CbmFsdModulesConverter::ProcessData(), CbmPsdModulesConverter::ProcessData(), CbmRichRingsConverter::ProcessData(), ProcessData(), CbmTofHitsConverter::ProcessData(), CbmTrdTracksConverter::ProcessData(), and CbmStsTracksConverter::ReadVertexTracks().
|
protectedinherited |
CbmRoot to AnalysisTree indexes map for output branch.
Definition at line 43 of file CbmConverterTask.h.
Referenced by CbmConverterTask::GetOutIndexesMap(), CbmStsTracksConverter::MapTracks(), ProcessData(), CbmStsTracksConverter::ProcessData(), and CbmStsTracksConverter::ReadVertexTracks().
|
private |
Definition at line 41 of file CbmSimTracksConverter.h.
Referenced by Init(), ProcessData(), and ~CbmSimTracksConverter().
|
private |
Definition at line 50 of file CbmSimTracksConverter.h.
Referenced by InitUnigen(), and ProcessData().
|
private |
Definition at line 51 of file CbmSimTracksConverter.h.
Referenced by InitUnigen().
|
private |
Definition at line 53 of file CbmSimTracksConverter.h.
Referenced by Init(), InitUnigen(), and SetUnigenInfo().
|
private |
Definition at line 52 of file CbmSimTracksConverter.h.
Referenced by InitUnigen(), and ProcessData().
|
private |
Definition at line 56 of file CbmSimTracksConverter.h.
Referenced by InitUnigen(), ProcessData(), and SetUnigenInfo().