CbmRoot
CbmStsTracksConverter Class Referencefinal

#include <CbmStsTracksConverter.h>

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

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...
 
CbmVertexcbm_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}
 

Detailed Description

Definition at line 17 of file CbmStsTracksConverter.h.

Member Enumeration Documentation

◆ kInBranches

Enumerator
eStsTracks 
ePrimiryVertex 
eSimTracks 
eNumberOfInputBranches 

Definition at line 20 of file CbmStsTracksConverter.h.

Constructor & Destructor Documentation

◆ CbmStsTracksConverter()

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

Definition at line 27 of file CbmStsTracksConverter.h.

References eNumberOfInputBranches, ePrimiryVertex, eSimTracks, and eStsTracks.

◆ ~CbmStsTracksConverter()

CbmStsTracksConverter::~CbmStsTracksConverter ( )
final

Definition at line 33 of file CbmStsTracksConverter.cxx.

References vtx_tracks_, and vtx_tracks_2_sim_.

Member Function Documentation

◆ Exec()

void CbmStsTracksConverter::Exec ( )
final

◆ ExtrapolateToVertex()

float CbmStsTracksConverter::ExtrapolateToVertex ( CbmStsTrack sts_track,
AnalysisTree::Track *  track,
int  pdg 
)
private

◆ Finish()

void CbmStsTracksConverter::Finish ( )
inlinefinal

Definition at line 40 of file CbmStsTracksConverter.h.

◆ GetMcPid()

int CbmStsTracksConverter::GetMcPid ( const CbmTrackMatchNew match,
AnalysisTree::Track *  track 
) const
private

◆ GetOutIndexesMap()

const std::map<int, int>& CbmConverterTask::GetOutIndexesMap ( ) const
inlineinherited

Definition at line 21 of file CbmConverterTask.h.

References CbmConverterTask::out_indexes_map_.

◆ Init()

void CbmStsTracksConverter::Init ( std::map< std::string, void * > &  )
final

◆ InitInput()

void CbmStsTracksConverter::InitInput ( )
private

◆ IsGoodCovMatrix()

bool CbmStsTracksConverter::IsGoodCovMatrix ( const CbmStsTrack sts_track) const
private

◆ MapTracks()

void CbmStsTracksConverter::MapTracks ( )
private

◆ ReadVertexTracks()

◆ SetIndexesMap()

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

Definition at line 25 of file CbmConverterTask.h.

References CbmConverterTask::indexes_map_.

◆ SetIsReproduceCbmKFPF()

void CbmStsTracksConverter::SetIsReproduceCbmKFPF ( bool  is = true)
inline

Definition at line 43 of file CbmStsTracksConverter.h.

References is_reproduce_cbmkfpf_.

◆ SetIsWriteKFInfo()

void CbmStsTracksConverter::SetIsWriteKFInfo ( bool  is = true)
inline

Definition at line 42 of file CbmStsTracksConverter.h.

References is_write_kfinfo_.

◆ WriteKFInfo()

void CbmStsTracksConverter::WriteKFInfo ( AnalysisTree::Track *  track,
const CbmStsTrack sts_track,
bool  is_good_track 
) const
private

Definition at line 131 of file CbmStsTracksConverter.cxx.

References CbmTrack::GetParamFirst(), i, icov_, ipar_, and ipasscuts_.

Referenced by ReadVertexTracks().

Member Data Documentation

◆ cbm_mc_tracks_

TClonesArray* CbmStsTracksConverter::cbm_mc_tracks_ {nullptr}
private

non-owning pointer

Definition at line 64 of file CbmStsTracksConverter.h.

Referenced by ClassImp(), GetMcPid(), and InitInput().

◆ cbm_prim_vertex_

CbmVertex* CbmStsTracksConverter::cbm_prim_vertex_ {nullptr}
private

non-owning pointer

Definition at line 63 of file CbmStsTracksConverter.h.

Referenced by ExtrapolateToVertex(), InitInput(), and ReadVertexTracks().

◆ cbm_sts_match_

TClonesArray* CbmStsTracksConverter::cbm_sts_match_ {nullptr}
private

non-owning pointer

Definition at line 66 of file CbmStsTracksConverter.h.

Referenced by InitInput(), MapTracks(), and ReadVertexTracks().

◆ cbm_sts_tracks_

TClonesArray* CbmStsTracksConverter::cbm_sts_tracks_ {nullptr}
private

non-owning pointer

Definition at line 65 of file CbmStsTracksConverter.h.

Referenced by ClassImp(), InitInput(), and ReadVertexTracks().

◆ icov_

int CbmStsTracksConverter::icov_ {-1}
private

Definition at line 73 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ imc_pdg_

int CbmStsTracksConverter::imc_pdg_ {-1}
private

Definition at line 74 of file CbmStsTracksConverter.h.

Referenced by GetMcPid(), and Init().

◆ imf_

int CbmStsTracksConverter::imf_ {-1}
private

Definition at line 72 of file CbmStsTracksConverter.h.

Referenced by ExtrapolateToVertex(), and Init().

◆ imother_pdg_

int CbmStsTracksConverter::imother_pdg_ {-1}
private

Definition at line 75 of file CbmStsTracksConverter.h.

Referenced by GetMcPid(), and Init().

◆ indexes_map_

std::map<std::string, std::map<int, int> >* CbmConverterTask::indexes_map_ {}
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().

◆ ipar_

int CbmStsTracksConverter::ipar_ {-1}
private

Definition at line 71 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ ipasscuts_

int CbmStsTracksConverter::ipasscuts_ {-1}
private

Definition at line 76 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ is_reproduce_cbmkfpf_

bool CbmStsTracksConverter::is_reproduce_cbmkfpf_ {true}
private

◆ is_write_kfinfo_

bool CbmStsTracksConverter::is_write_kfinfo_ {true}
private

◆ match_to_

std::string CbmConverterTask::match_to_ {}
protectedinherited

AT branch to match.

Definition at line 36 of file CbmConverterTask.h.

Referenced by CbmConverterTask::CbmConverterTask(), ClassImp(), CbmTofHitsConverter::FillTofHits(), Init(), and MapTracks().

◆ out_indexes_map_

std::map<int, int> CbmConverterTask::out_indexes_map_ {}
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().

◆ vtx_tracks_

AnalysisTree::TrackDetector* CbmStsTracksConverter::vtx_tracks_
private
Initial value:
{
nullptr}

raw pointers are needed for TTree::Branch

Definition at line 58 of file CbmStsTracksConverter.h.

Referenced by Init(), ReadVertexTracks(), and ~CbmStsTracksConverter().

◆ vtx_tracks_2_sim_

AnalysisTree::Matching* CbmStsTracksConverter::vtx_tracks_2_sim_
private
Initial value:
{
nullptr}

raw pointers are needed for TTree::Branch

Definition at line 60 of file CbmStsTracksConverter.h.

Referenced by ClassImp(), Init(), MapTracks(), and ~CbmStsTracksConverter().


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