Skip to content

Conversation

@marvlad
Copy link
Contributor

@marvlad marvlad commented Nov 7, 2025

Describe your changes

Tools:
LAPPDClusterTree
LAPPDTraceMax

Waveform amplitude max, min, rms variables added in LAPPDTraceMax.
Branches related to the variables able plus the timestamps added in LAPPDClusterTree

OBS:
Those tools are important for the LAPPD testing at Lab6.

Added CalcMinMaxAmp method to LAPPDTraceMax class.
Added a new function to calculate minimum and maximum amplitudes along with RMS, standard deviation, variance, and integral of the waveform.
Added new variables for noise study and metadata timestamps also adding RMS, min and max waveform amplitudes fro dark room data
Removed unnecessary closing brace and adjusted formatting.
Copy link
Collaborator

@jminock jminock left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Collaborator

@marc1uk marc1uk left a comment

Choose a reason for hiding this comment

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

very minor comments


//std::cout<<"-------------TIMESTAMP In tree ---------------------------------"<<std::endl;
int meta_timestamp_int;
std::string meta_timestamp = acdcmetadata[204] + acdcmetadata[206] + acdcmetadata[208] + acdcmetadata[210];
Copy link
Collaborator

Choose a reason for hiding this comment

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

use at method or check vector size.
Can we have some explanation for magic numbers 204, 206, 208, 210? or define enums instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added more comments about the numbers and also I al using at

Added error handling for ACDCmetadata retrieval and refactored timestamp extraction from ACDC metadata.
Refactor CalcMinMaxAmp function to correct min/max assignments and removing double mean calculation.
@marc1uk marc1uk merged commit 2b38e8b into ANNIEsoft:Application Nov 20, 2025
1 check passed
@marc1uk
Copy link
Collaborator

marc1uk commented Nov 20, 2025

Thanks Marvin 👍

@marvlad
Copy link
Contributor Author

marvlad commented Nov 20, 2025

Thank you for checking. I added in hurry those branches to have more sense of the lab6 data. We are still using them and I PR without cleaning

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.

3 participants