Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utils: analysis profile: comparison operator: supress the check for a… #124

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions programs/us_analysis_profile/us_analysis_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ DbgLv(1) << "MAIN: CALL check_runname()";
DbgLv(1) << "MAIN: CALL reset()";
//reset();
resize( 500, 450 );

// //test
// US_AnaProfile profile1;
// US_AnaProfile profile2;

// if ( profile1 == profile2 )
// qDebug() << "ana profs EQUAL";
// else
// qDebug() << "ana profs NOT EQUAL";
}


Expand Down
10 changes: 9 additions & 1 deletion utils/us_ana_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,22 @@ bool US_AnaProfile::operator== ( const US_AnaProfile& ap ) const
if ( aprofGUID != ap.aprofGUID ) return false;
if ( protoname != ap.protoname ) return false;
if ( protoGUID != ap.protoGUID ) return false;
if ( nchan != ap.nchan ) return false;

qDebug() << "[ANA comp] Gen1 OK";

qDebug() << "nchan: " << nchan << ap.nchan;
//if ( nchan != ap.nchan ) return false;

qDebug() << "[ANA comp] Gen2 OK";

if ( lc_ratios != ap.lc_ratios ) return false;
if ( lc_tolers != ap.lc_tolers ) return false;
if ( l_volumes != ap.l_volumes ) return false;
if ( lv_tolers != ap.lv_tolers ) return false;
if ( data_ends != ap.data_ends ) return false;

qDebug() << "[ANA comp] Gen3 OK";

//abde
if ( ld_dens_0s != ap.ld_dens_0s ) return false;
if ( gm_vbars != ap.gm_vbars ) return false;
Expand Down
Loading