-
Notifications
You must be signed in to change notification settings - Fork 218
feature: Add Delegates to select doublets #4593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
/// deltaZ maximum for bottom doublet | ||
float maxDeltaZbottom{}; | ||
/// deltaZ maximum for top doublet | ||
float maxDeltaZtop{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I think I miscommunicated this - I believe this should be separate from the MiddleSpInfo
static float voidDeltaZFunc(float, float) { | ||
return std::numeric_limits<float>::max(); | ||
}; | ||
static bool vetoCandidate(float, float) { | ||
return false; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be easier to just leave the delegate unconnected in this case
float deltaZ = 0; | ||
if constexpr (isBottomCandidate) { | ||
deltaZ = zM - zO; | ||
if (outsideRangeCheck( std::abs(deltaZ), 0, middleSpInfo.maxDeltaZbottom)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one cut should be enough for both bottom and top and set accordingly in the triplet seeder
explicit TripletSeeder(std::unique_ptr<const Logger> logger = | ||
getDefaultLogger("TripletSeeder", | ||
Logging::Level::INFO)); | ||
struct Config { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be pushed into the TripletSeedFinder
?
Add functionality to filter doublets and middle candidates