Skip to content

Update Converter.cc for mbs data format#110

Merged
lpgaff merged 2 commits into
Miniball:mainfrom
hannahkleis-ctrl:Mbs_raw_spectra
Jun 5, 2026
Merged

Update Converter.cc for mbs data format#110
lpgaff merged 2 commits into
Miniball:mainfrom
hannahkleis-ctrl:Mbs_raw_spectra

Conversation

@hannahkleis-ctrl

Copy link
Copy Markdown
Contributor

Adjusted the range for the Qint raw histograms for data with the mbs format. This is only important for data with the mbs format (data collected in 2022).

Adjusted the range for the Qint raw histograms for data with the mbs format. First if and else if condition has to be changed
Comment thread src/Converter.cc
// Check if we have particles with low gain preamps (heavy ions, Coulex)
if( ( cal->FebexType(i,j,k) == "Qshort" && cal->FebexGain(i,j,k) > 5 )
|| ( cal->FebexType(i,j,k) == "Qint" && cal->FebexGain(i,j,k) > 0.0005 ) ) {
|| ( cal->FebexType(i,j,k) == "Qint" && cal->FebexGain(i,j,k) > 0.005 ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this change intended? The usual difference between the Qshort and Qint values is 1e4. Therefore, if you change the condition on the Qint to be 5e-3, then the Qshort condition should be 5e1, which is 50.

If you change one, you must change the other, but maybe this change was not intended?

Adjusted Qshort to match the Qint condition in the first if statement
@lpgaff
lpgaff merged commit b98a92c into Miniball:main Jun 5, 2026
1 check passed
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.

2 participants