CbmRoot
|
#include <CbmStsTracksConverter.h>
Public Types | |
enum | kInBranches { eStsTracks, ePrimiryVertex, eSimTracks, eNumberOfInputBranches } |
Public Member Functions | |
CbmStsTracksConverter (std::string out_branch_name, std::string match_to="") | |
~CbmStsTracksConverter () final | |
void | Init (std::map< std::string, void * > &) final |
void | Exec () final |
void | Finish () final |
void | SetIsWriteKFInfo (bool is=true) |
void | SetIsReproduceCbmKFPF (bool is=true) |
const std::map< int, int > & | GetOutIndexesMap () const |
void | SetIndexesMap (std::map< std::string, std::map< int, int >> *indexes_map) |
Protected Attributes | |
std::map< int, int > | out_indexes_map_ {} |
std::map< std::string, std::map< int, int > > * | indexes_map_ {} |
std::string | match_to_ {} |
AT branch to match. More... | |
Private Member Functions | |
void | ReadVertexTracks () |
void | MapTracks () |
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 |
int | GetMcPid (const CbmTrackMatchNew *match, AnalysisTree::Track *track) const |
Private Attributes | |
AnalysisTree::TrackDetector * | vtx_tracks_ |
raw pointers are needed for TTree::Branch More... | |
AnalysisTree::Matching * | vtx_tracks_2_sim_ |
raw pointers are needed for TTree::Branch More... | |
CbmVertex * | cbm_prim_vertex_ {nullptr} |
non-owning pointer More... | |
TClonesArray * | cbm_mc_tracks_ {nullptr} |
non-owning pointer More... | |
TClonesArray * | cbm_sts_tracks_ {nullptr} |
non-owning pointer More... | |
TClonesArray * | cbm_sts_match_ {nullptr} |
non-owning pointer More... | |
bool | is_write_kfinfo_ {true} |
bool | is_reproduce_cbmkfpf_ {true} |
int | ipar_ {-1} |
int | imf_ {-1} |
int | icov_ {-1} |
int | imc_pdg_ {-1} |
int | imother_pdg_ {-1} |
int | ipasscuts_ {-1} |
Definition at line 17 of file CbmStsTracksConverter.h.
Enumerator | |
---|---|
eStsTracks | |
ePrimiryVertex | |
eSimTracks | |
eNumberOfInputBranches |
Definition at line 20 of file CbmStsTracksConverter.h.
|
inlineexplicit |
Definition at line 27 of file CbmStsTracksConverter.h.
References eNumberOfInputBranches, ePrimiryVertex, eSimTracks, and eStsTracks.
|
final |
Definition at line 33 of file CbmStsTracksConverter.cxx.
References vtx_tracks_, and vtx_tracks_2_sim_.
|
final |
|
private |
Definition at line 39 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 40 of file CbmStsTracksConverter.h.
|
private |
Definition at line 190 of file CbmStsTracksConverter.cxx.
References cbm_mc_tracks_, CbmLink::GetIndex(), CbmMatch::GetLink(), CbmMatch::GetNofLinks(), CbmMCTrack::GetPdgCode(), CbmLink::GetWeight(), imc_pdg_, imother_pdg_, is_write_kfinfo_, and nMCTracks.
Referenced by ReadVertexTracks().
|
inlineinherited |
Definition at line 21 of file CbmConverterTask.h.
References CbmConverterTask::out_indexes_map_.
|
final |
Definition at line 254 of file CbmStsTracksConverter.cxx.
References icov_, imc_pdg_, imf_, imother_pdg_, InitInput(), ipar_, ipasscuts_, is_write_kfinfo_, CbmConverterTask::match_to_, vtx_tracks_, and vtx_tracks_2_sim_.
|
private |
Definition at line 242 of file CbmStsTracksConverter.cxx.
References cbm_mc_tracks_, cbm_prim_vertex_, cbm_sts_match_, cbm_sts_tracks_, ePrimiryVertex, eSimTracks, and eStsTracks.
Referenced by Init().
|
private |
Definition at line 153 of file CbmStsTracksConverter.cxx.
References CbmTrack::GetChiSq(), CbmTrack::GetNDF(), CbmTrack::GetParamFirst(), i, and is_reproduce_cbmkfpf_.
Referenced by ReadVertexTracks().
|
private |
Definition at line 315 of file CbmStsTracksConverter.cxx.
References cbm_sts_match_, CbmConverterTask::indexes_map_, CbmConverterTask::match_to_, CbmConverterTask::out_indexes_map_, and vtx_tracks_2_sim_.
Referenced by ClassImp().
|
private |
Definition at line 71 of file CbmStsTracksConverter.cxx.
References cbm_prim_vertex_, cbm_sts_match_, cbm_sts_tracks_, ExtrapolateToVertex(), GetMcPid(), CbmVertex::GetX(), CbmVertex::GetY(), CbmVertex::GetZ(), is_write_kfinfo_, IsGoodCovMatrix(), CbmConverterTask::out_indexes_map_, vtx_tracks_, and WriteKFInfo().
Referenced by ClassImp().
|
inlineinherited |
Definition at line 25 of file CbmConverterTask.h.
References CbmConverterTask::indexes_map_.
|
inline |
Definition at line 43 of file CbmStsTracksConverter.h.
References is_reproduce_cbmkfpf_.
|
inline |
Definition at line 42 of file CbmStsTracksConverter.h.
References is_write_kfinfo_.
|
private |
Definition at line 131 of file CbmStsTracksConverter.cxx.
References CbmTrack::GetParamFirst(), i, icov_, ipar_, and ipasscuts_.
Referenced by ReadVertexTracks().
|
private |
non-owning pointer
Definition at line 64 of file CbmStsTracksConverter.h.
Referenced by ClassImp(), GetMcPid(), and InitInput().
|
private |
non-owning pointer
Definition at line 63 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), InitInput(), and ReadVertexTracks().
|
private |
non-owning pointer
Definition at line 66 of file CbmStsTracksConverter.h.
Referenced by InitInput(), MapTracks(), and ReadVertexTracks().
|
private |
non-owning pointer
Definition at line 65 of file CbmStsTracksConverter.h.
Referenced by ClassImp(), InitInput(), and ReadVertexTracks().
|
private |
Definition at line 73 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 74 of file CbmStsTracksConverter.h.
Referenced by GetMcPid(), and Init().
|
private |
Definition at line 72 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), and Init().
|
private |
Definition at line 75 of file CbmStsTracksConverter.h.
Referenced by GetMcPid(), and Init().
|
protectedinherited |
CbmRoot to AnalysisTree indexes map for branches from other tasks
Definition at line 34 of file CbmConverterTask.h.
Referenced by CbmTofHitsConverter::FillTofHits(), MapTracks(), and CbmConverterTask::SetIndexesMap().
|
private |
Definition at line 71 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 76 of file CbmStsTracksConverter.h.
Referenced by Init(), and WriteKFInfo().
|
private |
Definition at line 69 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), IsGoodCovMatrix(), and SetIsReproduceCbmKFPF().
|
private |
Definition at line 68 of file CbmStsTracksConverter.h.
Referenced by ExtrapolateToVertex(), GetMcPid(), Init(), ReadVertexTracks(), and SetIsWriteKFInfo().
|
protectedinherited |
AT branch to match.
Definition at line 36 of file CbmConverterTask.h.
Referenced by CbmConverterTask::CbmConverterTask(), ClassImp(), CbmTofHitsConverter::FillTofHits(), Init(), and MapTracks().
|
protectedinherited |
CbmRoot to AnalysisTree indexes map for output branch
Definition at line 31 of file CbmConverterTask.h.
Referenced by ClassImp(), CbmSimTracksConverter::Exec(), CbmConverterTask::GetOutIndexesMap(), MapTracks(), and ReadVertexTracks().
|
private |
raw pointers are needed for TTree::Branch
Definition at line 58 of file CbmStsTracksConverter.h.
Referenced by Init(), ReadVertexTracks(), and ~CbmStsTracksConverter().
|
private |
raw pointers are needed for TTree::Branch
Definition at line 60 of file CbmStsTracksConverter.h.
Referenced by ClassImp(), Init(), MapTracks(), and ~CbmStsTracksConverter().