Skip to content

Commit

Permalink
Update qaEfficiency.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
upasanasharma31 authored Sep 4, 2024
1 parent b70837a commit a0f06cb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions DPG/Tasks/AOTTrack/qaEfficiency.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1128,22 +1128,22 @@ struct QaEfficiency {
hPtRadiusItsTpcTofStr[histogramIndex]->Fill(mcParticle.pt(), radius);
}
}
}
if (isFinal(mcParticle)) {
if (passedITS && passedTPC && motherIsAccepted) {
hPtItsTpcTer[histogramIndex]->Fill(mcParticle.pt());
hPtTrkItsTpcTer[histogramIndex]->Fill(track.pt());
if (passedTOF) {
hPtItsTpcTofTer[histogramIndex]->Fill(mcParticle.pt());
}
if (doPtRadius) {
hPtRadiusItsTpcTer[histogramIndex]->Fill(mcParticle.pt(), radius);
if (passedTOF) {
hPtRadiusItsTpcTofTer[histogramIndex]->Fill(mcParticle.pt(), radius);
}
}
}
}
}
if (isFinal(mcParticle)) {
if (passedITS && passedTPC && motherIsAccepted) {
hPtItsTpcTer[histogramIndex]->Fill(mcParticle.pt());
hPtTrkItsTpcTer[histogramIndex]->Fill(track.pt());
if (passedTOF) {
hPtItsTpcTofTer[histogramIndex]->Fill(mcParticle.pt());
}
if (doPtRadius) {
hPtRadiusItsTpcTer[histogramIndex]->Fill(mcParticle.pt(), radius);
if (passedTOF) {
hPtRadiusItsTpcTofTer[histogramIndex]->Fill(mcParticle.pt(), radius);
}
}
}
}
} else { // Material
if (passedITS && passedTPC) {
hPtItsTpcMat[histogramIndex]->Fill(mcParticle.pt());
Expand Down

0 comments on commit a0f06cb

Please sign in to comment.