CbmRoot
|
#include <CbmStsTracksConverter.h>
Public Member Functions | |
CbmStsTracksConverter (std::string out_branch_name, std::string match_to="") | |
~CbmStsTracksConverter () final | |
void | Init () final |
void | ProcessData (CbmEvent *event) final |
void | Finish () final |
void | SetIsWriteKFInfo (bool is=true) |
void | SetIsReproduceCbmKFPF (bool is=true) |
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 | ReadVertexTracks (CbmEvent *event) |
void | MapTracks (CbmEvent *event) |
void | InitInput () |
float | ExtrapolateToVertex (CbmStsTrack *sts_track, AnalysisTree::Track &track, int pdg) |
void | WriteKFInfo (AnalysisTree::Track &track, const CbmStsTrack *sts_track, bool is_good_track) const |
bool | IsGoodCovMatrix (const CbmStsTrack *sts_track) const |
Private Attributes | |
AnalysisTree::TrackDetector * | vtx_tracks_ {nullptr} |
raw pointers are needed for TTree::Branch | |
AnalysisTree::Matching * | vtx_tracks_2_sim_ {nullptr} |
raw pointers are needed for TTree::Branch | |
CbmVertex * | cbm_prim_vertex_ {nullptr} |
non-owning pointer | |
TClonesArray * | cbm_sts_tracks_ {nullptr} |
non-owning pointer | |
TClonesArray * | cbm_sts_match_ {nullptr} |
non-owning pointer | |
CbmMCDataManager * | cbm_mc_manager_ {nullptr} |
non-owning pointer | |
bool | is_write_kfinfo_ {true} |
bool | is_reproduce_cbmkfpf_ {true} |
int | iq_ {AnalysisTree::UndefValueInt} |
int | indf_ {AnalysisTree::UndefValueInt} |
int | indf_time_ {AnalysisTree::UndefValueInt} |
int | ichi2_ {AnalysisTree::UndefValueInt} |
int | ichi2_time_ {AnalysisTree::UndefValueInt} |
int | inhits_ {AnalysisTree::UndefValueInt} |
int | inhits_mvd_ {AnalysisTree::UndefValueInt} |
int | idcax_ {AnalysisTree::UndefValueInt} |
int | ivtx_chi2_ {AnalysisTree::UndefValueInt} |
int | ide_dx_ {AnalysisTree::UndefValueInt} |
int | imatch_weight_ {AnalysisTree::UndefValueInt} |
int | ipar_ {AnalysisTree::UndefValueInt} |
int | imf_ {AnalysisTree::UndefValueInt} |
int | icov_ {AnalysisTree::UndefValueInt} |
int | imother_pdg_ {AnalysisTree::UndefValueInt} |
int | ipasscuts_ {AnalysisTree::UndefValueInt} |
Definition at line 25 of file CbmStsTracksConverter.h.
|
privateinherited |
Definition at line 19 of file CbmConverterTask.h.
|
inlineexplicit |
Definition at line 28 of file CbmStsTracksConverter.h.
|
final |
Definition at line 42 of file CbmStsTracksConverter.cxx.
References vtx_tracks_, and vtx_tracks_2_sim_.
|
inlinefinalinherited |
Definition at line 33 of file CbmConverterTask.h.
|
private |
Definition at line 111 of file CbmStsTracksConverter.cxx.
References cbm_prim_vertex_, CbmL1PFFitter::Fit(), CbmL1PFFitter::GetChiToVertex(), imf_, is_reproduce_cbmkfpf_, is_write_kfinfo_, and tracks.
Referenced by ReadVertexTracks().
|
inlinefinal |
Definition at line 37 of file CbmStsTracksConverter.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 58 of file CbmStsTracksConverter.cxx.
References ichi2_, ichi2_time_, icov_, idcax_, ide_dx_, imatch_weight_, imf_, imother_pdg_, indf_, indf_time_, inhits_, inhits_mvd_, InitInput(), ipar_, ipasscuts_, iq_, is_write_kfinfo_, ivtx_chi2_, CbmConverterTask::match_to_, CbmConverterTask::out_branch_, vtx_tracks_, and vtx_tracks_2_sim_.
|
private |
Definition at line 48 of file CbmStsTracksConverter.cxx.
References cbm_mc_manager_, cbm_sts_match_, and cbm_sts_tracks_.
Referenced by Init().
|
private |
Definition at line 209 of file CbmStsTracksConverter.cxx.
References CbmTrack::GetChiSq(), CbmTrack::GetNDF(), CbmTrack::GetParamFirst(), and is_reproduce_cbmkfpf_.
Referenced by ReadVertexTracks().
|
private |
Definition at line 243 of file CbmStsTracksConverter.cxx.
References cbm_sts_match_, CbmEvent::GetMatch(), CbmMatch::GetNofLinks(), imatch_weight_, CbmConverterTask::indexes_map_, CbmConverterTask::match_to_, CbmConverterTask::out_indexes_map_, vtx_tracks_, and vtx_tracks_2_sim_.
Referenced by ProcessData().
|
finalvirtual |
Implements CbmConverterTask.
Definition at line 31 of file CbmStsTracksConverter.cxx.
References cbm_sts_tracks_, MapTracks(), CbmConverterTask::out_indexes_map_, ReadVertexTracks(), and vtx_tracks_2_sim_.
|
private |
Definition at line 134 of file CbmStsTracksConverter.cxx.
References cbm_prim_vertex_, cbm_sts_tracks_, ExtrapolateToVertex(), CbmVertex::GetX(), CbmVertex::GetY(), CbmVertex::GetZ(), ichi2_, ichi2_time_, idcax_, ide_dx_, indf_, indf_time_, inhits_, inhits_mvd_, iq_, is_write_kfinfo_, IsGoodCovMatrix(), ivtx_chi2_, CbmConverterTask::out_branch_, CbmConverterTask::out_indexes_map_, vtx_tracks_, and WriteKFInfo().
Referenced by ProcessData().
|
inlineinherited |
Definition at line 37 of file CbmConverterTask.h.
References CbmConverterTask::indexes_map_.
|
inline |
Definition at line 40 of file CbmStsTracksConverter.h.
References is_reproduce_cbmkfpf_.
|
inline |
Definition at line 39 of file CbmStsTracksConverter.h.
References is_write_kfinfo_.
|
private |
Definition at line 188 of file CbmStsTracksConverter.cxx.
References CbmTrack::GetParamFirst(), icov_, ipar_, and ipasscuts_.
Referenced by ReadVertexTracks().
|
private |
non-owning pointer
Definition at line 59 of file CbmStsTracksConverter.h.
Referenced by InitInput().
|
private |
non-owning pointer
Definition at line 55 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), and ReadVertexTracks().
|
private |
non-owning pointer
Definition at line 57 of file CbmStsTracksConverter.h.
Referenced by InitInput(), and MapTracks().
|
private |
non-owning pointer
Definition at line 56 of file CbmStsTracksConverter.h.
Referenced by InitInput(), ProcessData(), and ReadVertexTracks().
|
private |
Definition at line 67 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 68 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 78 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 71 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 73 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 74 of file CbmStsTracksConverter.h.
Referenced by Init(), and MapTracks().
|
private |
Definition at line 77 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), and Init().
|
private |
Definition at line 79 of file CbmStsTracksConverter.h.
Referenced by Init().
|
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(), MapTracks(), CbmRichRingsConverter::ProcessData(), CbmTrdTracksConverter::ProcessData(), and CbmConverterTask::SetIndexesMap().
|
private |
Definition at line 65 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 66 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 69 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 70 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 76 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 80 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 64 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
private |
Definition at line 62 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), IsGoodCovMatrix(), and SetIsReproduceCbmKFPF().
|
private |
Definition at line 61 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), Init(), ReadVertexTracks(), and SetIsWriteKFInfo().
|
private |
Definition at line 72 of file CbmStsTracksConverter.h.
Referenced by Init(), and ReadVertexTracks().
|
protectedinherited |
AT branch to match.
Definition at line 47 of file CbmConverterTask.h.
Referenced by CbmConverterTask::CbmConverterTask(), CbmFsdHitsConverter::Init(), CbmRichRingsConverter::Init(), Init(), CbmTofHitsConverter::Init(), CbmTrdTracksConverter::Init(), 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(), CbmSimTracksConverter::Init(), Init(), CbmTofHitsConverter::Init(), CbmTrdTracksConverter::Init(), CbmFsdHitsConverter::ProcessData(), CbmFsdModulesConverter::ProcessData(), CbmPsdModulesConverter::ProcessData(), CbmRichRingsConverter::ProcessData(), CbmSimTracksConverter::ProcessData(), CbmTofHitsConverter::ProcessData(), CbmTrdTracksConverter::ProcessData(), and ReadVertexTracks().
|
protectedinherited |
CbmRoot to AnalysisTree indexes map for output branch.
Definition at line 43 of file CbmConverterTask.h.
Referenced by CbmConverterTask::GetOutIndexesMap(), MapTracks(), CbmSimTracksConverter::ProcessData(), ProcessData(), and ReadVertexTracks().
|
private |
raw pointers are needed for TTree::Branch
Definition at line 52 of file CbmStsTracksConverter.h.
Referenced by Init(), MapTracks(), ReadVertexTracks(), and ~CbmStsTracksConverter().
|
private |
raw pointers are needed for TTree::Branch
Definition at line 53 of file CbmStsTracksConverter.h.
Referenced by Init(), MapTracks(), ProcessData(), and ~CbmStsTracksConverter().