Skip to content

Commit

Permalink
Update qaEfficiency.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
upasanasharma31 authored Dec 19, 2024
1 parent b21f978 commit 3b0c5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DPG/Tasks/AOTTrack/qaEfficiency.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,8 @@ struct QaEfficiency {
if (mother.pdgCode() == pdgToCheck) {
motherIsAccepted = true;
// Calculate the decay length
double decayLength = std::sqrt(std::pow(mother.vx() - mother.mcCollision().posX(), 2) + std::pow(mother.vy() - mother.mcCollision().posY(), 2) + std::pow(mother.vz() - mother.mcCollision().posZ(), 2));
hdecaylengthmother[histogramIndex]->Fill(decayLength);
double decayLength = std::sqrt(std::pow(mother.vx() - mother.mcCollision().posX(), 2) + std::pow(mother.vy() - mother.mcCollision().posY(), 2) + std::pow(mother.vz() - mother.mcCollision().posZ(), 2));
hdecaylengthmother[histogramIndex]->Fill(decayLength);
break;
}
if (motherIsAccepted) {
Expand Down

0 comments on commit 3b0c5a1

Please sign in to comment.