Skip to content

CHG: Rework the TAC module to ensure the correct detectorID is used per strip hit - #239

Merged
fhagemann merged 7 commits into
cositools:develop/emfrom
nlopez-code:TAC_Strip2DetID
Oct 19, 2026
Merged

fhagemann merged 7 commits into
cositools:develop/emfrom
nlopez-code:TAC_Strip2DetID

Conversation

@nlopez-code

Copy link
Copy Markdown

Before: TACCal files were used to determine the detectorID but now they carry dibID and were being mistaken for DetID. Now, the strip number from the TACCal file is matched to the strip number in the strip map and the detectorID is grabbed from there. If the strip map was already provided from a loader module, nothing changes for the TACcal gui. If running cosima with DEE, the Taccal file has an input for the strip map.

…rip hit. Before: TACCal files were used to determine the detectorID but now they carry dibID and were being mistaken for DetID. Now, the strip number from the TACCal file is matched to the strip number in the strip map and the detectorID is grabbed from there. If the strip map was already provided from a loader module, nothing changes for the TACcal gui. If running cosima with DEE, the Taccal file has an input for the strip map.

@fhagemann fhagemann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Before I review and run the code: how does this affect the DEE, where we also apply inverse TAC cal. Would we need a strip map here as well?

@ckierans

Copy link
Copy Markdown
Collaborator

The TAC Cal files don't have a # sign in the first header line, but the current module expects this. We've had to manually add it to run the most recent taccal file. Can you also remove this requirement/expectation from the module in this PR?

@ckierans ckierans added this to the v1.0 milestone Oct 16, 2026
Comment thread include/MModuleTACCalibration.h Outdated
Comment thread include/MModuleTACCalibration.h
Comment thread include/MModuleLoaderMeasurementsHDF.h
Comment thread src/MModuleTACCalibration.cxx
Comment thread src/MModuleTACCalibration.cxx Outdated
Comment thread src/MModuleTACCalibration.cxx Outdated
Comment thread src/MModuleTACCalibration.cxx Outdated
Comment thread src/MModuleTACCalibration.cxx Outdated
Comment thread src/MModuleTACCalibration.cxx Outdated
@fhagemann fhagemann changed the title Rework the TAC module to ensure the correct detectorID is used per strip hit CHG: Rework the TAC module to ensure the correct detectorID is used per strip hit Oct 17, 2026
Comment thread src/MSubModuleDepthReadout.cxx Outdated

@fhagemann fhagemann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unit tests looks great again, just minor comments.

Comment thread unittests/UTNModuleTACCalibration.cxx
Comment thread unittests/UTNModuleTACCalibration.cxx
Comment thread unittests/UTNModuleTACCalibration.cxx
Comment thread unittests/UTNModuleTACCalibration.cxx
Comment thread unittests/UTNModuleTACCalibration.cxx
Co-authored-by: Felix Hagemann <hagemann@berkeley.edu>
@fhagemann

Copy link
Copy Markdown

I will look into why the tests are failing on GitHub (they pass on my laptop?)

@fhagemann

Copy link
Copy Markdown

Don't tell me that the tests were failing only because we didn't merge the latest develop/em into here... -.-

@fhagemann fhagemann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Amazing job!

@fhagemann
fhagemann merged commit 6da49bf into cositools:develop/em Oct 19, 2026
1 check passed
@nlopez-code
nlopez-code deleted the TAC_Strip2DetID branch October 19, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants