Skip to content

Commit

Permalink
removed couts again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragansu committed Jan 28, 2025
1 parent cf7c033 commit f80adfa
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,25 +255,18 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::ambiguityScore(

// All cuts passed, now start scoring the track

std::cout << ", Score before Pt," << score << ", pT, " << pT << ", eta, "
<< eta << std::endl;
// start with larger score for tracks with higher pT.
score = std::log10(pT / UnitConstants::MeV) - 1.;
// pT in GeV, hence 100 MeV is minimum and gets score = 1
ACTS_DEBUG("Modifier for pT = " << pT << " GeV is : " << score
<< " New score now: " << score);

std::cout << ", Score after Pt," << score << ", pT, " << pT << ", eta, "
<< eta << std::endl;

for (std::size_t detectorId = 0; detectorId < m_cfg.detectorConfigs.size();
detectorId++) {
const auto& detector = m_cfg.detectorConfigs.at(detectorId);

const auto& trackFeatures = trackFeaturesVector[detectorId];

std::cout << ", Score before detector " << detectorId << " Hits," << score
<< ", pT, " << pT << ", eta, " << eta << std::endl;
// choosing a scaling factor based on the number of hits in a track per
// detector.
std::size_t nHits = trackFeatures.nHits;
Expand All @@ -286,12 +279,6 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::ambiguityScore(
<< " hits: " << detector.factorHits[nHits]
<< " New score now: " << score);

std::cout << ", Score after detector " << detectorId << " Hits," << score
<< ", pT, " << pT << ", eta, " << eta << std::endl;

std::cout << ", Score before detector " << detectorId << " Holes,"
<< score << ", pT, " << pT << ", eta, " << eta << std::endl;

// choosing a scaling factor based on the number of holes in a track per
// detector.
std::size_t iHoles = trackFeatures.nHoles;
Expand All @@ -303,17 +290,12 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::ambiguityScore(
ACTS_DEBUG("Modifier for " << iHoles
<< " holes: " << detector.factorHoles[iHoles]
<< " New score now: " << score);
std::cout << ", Score after detector " << detectorId << " Holes," << score
<< ", pT, " << pT << ", eta, " << eta << std::endl;
}

for (const auto& scoreFunction : optionalCuts.scores) {
scoreFunction(track, score);
}

std::cout << ", Score before chi2," << score << ", pT, " << pT << ", eta, "
<< eta << std::endl;

if (track.chi2() > 0 && track.nDoF() > 0) {
double chi2 = track.chi2();
int indf = track.nDoF();
Expand All @@ -324,8 +306,6 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::ambiguityScore(
<< " New score now: " << score);
}

std::cout << ", Score after chi2," << score << ", pT, " << pT << ", eta, "
<< eta << std::endl;
iTrack++;

// Add the score to the vector
Expand Down

0 comments on commit f80adfa

Please sign in to comment.