Skip to content

Commit

Permalink
Check energiesX
Browse files Browse the repository at this point in the history
  • Loading branch information
JPorron committed Nov 11, 2024
1 parent 68283f4 commit 4638501
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/TRestTrack2DAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,18 @@ TRestEvent* TRestTrack2DAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) {
sort(energiesX.begin(), energiesX.end(), sortByValueDescending);
sort(energiesY.begin(), energiesY.end(), sortByValueDescending);

// Print energiesX values
std::cout << "energiesX values:\n";
for (const auto& pair : energiesX) {
std::cout << "Key: " << pair.first << ", Value: " << pair.second << '\n';
}

// Print energiesY values
std::cout << "energiesY values:\n";
for (const auto& pair : energiesY) {
std::cout << "Key: " << pair.first << ", Value: " << pair.second << '\n';
}

/// Observables "balance", between max track in X and max track in Y
for (int i = 0; i < min(NTracksX, NTracksY); i++) {
XZ_YZ_SigmaXYBalance[i] = (XZ_SigmaX[energiesX[i].first] - YZ_SigmaY[energiesY[i].first]) /
Expand Down

0 comments on commit 4638501

Please sign in to comment.