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

#include <CbmStsTracksConverter.h>

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

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 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 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
 
CbmVertexcbm_prim_vertex_ {nullptr}
 non-owning pointer
 
TClonesArray * cbm_sts_tracks_ {nullptr}
 non-owning pointer
 
TClonesArray * cbm_sts_match_ {nullptr}
 non-owning pointer
 
CbmMCDataManagercbm_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}
 

Detailed Description

Definition at line 25 of file CbmStsTracksConverter.h.

Member Typedef Documentation

◆ MapType

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

Definition at line 19 of file CbmConverterTask.h.

Constructor & Destructor Documentation

◆ CbmStsTracksConverter()

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

Definition at line 28 of file CbmStsTracksConverter.h.

◆ ~CbmStsTracksConverter()

CbmStsTracksConverter::~CbmStsTracksConverter ( )
final

Definition at line 42 of file CbmStsTracksConverter.cxx.

References vtx_tracks_, and vtx_tracks_2_sim_.

Member Function Documentation

◆ Exec()

void CbmConverterTask::Exec ( )
inlinefinalinherited

Definition at line 33 of file CbmConverterTask.h.

◆ ExtrapolateToVertex()

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

◆ Finish()

void CbmStsTracksConverter::Finish ( )
inlinefinal

Definition at line 37 of file CbmStsTracksConverter.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()

◆ InitInput()

void CbmStsTracksConverter::InitInput ( )
private

Definition at line 48 of file CbmStsTracksConverter.cxx.

References cbm_mc_manager_, cbm_sts_match_, and cbm_sts_tracks_.

Referenced by Init().

◆ IsGoodCovMatrix()

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

◆ MapTracks()

◆ ProcessData()

void CbmStsTracksConverter::ProcessData ( CbmEvent * event)
finalvirtual

◆ ReadVertexTracks()

◆ SetIndexesMap()

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

Definition at line 37 of file CbmConverterTask.h.

References CbmConverterTask::indexes_map_.

◆ SetIsReproduceCbmKFPF()

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

Definition at line 40 of file CbmStsTracksConverter.h.

References is_reproduce_cbmkfpf_.

◆ SetIsWriteKFInfo()

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

Definition at line 39 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 188 of file CbmStsTracksConverter.cxx.

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

Referenced by ReadVertexTracks().

Member Data Documentation

◆ cbm_mc_manager_

CbmMCDataManager* CbmStsTracksConverter::cbm_mc_manager_ {nullptr}
private

non-owning pointer

Definition at line 59 of file CbmStsTracksConverter.h.

Referenced by InitInput().

◆ cbm_prim_vertex_

CbmVertex* CbmStsTracksConverter::cbm_prim_vertex_ {nullptr}
private

non-owning pointer

Definition at line 55 of file CbmStsTracksConverter.h.

Referenced by ExtrapolateToVertex(), and ReadVertexTracks().

◆ cbm_sts_match_

TClonesArray* CbmStsTracksConverter::cbm_sts_match_ {nullptr}
private

non-owning pointer

Definition at line 57 of file CbmStsTracksConverter.h.

Referenced by InitInput(), and MapTracks().

◆ cbm_sts_tracks_

TClonesArray* CbmStsTracksConverter::cbm_sts_tracks_ {nullptr}
private

non-owning pointer

Definition at line 56 of file CbmStsTracksConverter.h.

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

◆ ichi2_

int CbmStsTracksConverter::ichi2_ {AnalysisTree::UndefValueInt}
private

Definition at line 67 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ ichi2_time_

int CbmStsTracksConverter::ichi2_time_ {AnalysisTree::UndefValueInt}
private

Definition at line 68 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ icov_

int CbmStsTracksConverter::icov_ {AnalysisTree::UndefValueInt}
private

Definition at line 78 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ idcax_

int CbmStsTracksConverter::idcax_ {AnalysisTree::UndefValueInt}
private

Definition at line 71 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ ide_dx_

int CbmStsTracksConverter::ide_dx_ {AnalysisTree::UndefValueInt}
private

Definition at line 73 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ imatch_weight_

int CbmStsTracksConverter::imatch_weight_ {AnalysisTree::UndefValueInt}
private

Definition at line 74 of file CbmStsTracksConverter.h.

Referenced by Init(), and MapTracks().

◆ imf_

int CbmStsTracksConverter::imf_ {AnalysisTree::UndefValueInt}
private

Definition at line 77 of file CbmStsTracksConverter.h.

Referenced by ExtrapolateToVertex(), and Init().

◆ imother_pdg_

int CbmStsTracksConverter::imother_pdg_ {AnalysisTree::UndefValueInt}
private

Definition at line 79 of file CbmStsTracksConverter.h.

Referenced by Init().

◆ indexes_map_

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

◆ indf_

int CbmStsTracksConverter::indf_ {AnalysisTree::UndefValueInt}
private

Definition at line 65 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ indf_time_

int CbmStsTracksConverter::indf_time_ {AnalysisTree::UndefValueInt}
private

Definition at line 66 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ inhits_

int CbmStsTracksConverter::inhits_ {AnalysisTree::UndefValueInt}
private

Definition at line 69 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ inhits_mvd_

int CbmStsTracksConverter::inhits_mvd_ {AnalysisTree::UndefValueInt}
private

Definition at line 70 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ ipar_

int CbmStsTracksConverter::ipar_ {AnalysisTree::UndefValueInt}
private

Definition at line 76 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ ipasscuts_

int CbmStsTracksConverter::ipasscuts_ {AnalysisTree::UndefValueInt}
private

Definition at line 80 of file CbmStsTracksConverter.h.

Referenced by Init(), and WriteKFInfo().

◆ iq_

int CbmStsTracksConverter::iq_ {AnalysisTree::UndefValueInt}
private

Definition at line 64 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ is_reproduce_cbmkfpf_

bool CbmStsTracksConverter::is_reproduce_cbmkfpf_ {true}
private

◆ is_write_kfinfo_

bool CbmStsTracksConverter::is_write_kfinfo_ {true}
private

◆ ivtx_chi2_

int CbmStsTracksConverter::ivtx_chi2_ {AnalysisTree::UndefValueInt}
private

Definition at line 72 of file CbmStsTracksConverter.h.

Referenced by Init(), and ReadVertexTracks().

◆ match_to_

◆ out_branch_

◆ out_indexes_map_

MapType CbmConverterTask::out_indexes_map_ {}
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().

◆ vtx_tracks_

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

raw pointers are needed for TTree::Branch

Definition at line 52 of file CbmStsTracksConverter.h.

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

◆ vtx_tracks_2_sim_

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

raw pointers are needed for TTree::Branch

Definition at line 53 of file CbmStsTracksConverter.h.

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


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