1 #ifndef RecoTracker_MkFitCore_interface_IterationConfig_h 2 #define RecoTracker_MkFitCore_interface_IterationConfig_h 7 #include "nlohmann/json_fwd.hpp" 33 class IterationConfig;
59 if (fallback_to_other) {
252 for (
int i = 0;
i < nreg; ++
i)
255 for (
int i = 0;
i < nlay; ++
i)
292 i.setupStandardFunctionsFromNames();
351 template <
typename T>
354 template <
typename T>
373 const std::vector<std::string> &
fnames,
nlohmann::json * m_current
unsigned int maxClusterSize
std::string m_pre_bkfit_filter_name
static void register_seed_partitioner(const std::string &name, partition_seeds_func func)
IterationParams m_backward_params
std::function< register_seed_phi_eta_foo > m_phi_eta_foo
static void register_track_scorer(const std::string &name, track_score_func func)
SteeringParams & steering_params(int region)
void inc_counts(const PatchReport &pr)
void set_seed_cleaning_params(float pt_thr, float dzmax_bh, float drmax_bh, float dzmax_bl, float drmax_bl, float dzmax_eh, float drmax_eh, float dzmax_el, float drmax_el)
std::string dump(int indent=2)
std::string m_seed_cleaner_name
std::string m_seed_partitioner_name
bool m_backward_drop_seed_hits
static void register_duplicate_cleaner(const std::string &name, clean_duplicates_func func)
void inc_counts(int f, int e, int r)
void set_dupl_params(float sharedFrac, float drthCentral, float drthObarrel, float drthForward)
std::function< track_score_cf > track_score_func
std::vector< int > m_region_order
clean_seeds_func m_seed_cleaner
TEMPL(T2) struct Divides void
void replace(const std::string &path, T val)
static filter_candidates_func get_candidate_filter(const std::string &name)
void test_Direct(IterationConfig &it_cfg)
void patch_Files(IterationsInfo &its_info, const std::vector< std::string > &fnames, ConfigJsonPatcher::PatchReport *report=nullptr)
virtual ~IterationMaskIfcBase()
std::string exc_hdr(const char *func=nullptr) const
std::function< filter_candidates_cf > filter_candidates_func
std::vector< nlohmann::json * > m_json_stack
std::vector< IterationLayerConfig > m_layer_configs
static void register_seed_cleaner(const std::string &name, clean_seeds_func func)
void setupStandardFunctionsFromNames()
void set_selection_limits(float p1, float p2, float q1, float q2)
const std::vector< bool > * get_mask_for_layer(int layer) const override
static partition_seeds_func get_seed_partitioner(const std::string &name)
IterationSeedPartition(int size)
void setupStandardFunctionsFromNames()
std::string m_default_track_scorer_name
partition_seeds_func m_seed_partitioner
std::vector< int > m_region
std::unique_ptr< IterationConfig > patchLoad_File(const IterationsInfo &its_info, const std::string &fname, ConfigJsonPatcher::PatchReport *report=nullptr)
std::string m_post_bkfit_filter_name
void cd(const std::string &path)
void set_iteration_index_and_track_algorithm(int idx, int trk_alg)
std::vector< std::string > m_path_stack
void save_Iterations(IterationsInfo &its_info, const std::string &fname_fmt, bool include_iter_info_preamble)
std::vector< float > m_winpars_bkw
void test_Patcher(IterationConfig &it_cfg)
int m_backward_fit_min_hits
filter_candidates_func m_post_bkfit_filter
static track_score_func get_track_scorer(const std::string &name)
static clean_duplicates_func get_duplicate_cleaner(const std::string &name)
bool merge_seed_hits_during_cleaning() const
void cloneLayerSteerCore(const IterationConfig &o)
clean_duplicates_func m_duplicate_cleaner
std::unique_ptr< IterationConfig > load_File(const std::string &fname)
const IterationConfig & operator[](int i) const
IterationConfig & operator[](int i)
void dump(IterationsInfo &its_info)
void(float, float) register_seed_phi_eta_foo
void set_num_regions_layers(int nreg, int nlay)
std::unique_ptr< nlohmann::json > m_json
void cd_up(const std::string &path="")
const std::vector< float > & get_window_params(bool forward, bool fallback_to_other) const
IterationLayerConfig & layer(int i)
ConfigJsonPatcher(bool verbose=false)
track_score_func m_default_track_scorer
std::vector< float > m_winpars_fwd
std::vector< std::vector< bool > > m_mask_vector
std::function< clean_seeds_cf > clean_seeds_func
static clean_seeds_func get_seed_cleaner(const std::string &name)
filter_candidates_func m_pre_bkfit_filter
void cd_top(const std::string &path="")
std::vector< IterationConfig > m_iterations
ConfigJson(bool verbose=false)
std::vector< SteeringParams > m_steering_params
bool m_requires_seed_hit_sorting
std::function< clean_duplicates_cf > clean_duplicates_func
virtual const std::vector< bool > * get_mask_for_layer(int layer) const
std::string m_duplicate_cleaner_name
static void register_candidate_filter(const std::string &name, filter_candidates_func func)
std::function< partition_seeds_cf > partition_seeds_func
std::string get_abs_path() const