CbmRoot
ATKFParticleFinder Class Reference

#include <ATKFParticleFinder.h>

Collaboration diagram for ATKFParticleFinder:
[legend]

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}
 

Detailed Description

Definition at line 18 of file ATKFParticleFinder.h.

Member Function Documentation

◆ CreateTopoReconstructor()

◆ Finish()

void ATKFParticleFinder::Finish ( )

Definition at line 57 of file ATKFParticleFinder.cxx.

References out_file_, and out_tree_.

Referenced by Run().

◆ GetCovMatrixCbm()

std::vector< float > ATKFParticleFinder::GetCovMatrixCbm ( const AnalysisTree::Track &  track) const
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().

◆ InitInput()

void ATKFParticleFinder::InitInput ( const std::string &  file_name,
const std::string &  tree_name 
)

◆ InitOutput()

void ATKFParticleFinder::InitOutput ( const std::string &  file_name = "KFPF_output.root")

◆ Run()

void ATKFParticleFinder::Run ( int  n_events = -1)

◆ SetCuts()

void ATKFParticleFinder::SetCuts ( CutsContainer  cuts)
inline

Definition at line 23 of file ATKFParticleFinder.h.

References cuts_.

◆ SetPIDMode()

void ATKFParticleFinder::SetPIDMode ( int  pid)
inline

Definition at line 25 of file ATKFParticleFinder.h.

References pid_mode_.

◆ WriteCandidates()

void ATKFParticleFinder::WriteCandidates ( const KFParticleTopoReconstructor *  TR)

Member Data Documentation

◆ config_

AnalysisTree::Configuration* ATKFParticleFinder::config_ {nullptr}
private

Definition at line 36 of file ATKFParticleFinder.h.

Referenced by InitInput().

◆ cov_field_id_

int ATKFParticleFinder::cov_field_id_ {-999}
private

Definition at line 48 of file ATKFParticleFinder.h.

Referenced by GetCovMatrixCbm(), and InitInput().

◆ cuts_

CutsContainer ATKFParticleFinder::cuts_
private

Definition at line 58 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and SetCuts().

◆ daughter1_id_field_id_

int ATKFParticleFinder::daughter1_id_field_id_ {-999}
private

Definition at line 55 of file ATKFParticleFinder.h.

Referenced by InitOutput(), and WriteCandidates().

◆ daughter2_id_field_id_

int ATKFParticleFinder::daughter2_id_field_id_ {-999}
private

Definition at line 56 of file ATKFParticleFinder.h.

Referenced by InitOutput(), and WriteCandidates().

◆ in_chain_

TChain* ATKFParticleFinder::in_chain_ {nullptr}
private

Definition at line 35 of file ATKFParticleFinder.h.

Referenced by InitInput(), and Run().

◆ in_file_

TFile* ATKFParticleFinder::in_file_ {nullptr}
private

Definition at line 34 of file ATKFParticleFinder.h.

Referenced by InitInput().

◆ in_file_name_

std::string ATKFParticleFinder::in_file_name_
private

Definition at line 32 of file ATKFParticleFinder.h.

◆ in_tree_name_

std::string ATKFParticleFinder::in_tree_name_
private

Definition at line 33 of file ATKFParticleFinder.h.

◆ kf_tracks_

AnalysisTree::TrackDetector* ATKFParticleFinder::kf_tracks_ {nullptr}
private

Definition at line 38 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ mf_field_id_

int ATKFParticleFinder::mf_field_id_ {-999}
private

Definition at line 47 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ nhits_field_id_

int ATKFParticleFinder::nhits_field_id_ {-999}
private

Definition at line 52 of file ATKFParticleFinder.h.

Referenced by InitInput().

◆ nhits_mvd_field_id_

int ATKFParticleFinder::nhits_mvd_field_id_ {-999}
private

Definition at line 53 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ out_config_

AnalysisTree::Configuration ATKFParticleFinder::out_config_
private

Definition at line 42 of file ATKFParticleFinder.h.

Referenced by InitOutput(), and WriteCandidates().

◆ out_file_

TFile* ATKFParticleFinder::out_file_ {nullptr}
private

Definition at line 40 of file ATKFParticleFinder.h.

Referenced by Finish(), and InitOutput().

◆ out_tree_

TTree* ATKFParticleFinder::out_tree_ {nullptr}
private

Definition at line 41 of file ATKFParticleFinder.h.

Referenced by Finish(), InitOutput(), and WriteCandidates().

◆ par_field_id_

int ATKFParticleFinder::par_field_id_ {-999}
private

Definition at line 46 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), GetCovMatrixCbm(), and InitInput().

◆ particles_reco_

AnalysisTree::Particles* ATKFParticleFinder::particles_reco_ {nullptr}
private

Definition at line 43 of file ATKFParticleFinder.h.

Referenced by InitOutput(), and WriteCandidates().

◆ passcuts_field_id_

int ATKFParticleFinder::passcuts_field_id_ {-999}
private

Definition at line 49 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ pdg_field_id_

int ATKFParticleFinder::pdg_field_id_ {-999}
private

Definition at line 50 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ pid_mode_

int ATKFParticleFinder::pid_mode_ {1}
private

Definition at line 63 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and SetPIDMode().

◆ q_field_id_

int ATKFParticleFinder::q_field_id_ {-999}
private

Definition at line 45 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), GetCovMatrixCbm(), and InitInput().

◆ rec_event_header_

AnalysisTree::EventHeader* ATKFParticleFinder::rec_event_header_ {nullptr}
private

Definition at line 37 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().

◆ vtx_chi2_field_id_

int ATKFParticleFinder::vtx_chi2_field_id_ {-999}
private

Definition at line 51 of file ATKFParticleFinder.h.

Referenced by CreateTopoReconstructor(), and InitInput().


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