Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 43 additions & 11 deletions core/include/traccc/gbts_seeding/gbts_seeding_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct gbts_consts {
static constexpr unsigned short max_cca_iter = 15;
// shared memory allocation sizes
static constexpr unsigned short node_buffer_length = 128;
static constexpr unsigned short shared_state_buffer_size = 608;
static constexpr unsigned short live_path_buffer = 1024;

// access into output graph
static constexpr char node1 = 0;
Expand All @@ -61,7 +61,7 @@ struct gbts_consts {

namespace traccc {

struct gbts_algo_params {
struct gbts_graph_building_params {

// edge making cuts
float min_delta_phi = 0.015f;
Expand All @@ -73,13 +73,14 @@ struct gbts_algo_params {

float min_z0 = -160.0f;
float max_z0 = 160.0f;
float maxOuterRadius = 550.0f;
float cut_zMinU = min_z0 - maxOuterRadius * 45;
float cut_zMaxU = max_z0 + maxOuterRadius * 45; // how to get ROI dzdr
float maxOuterRadius = 350.0f;
// how to get ROI dzdr
float cut_zMinU = min_z0 - maxOuterRadius * 45.0f;
float cut_zMaxU = max_z0 + maxOuterRadius * 45.0f;

float max_Kappa = 3.75e-4f;
float low_Kappa_d0 = 0.0f; // used to be 0.2f
float high_Kappa_d0 = 0.0f; // used to be 1.0f
float low_Kappa_d0 = 0.00f;
float high_Kappa_d0 = 0.0f;

// tau prediction cut
float tMin_slope = 6.7f;
Expand All @@ -96,6 +97,34 @@ struct gbts_algo_params {
float cut_tau_ratio_max = 0.01f;
};

struct gbts_seed_extraction_params {
// for 900 MeV track at eta=0
float sigmaMS = 0.016f;
// 2.5% per layer
float radLen = 0.025f;

float sigma_x = 0.08f;
float sigma_y = 0.25f;

float weight_x = 0.5f;
float weight_y = 0.5f;

float maxDChi2_x = 5.0f;
float maxDChi2_y = 6.0f;
// controls if seeds of shorter lengths
// can win bidding against longer seeds
float add_hit = 14.0f;
// m_J is stored in 30 + 1 bits
// max qual = add_hit*max_length*qual_scale
float qual_scale =
0.01f * static_cast<float>(INT_MAX) /
(add_hit *
static_cast<float>(traccc::device::gbts_consts::max_cca_iter));

float inv_max_curvature = 900.0f;
float max_z0 = 160.0f;
};

struct gbts_seedfinder_config {
bool setLinkingScheme(
const std::vector<std::pair<int, std::vector<int>>>& binTables,
Expand All @@ -112,15 +141,18 @@ struct gbts_seedfinder_config {
std::vector<std::array<unsigned int, 2>> surfaceToLayerMap{};

// tuned for 900 MeV pT cut and scaled by input minPt
gbts_algo_params algo_params{};
gbts_graph_building_params graph_building_params{};

gbts_seed_extraction_params seed_extraction_params{};

// node making bin counts
unsigned int n_eta_bins = 0; // calculated from input layerInfo
unsigned int n_phi_bins = 128;
// graph making maxiums
unsigned char max_num_neighbours = 10;
// graph extraction cuts
int minLevel = 3; // equivlent to a cut of #seed edges or #spacepoints-1
unsigned char max_num_neighbours = 6;
// graph extraction minimum seed edge length
// equivlent to a cut of #spacepoints-1
int minLevel = 3;
};

} // namespace traccc
10 changes: 5 additions & 5 deletions core/src/gbts_seeding/gbts_seeding_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ bool gbts_seedfinder_config::setLinkingScheme(
volumeToLayerMap[vLpair.second] = vLpair.first;
// scale cuts
float ptScale = 900.0f / minPt;
algo_params.min_delta_phi *= ptScale;
algo_params.dphi_coeff *= ptScale;
algo_params.min_delta_phi_low_dr *= ptScale;
algo_params.dphi_coeff_low_dr *= ptScale;
algo_params.max_Kappa *= ptScale;
graph_building_params.min_delta_phi *= ptScale;
graph_building_params.dphi_coeff *= ptScale;
graph_building_params.min_delta_phi_low_dr *= ptScale;
graph_building_params.dphi_coeff_low_dr *= ptScale;
graph_building_params.max_Kappa *= ptScale;

// contianers sizes
nLayers = static_cast<unsigned int>(layerInfo.type.size());
Expand Down
Loading
Loading