Skip to content

Conversation

brownd1978
Copy link
Collaborator

@brownd1978 brownd1978 commented Sep 11, 2025

This PR introduces code allowing regrowing LoopHelix and KinematicLine fits from appropriate KalSeed collections. It relies on KinKal v3.4.2 or higher. Running this code requires updates to mu2e-trig-config in this PR.
Several core classes were refactored in this work, but the results were only fully exploited in LoopHelix fits. CentralHelix and KL fits still work, but to use the newly available features (such as extrapolation) the fit modules will need to be amended.
There is no reason CentralHelix KalSeeds can't also be regrown, a module for that will be added in a future PR.
Some small bugs were fixed in the course of this development, which may slightly affect the output of tracking.
Some configurations have changed in this PR to improve consistency and maintainability.
Note that this PR augments the KalSeed schema to support regrowing. Regrowing is only possible with seeds created including this schema, so legacy datasets written before this PR cannot have KKTracks regrown.

brownd1978 and others added 30 commits May 2, 2025 09:49
module locations to keep them in sync with what's in crv_parameters.xlxs)
Copy link
Contributor

@eflumerf eflumerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMakeLists.txt looks good

auto ktrk = std::make_unique<KKTRK>(config_,*kkbf_,kseed.particle(),trajptr,strawhits,strawxings,calohits,domains);
if(ktrk && ktrk->fitStatus().usable()){
if(debug_ > 0) std::cout << "RegrowLoopHelix: successful track refit" << std::endl;
// temporary test
Copy link
Contributor

@edcallaghan edcallaghan Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment real, i.e. should the call to extendTrack be removed?

@brownd1978
Copy link
Collaborator Author

brownd1978 commented Oct 8, 2025 via email

@brownd1978
Copy link
Collaborator Author

@FNALbuild run build test with Mu2e/mu2e-trig-config#112 and Mu2e/Production#465

@brownd1978
Copy link
Collaborator Author

@FNALbuild run build test with Mu2e/mu2e-trig-config#112, Mu2e/Production#465

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for 25c3ae5: build (Build queue - API unavailable)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at 25c3ae5.

Test Result Details
test with Included Mu2e/mu2e-trig-config#112 @ 243fc82c7831bb589571d956b8111b87ae53f322 by merge
test with Included Mu2e/Production#465 @ 2c9db5f649620647237cdac930bb67ebcdbdc19d by merge
merge Merged 25c3ae5 at 02a3be8
build (prof) Log file. Build time: 04 min 38 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
trigger Log file. Return Code 2.
check_cmake Log file.
FIXME, TODO 🔶 TODO (29) FIXME (10) in 30 files
clang-tidy 🔶 12 errors 305 warnings
whitespace check no whitespace errors found

N.B. These results were obtained from a build of this Pull Request at 25c3ae5 after being merged into the base branch at 02a3be8.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@brownd1978
Copy link
Collaborator Author

@FNALbuild run build test with Mu2e/mu2e-trig-config#112, Mu2e/Production#465

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for c77e11d: build (Build queue - API unavailable)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at c77e11d.

Test Result Details
test with Included Mu2e/mu2e-trig-config#112 @ 243fc82c7831bb589571d956b8111b87ae53f322 by merge
test with Included Mu2e/Production#465 @ 2c9db5f649620647237cdac930bb67ebcdbdc19d by merge
merge Merged c77e11d at 02a3be8
build (prof) Log file. Build time: 04 min 39 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
trigger Log file. Return Code 1.
check_cmake Log file.
FIXME, TODO 🔶 TODO (29) FIXME (11) in 31 files
clang-tidy 🔶 14 errors 326 warnings
whitespace check no whitespace errors found

N.B. These results were obtained from a build of this Pull Request at c77e11d after being merged into the base branch at 02a3be8.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@brownd1978 brownd1978 merged commit f01b9d3 into Mu2e:main Oct 9, 2025
14 checks passed
@brownd1978 brownd1978 deleted the kseed branch October 9, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants