CbmRoot
|
#include <ATKFParticleFinder.h>
Public Member Functions | |
void | InitInput (const std::string &file_name, const std::string &tree_name) |
void | InitOutput (const std::string &file_name="KFPF_output.root") |
void | Finish () |
void | SetCuts (CutsContainer cuts) |
void | SetPIDMode (int pid) |
void | WriteCandidates (const KFParticleTopoReconstructor *TR) |
void | Run (int n_events=-1) |
Private Member Functions | |
KFParticleTopoReconstructor * | CreateTopoReconstructor () |
std::vector< float > | GetCovMatrixCbm (const AnalysisTree::Track &track) const |
Private Attributes | |
std::string | in_file_name_ |
std::string | in_tree_name_ |
TFile * | in_file_ {nullptr} |
TChain * | in_chain_ {nullptr} |
AnalysisTree::Configuration * | config_ {nullptr} |
AnalysisTree::EventHeader * | rec_event_header_ {nullptr} |
AnalysisTree::TrackDetector * | kf_tracks_ {nullptr} |
TFile * | out_file_ {nullptr} |
TTree * | out_tree_ {nullptr} |
AnalysisTree::Configuration | out_config_ |
AnalysisTree::Particles * | particles_reco_ {nullptr} |
int | q_field_id_ {-999} |
int | par_field_id_ {-999} |
int | mf_field_id_ {-999} |
int | cov_field_id_ {-999} |
int | passcuts_field_id_ {-999} |
int | pdg_field_id_ {-999} |
int | vtx_chi2_field_id_ {-999} |
int | nhits_field_id_ {-999} |
int | nhits_mvd_field_id_ {-999} |
int | daughter1_id_field_id_ {-999} |
int | daughter2_id_field_id_ {-999} |
CutsContainer | cuts_ |
int | pid_mode_ {1} |
Definition at line 18 of file ATKFParticleFinder.h.
|
private |
Definition at line 88 of file ATKFParticleFinder.cxx.
References cuts_, GetCovMatrixCbm(), CutsContainer::GetCutChi2Geo(), CutsContainer::GetCutChi2Prim(), CutsContainer::GetCutDistance(), CutsContainer::GetCutLdL(), CutsContainer::GetCutLDown(), kf_tracks_, mf_field_id_, nhits_mvd_field_id_, par_field_id_, passcuts_field_id_, pdg_field_id_, pid_mode_, q_field_id_, rec_event_header_, and vtx_chi2_field_id_.
Referenced by Run().
void ATKFParticleFinder::Finish | ( | ) |
Definition at line 57 of file ATKFParticleFinder.cxx.
References out_file_, and out_tree_.
Referenced by Run().
|
private |
Definition at line 197 of file ATKFParticleFinder.cxx.
References cov_field_id_, f, i, par_field_id_, q_field_id_, and sqrt().
Referenced by CreateTopoReconstructor().
void ATKFParticleFinder::InitInput | ( | const std::string & | file_name, |
const std::string & | tree_name | ||
) |
Definition at line 3 of file ATKFParticleFinder.cxx.
References config_, cov_field_id_, in_chain_, in_file_, kf_tracks_, mf_field_id_, nhits_field_id_, nhits_mvd_field_id_, par_field_id_, passcuts_field_id_, pdg_field_id_, q_field_id_, rec_event_header_, and vtx_chi2_field_id_.
void ATKFParticleFinder::InitOutput | ( | const std::string & | file_name = "KFPF_output.root" | ) |
Definition at line 32 of file ATKFParticleFinder.cxx.
References daughter1_id_field_id_, daughter2_id_field_id_, out_config_, out_file_, out_tree_, and particles_reco_.
void ATKFParticleFinder::Run | ( | int | n_events = -1 | ) |
Definition at line 64 of file ATKFParticleFinder.cxx.
References CreateTopoReconstructor(), Finish(), in_chain_, and WriteCandidates().
|
inline |
Definition at line 23 of file ATKFParticleFinder.h.
References cuts_.
|
inline |
Definition at line 25 of file ATKFParticleFinder.h.
References pid_mode_.
void ATKFParticleFinder::WriteCandidates | ( | const KFParticleTopoReconstructor * | TR | ) |
Definition at line 172 of file ATKFParticleFinder.cxx.
References daughter1_id_field_id_, daughter2_id_field_id_, out_config_, out_tree_, and particles_reco_.
Referenced by Run().
|
private |
Definition at line 36 of file ATKFParticleFinder.h.
Referenced by InitInput().
|
private |
Definition at line 48 of file ATKFParticleFinder.h.
Referenced by GetCovMatrixCbm(), and InitInput().
|
private |
Definition at line 58 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and SetCuts().
|
private |
Definition at line 55 of file ATKFParticleFinder.h.
Referenced by InitOutput(), and WriteCandidates().
|
private |
Definition at line 56 of file ATKFParticleFinder.h.
Referenced by InitOutput(), and WriteCandidates().
|
private |
Definition at line 35 of file ATKFParticleFinder.h.
Referenced by InitInput(), and Run().
|
private |
Definition at line 34 of file ATKFParticleFinder.h.
Referenced by InitInput().
|
private |
Definition at line 32 of file ATKFParticleFinder.h.
|
private |
Definition at line 33 of file ATKFParticleFinder.h.
|
private |
Definition at line 38 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 47 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 52 of file ATKFParticleFinder.h.
Referenced by InitInput().
|
private |
Definition at line 53 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 42 of file ATKFParticleFinder.h.
Referenced by InitOutput(), and WriteCandidates().
|
private |
Definition at line 40 of file ATKFParticleFinder.h.
Referenced by Finish(), and InitOutput().
|
private |
Definition at line 41 of file ATKFParticleFinder.h.
Referenced by Finish(), InitOutput(), and WriteCandidates().
|
private |
Definition at line 46 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), GetCovMatrixCbm(), and InitInput().
|
private |
Definition at line 43 of file ATKFParticleFinder.h.
Referenced by InitOutput(), and WriteCandidates().
|
private |
Definition at line 49 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 50 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 63 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and SetPIDMode().
|
private |
Definition at line 45 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), GetCovMatrixCbm(), and InitInput().
|
private |
Definition at line 37 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().
|
private |
Definition at line 51 of file ATKFParticleFinder.h.
Referenced by CreateTopoReconstructor(), and InitInput().