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

[PWGCF] Added the full TOF NSigma distribution to the Track QA #8945

Merged
merged 3 commits into from
Dec 11, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@
using MyFilteredV0s = soa::Filtered<aod::V0Datas>;
using MyFilteredTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection,
aod::pidTPCPi, aod::pidTPCKa, aod::pidTPCPr,
aod::pidTOFPi, aod::pidTOFKa, aod::pidTOFPr, aod::pidTOFbeta>>;
aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr, aod::pidTOFbeta>>;

// Table aliases - MC
using MyFilteredMCGenCollision = soa::Filtered<aod::McCollisions>::iterator;
@@ -82,8 +82,8 @@
Configurable<bool> ConfFilterSwitch{"ConfFilterSwitch", false, "Switch for the FakeV0Filter function"};

// Particle masses
Double_t massLambda = o2::constants::physics::MassLambda0;

Check warning on line 85 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
Double_t DGaussSigma = 0.0021;

Check warning on line 86 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.

// Efficiency histograms
TH1D** hEffPions = new TH1D*[2];
@@ -91,11 +91,11 @@
TH1D** hEffProtons = new TH1D*[2];

// Correlation variables
Int_t T_Sign;

Check warning on line 94 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
Double_t CandMass;

Check warning on line 95 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
Double_t* A_PID;

Check warning on line 96 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.

Double_t DeltaPhi, DeltaEta;

Check warning on line 98 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.

//================================================================================================================================================================================================================

@@ -130,6 +130,10 @@
QARegistry.add("hNSigmaKaon", "hNSigmaKaon", {HistType::kTH2D, {{201, -5.025, 5.025}, {201, -5.025, 5.025}}});
QARegistry.add("hNSigmaProton", "hNSigmaProton", {HistType::kTH2D, {{201, -5.025, 5.025}, {201, -5.025, 5.025}}});

QARegistry.add("hTOFPion", "hTOFPion", {HistType::kTH2D, {{TrackPtAxis}, {1000, -50, 50}}});
QARegistry.add("hTOFKaon", "hTOFKaon", {HistType::kTH2D, {{TrackPtAxis}, {1000, -50, 50}}});
QARegistry.add("hTOFProton", "hTOFProton", {HistType::kTH2D, {{TrackPtAxis}, {1000, -50, 50}}});

QARegistry.add("hInvMassLambda", "hInvMassLambda", {HistType::kTH3D, {{LambdaInvMassAxis}, {V0PtAxis}, {CentralityAxis}}});
QARegistry.add("hInvMassAntiLambda", "hInvMassAntiLambda", {HistType::kTH3D, {{LambdaInvMassAxis}, {V0PtAxis}, {CentralityAxis}}});

@@ -199,6 +203,12 @@

// Start of the Track QA
for (const auto& track : tracks) {
if (track.hasTOF()) {
QARegistry.fill(HIST("hTOFPion"), track.pt(), track.tofNSigmaPi());
QARegistry.fill(HIST("hTOFKaon"), track.pt(), track.tofNSigmaKa());
QARegistry.fill(HIST("hTOFProton"), track.pt(), track.tofNSigmaPr());
}

A_PID = TrackPID(track);
if (A_PID[1] < 4.0) {
QARegistry.fill(HIST("hTrackPt"), track.pt());
@@ -424,7 +434,7 @@

//================================================================================================================================================================================================================

Double_t DeltaPhiShift(Double_t TriggerPhi, Double_t AssociatePhi)

Check warning on line 437 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
{

Double_t dPhi = TriggerPhi - AssociatePhi;
@@ -481,9 +491,9 @@
NSigmaTOF[2] = Track.tofNSigmaPr();
}

NSigma[0] = TMath::Sqrt(pow(NSigmaTPC[0], 2) + pow(NSigmaTOF[0], 2));

Check warning on line 494 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
NSigma[1] = TMath::Sqrt(pow(NSigmaTPC[1], 2) + pow(NSigmaTOF[1], 2));

Check warning on line 495 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
NSigma[2] = TMath::Sqrt(pow(NSigmaTPC[2], 2) + pow(NSigmaTOF[2], 2));

Check warning on line 496 in PWGCF/MultiparticleCorrelations/Tasks/ThreeParticleCorrelations.cxx

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (NSigma[0] <= std::min(NSigma[1], NSigma[2])) { // Pions
ID[0] = 0.0;