Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ struct f0980pbpbanalysis {
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPionS) {
return 0;
}
}
else if (cfgSelectType == 1) {
} else if (cfgSelectType == 1) {
if (cfgUSETOF) {
if (track.hasTOF()) {
if (std::fabs(track.tofNSigmaPi()) > cMaxTOFnSigmaPion) {
Expand All @@ -284,8 +283,7 @@ struct f0980pbpbanalysis {
return 0;
}
}
}
else if (cfgSelectType == 2) {
} else if (cfgSelectType == 2) {
if (cfgUSETOF) {
if (track.hasTOF()) {
if (std::fabs(track.tofNSigmaKa()) > 3) {
Expand All @@ -308,20 +306,20 @@ struct f0980pbpbanalysis {
return 1;
}

template<typename TrackType>
template <typename TrackType>
float getTpcNSigma(const TrackType track)
{
if (cfgSelectType == 2){
if (cfgSelectType == 2) {
return track.tpcNSigmaKa();
} else {
return track.tpcNSigmaPi();
}
}

template<typename TrackType>
template <typename TrackType>
float getTofNSigma(const TrackType track)
{
if (cfgSelectType == 2){
if (cfgSelectType == 2) {
return track.tofNSigmaKa();
} else {
return track.tofNSigmaPi();
Expand All @@ -344,7 +342,6 @@ struct f0980pbpbanalysis {
histos.fill(HIST("QA/EPResAB"), centrality, std::cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefA)));
histos.fill(HIST("QA/EPResAC"), centrality, std::cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefB)));
histos.fill(HIST("QA/EPResBC"), centrality, std::cos(static_cast<float>(nmode) * (eventPlaneRefA - eventPlaneRefB)));


TLorentzVector pion1, pion2, pion2Rot, reco, recoRot;
for (const auto& trk1 : dTracks) {
Expand Down
Loading