Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PWGLF] Please consider the following formatting changes to #9183 #1

Closed
wants to merge 1 commit into from
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
36 changes: 16 additions & 20 deletions PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -241,20 +241,20 @@ struct f0980pbpbanalysis {
template <typename TrackType>
bool PIDSelected(const TrackType track)
{
if(SelectType == 0) {
if (SelectType == 0) {
if (cfgUSETOF) {
if (std::fabs(track.tofNSigmaPi()) > cMaxTOFnSigmaPion) {
return 0;
}
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPion) {
return 0;
}
}
}
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPionS) {
return 0;
return 0;
}
}
if(SelectType == 1) {
if (SelectType == 1) {
if (cfgUSETOF) {
if (track.hasTOF()) {
if (std::fabs(track.tofNSigmaPi()) > cMaxTOFnSigmaPion) {
Expand All @@ -263,16 +263,14 @@ struct f0980pbpbanalysis {
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPion) {
return 0;
}
}
else {
} else {
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPionS) {
return 0;
}
}
}
else {
} else {
if (std::fabs(track.tpcNSigmaPi()) > cMaxTPCnSigmaPionS) {
return 0;
return 0;
}
}
}
Expand All @@ -298,28 +296,28 @@ struct f0980pbpbanalysis {
histos.fill(HIST("QA/EPResBC"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneRefA - eventPlaneRefB)));

TLorentzVector Pion1, Pion2, Reco;
for (auto& trk1: dTracks) {
for (auto& trk1 : dTracks) {
if (!trackSelected(trk1))
continue;
histos.fill(HIST("QA/Nsigma_TPC"), trk1.pt(), trk1.tpcNSigmaPi());
histos.fill(HIST("QA/Nsigma_TOF"), trk1.pt(), trk1.tofNSigmaPi());
histos.fill(HIST("QA/TPC_TOF"), trk1.tpcNSigmaPi(), trk1.tofNSigmaPi());
// continue;

// int nTotal = 0;
// int nTrackSelected = 0;
// int nPIDSelected = 0;
// int nSelected = 0;

for (auto& trk2: dTracks) {
for (auto& trk2 : dTracks) {
// nTotal++;
if (!trackSelected(trk1) || !trackSelected(trk2)){
if (!trackSelected(trk1) || !trackSelected(trk2)) {
continue;
}
// nTrackSelected++;

//PID
if (!PIDSelected(trk1) || !PIDSelected(trk2)){
// PID
if (!PIDSelected(trk1) || !PIDSelected(trk2)) {
continue;
}
// nPIDSelected++;
Expand All @@ -335,19 +333,17 @@ struct f0980pbpbanalysis {
Pion2.SetXYZM(trk2.px(), trk2.py(), trk2.pz(), massPi);
Reco = Pion1 + Pion2;

if (Reco.Rapidity() > cfgMaxRap || Reco.Rapidity() < cfgMinRap){
if (Reco.Rapidity() > cfgMaxRap || Reco.Rapidity() < cfgMinRap) {
continue;
}

relPhi = TVector2::Phi_0_2pi((Reco.Phi() - eventPlaneDet) * static_cast<float>(nmode));

if (trk1.sign() * trk2.sign() < 0) {
histos.fill(HIST("hInvMass_f0980_US_EPA"), Reco.M(), Reco.Pt(), centrality, relPhi);
}
else if (trk1.sign() > 0 && trk2.sign() > 0) {
} else if (trk1.sign() > 0 && trk2.sign() > 0) {
histos.fill(HIST("hInvMass_f0980_LSpp_EPA"), Reco.M(), Reco.Pt(), centrality, relPhi);
}
else if (trk1.sign() < 0 && trk2.sign() < 0) {
} else if (trk1.sign() < 0 && trk2.sign() < 0) {
histos.fill(HIST("hInvMass_f0980_LSmm_EPA"), Reco.M(), Reco.Pt(), centrality, relPhi);
}
// std::cout << "trk1: " << trk1.index() << std::endl;
Expand Down
Loading