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 a0f06cb commit c949b81
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,28 +1128,28 @@ 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());
hPtTrkItsTpcMat[histogramIndex]->Fill(track.pt());
if (passedTOF) {
hPtItsTpcTofMat[histogramIndex]->Fill(mcParticle.pt());
hPtItsTpcTofMat[histogramIndex]->Fill(mcParticle.pt());
}
}
}
Expand Down

0 comments on commit c949b81

Please sign in to comment.