AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains#1003
AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains#1003baltzell merged 10 commits intoJeffersonLab:developmentfrom
Conversation
|
Were there CCDB tables recently updated that are required for this? |
|
Hi Nathan:
Yes, new constants were uploaded today and can be found at /calibration/alert/ahdc/gains.
Sincerely
Churamani
…________________________________
From: Nathan Baltzell ***@***.***>
Sent: Thursday, December 11, 2025 5:27 PM
To: JeffersonLab/coatjava ***@***.***>
Cc: Churamani Paudel ***@***.***>; Author ***@***.***>
Subject: Re: [JeffersonLab/coatjava] AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains (PR #1003)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
WARNING This email originated external to the NMSU email system. Do not click on links or open attachments unless you are sure the content is safe.
[https://avatars.githubusercontent.com/u/6279258?s=20&v=4]baltzell left a comment (JeffersonLab/coatjava#1003)<#1003 (comment)>
Were there CCDB tables recently updated that are required for this?
—
Reply to this email directly, view it on GitHub<#1003 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/B3M7EGFO3Y3M4DPFFNH2NGD4BIDVXAVCNFSM6AAAAACOZH5UZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNBUGM3TGOJYHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
Yes, new constants were uploaded today and can be found at /calibration/alert/ahdc/gains. link is below: |
|
The CCDB changes will propagate to CVMFS shortly and we'll retrigger the tests. |
|
removed the "try catch" option for the absense of TOT table and set the requirement for table to be present in the ccdb |
1 similar comment
|
removed the "try catch" option for the absense of TOT table and set the requirement for table to be present in the ccdb |
bf15219 to
b55d63a
Compare
reconstruction/alert/src/main/java/org/jlab/rec/alert/constants/CalibrationConstantsLoader.java
Outdated
Show resolved
Hide resolved
|
Hi Nathan:
May be this is can be done then:
IndexedTable ahdc_totGains = manager.getConstants(...);
if (ahdc_totGains == null) { ... } can be replaced by
Can be replaced by
IndexedTable ahdc_totGains = manager.getConstants(runno, "/calibration/alert/ahdc/tot_gains");
So that fails naturally.
Sincerely
Churamani
________________________________
From: Nathan Baltzell ***@***.***>
Sent: Tuesday, December 16, 2025 8:28 AM
To: JeffersonLab/coatjava ***@***.***>
Cc: Churamani Paudel ***@***.***>; Author ***@***.***>
Subject: Re: [JeffersonLab/coatjava] AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains (PR #1003)
WARNING This email originated external to the NMSU email system. Do not click on links or open attachments unless you are sure the content is safe.
@baltzell commented on this pull request.
________________________________
In reconstruction/alert/src/main/java/org/jlab/rec/alert/constants/CalibrationConstantsLoader.java<#1003 (comment)>:
+ public static Map<Integer, double[]> ATOF_ATTENUATION_LENGTH = new HashMap<>(); ///< ATOF attenuation length
+ public static Map<Integer, double[]> ATOF_TIME_OFFSETS = new HashMap<>(); ///< ATOF timing offsets
+
+ public static synchronized void Load(int runno, ConstantsManager manager) {
+
+ if (CSTLOADED) return;
+
+ // --- AHDC tables from CCDB (all required) ---
+ IndexedTable ahdc_timeOffsets = manager.getConstants(runno, "/calibration/alert/ahdc/time_offsets");
+ IndexedTable ahdc_time2distance = manager.getConstants(runno, "/calibration/alert/ahdc/time_to_distance");
+ IndexedTable ahdc_rawHitCuts = manager.getConstants(runno, "/calibration/alert/ahdc/raw_hit_cuts");
+ IndexedTable ahdc_adcGains = manager.getConstants(runno, "/calibration/alert/ahdc/gains");
+
+ // TOT gain table is now treated as a REQUIRED table.
+ IndexedTable ahdc_totGains = manager.getConstants(runno, "/calibration/alert/ahdc/tot_gains");
+ if (ahdc_totGains == null) {
No need to treat this one specially.
—
Reply to this email directly, view it on GitHub<#1003 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/B3M7EGHGJKG3YF7OJQ6STGT4CAQKTAVCNFSM6AAAAACOZH5UZSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTKOBTG4YDAMJZGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
b55d63a to
7240667
Compare
|
Apart from the above comments, the code works well for simulation. |
|
@ftouchte can you approve this? |
reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Hit/HitReader.java
Outdated
Show resolved
Hide resolved
reconstruction/alert/src/main/java/org/jlab/rec/ahdc/AI/ModelTrackFinding.java
Show resolved
Hide resolved
|
@baltzell Do you think I should resolve all my comments? I can fix them in my next PR (I plan to extend the AHDC::hits bank). |
|
@ftouchte Errors: |
44d9334 to
f1e783c
Compare
|
@ftouchte: tried to resolve the comments, edited the code and committed the changes. |
|
@ftouche, I really just meant that ideally someone other than me, someone more familiar with AHDC's code and strategy should click approve. |
…1003) * AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains * column match with ccdb table * switch to AI-Track-Finding model * update applied for TOT, consistent with adc gains * review gains and tot table * AHDC: fail fast when calibration constants missing * AHDC: fail fast when calibration constants missing * resolve comments * AHDC: handle missing time_over_threshold CCDB table --------- Co-authored-by: Churamani Paudel <churaman@ifarm2402.jlab.org> Co-authored-by: Churamani Paudel <churaman@ifarm2401.jlab.org>
…1003) * AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains * column match with ccdb table * switch to AI-Track-Finding model * update applied for TOT, consistent with adc gains * review gains and tot table * AHDC: fail fast when calibration constants missing * AHDC: fail fast when calibration constants missing * resolve comments * AHDC: handle missing time_over_threshold CCDB table --------- Co-authored-by: Churamani Paudel <churaman@ifarm2402.jlab.org> Co-authored-by: Churamani Paudel <churaman@ifarm2401.jlab.org>
…1003) * AHDC: apply ADC gain calibration from /calibration/alert/ahdc/gains * column match with ccdb table * switch to AI-Track-Finding model * update applied for TOT, consistent with adc gains * review gains and tot table * AHDC: fail fast when calibration constants missing * AHDC: fail fast when calibration constants missing * resolve comments * AHDC: handle missing time_over_threshold CCDB table --------- Co-authored-by: Churamani Paudel <churaman@ifarm2402.jlab.org> Co-authored-by: Churamani Paudel <churaman@ifarm2401.jlab.org>
applied AHDC gain calibration to the Hit bank, updated CalibrationConstantLoader, built and ran some files for the test.