Skip to content
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
15 changes: 12 additions & 3 deletions PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@
histos.add("hInteractionRate", "hInteractionRate", kTH1F, {axisIRBinning});
histos.add("hCentralityVsInteractionRate", "hCentralityVsInteractionRate", kTH2F, {{101, 0.0f, 101.0f}, axisIRBinning});

histos.add("hInteractionRateVsOccupancy", "hInteractionRateVsOccupancy", kTH2F, {axisIRBinning, axisOccupancy});

// for QA and test purposes
auto hRawCentrality = histos.add<TH1>("hRawCentrality", "hRawCentrality", kTH1F, {axisRawCentrality});

Expand Down Expand Up @@ -839,29 +841,29 @@
bitset(bitMap, selNegGoodTPCTrack);

// TPC PID
if (fabs(posTrackExtra.tpcNSigmaPi()) < v0Selections.TpcPidNsigmaCut)

Check warning on line 844 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTPCPIDPositivePion);
if (fabs(posTrackExtra.tpcNSigmaPr()) < v0Selections.TpcPidNsigmaCut)

Check warning on line 846 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTPCPIDPositiveProton);
if (fabs(negTrackExtra.tpcNSigmaPi()) < v0Selections.TpcPidNsigmaCut)

Check warning on line 848 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTPCPIDNegativePion);
if (fabs(negTrackExtra.tpcNSigmaPr()) < v0Selections.TpcPidNsigmaCut)

Check warning on line 850 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTPCPIDNegativeProton);

// TOF PID in DeltaT
// Positive track
if (fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)

Check warning on line 855 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTPositiveProtonLambda);
if (fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)

Check warning on line 857 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTPositivePionLambda);
if (fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)

Check warning on line 859 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTPositivePionK0Short);
// Negative track
if (fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)

Check warning on line 862 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTNegativeProtonLambda);
if (fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)

Check warning on line 864 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTNegativePionLambda);
if (fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)

Check warning on line 866 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bitset(bitMap, selTOFDeltaTNegativePionK0Short);

// TOF PID in NSigma
Expand Down Expand Up @@ -1593,7 +1595,8 @@
histos.fill(HIST("hEventSelection"), 17 /* Above max occupancy */);
}

double interactionRate = rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3;
// Fetch interaction rate only if required (in order to limit ccdb calls)
double interactionRate = (eventSelections.minIR >= 0 || eventSelections.maxIR >= 0) ? rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3 : -1;
if (eventSelections.minIR >= 0 && interactionRate < eventSelections.minIR) {
return false;
}
Expand Down Expand Up @@ -1721,7 +1724,8 @@
centrality = hRawCentrality->GetBinContent(hRawCentrality->FindBin(doPPAnalysis ? collision.multFT0A() + collision.multFT0C() : collision.multFT0C()));
}
float collisionOccupancy = eventSelections.useFT0CbasedOccupancy ? collision.ft0cOccupancyInTimeRange() : collision.trackOccupancyInTimeRange();
double interactionRate = rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3;
// Fetch interaction rate only if required (in order to limit ccdb calls)
double interactionRate = !irSource.value.empty() ? rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3 : -1;

// gap side
int gapSide = collision.gapSide();
Expand All @@ -1748,6 +1752,8 @@
histos.fill(HIST("hInteractionRate"), interactionRate);
histos.fill(HIST("hCentralityVsInteractionRate"), centrality, interactionRate);

histos.fill(HIST("hInteractionRateVsOccupancy"), interactionRate, collisionOccupancy);

// __________________________________________
// perform main analysis
int nK0Shorts = 0;
Expand Down Expand Up @@ -1805,7 +1811,8 @@
centrality = hRawCentrality->GetBinContent(hRawCentrality->FindBin(doPPAnalysis ? collision.multFT0A() + collision.multFT0C() : collision.multFT0C()));
}
float collisionOccupancy = eventSelections.useFT0CbasedOccupancy ? collision.ft0cOccupancyInTimeRange() : collision.trackOccupancyInTimeRange();
double interactionRate = rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3;
// Fetch interaction rate only if required (in order to limit ccdb calls)
double interactionRate = !irSource.value.empty() ? rateFetcher.fetch(ccdb.service, collision.timestamp(), collision.runNumber(), irSource) * 1.e-3 : -1;

// gap side
int gapSide = collision.gapSide();
Expand All @@ -1832,6 +1839,8 @@
histos.fill(HIST("hInteractionRate"), interactionRate);
histos.fill(HIST("hCentralityVsInteractionRate"), centrality, interactionRate);

histos.fill(HIST("hInteractionRateVsOccupancy"), interactionRate, collisionOccupancy);

// __________________________________________
// perform main analysis
int nK0Shorts = 0;
Expand Down
Loading