Skip to content

Commit 594b8a3

Browse files
authored
Add files via upload
1 parent b2b09f4 commit 594b8a3

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

‎PWGCF/TwoParticleCorrelations/Tasks/pidDiHadronWithCasc.cxx‎

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ struct PidDiHadronWithCasc {
373373
UseOccupancy,
374374
UseMultCorrCut,
375375
UseT0AV0ACut,
376+
UseHasCascCut,
376377
NumEventCuts
377378
};
378379
enum TrackCuts {
@@ -499,9 +500,15 @@ struct PidDiHadronWithCasc {
499500
axisEventClass = {axisCentForCorr, "Centrality"};
500501
}
501502

503+
o2::framework::AxisSpec axisMult = axisMultMix;
504+
o2::framework::AxisSpec axisVtx = axisVtxMix;
505+
int nMultBins = axisMult.binEdges.size() - 1;
506+
int nVtxBins = axisVtx.binEdges.size() - 1;
507+
validCollisions.resize(nMultBins * nVtxBins);
508+
502509
// Event Counter
503510
if ((doprocessSame || doprocessSameReso || doprocessMCPID) && cfgEvSel.cfgUseAdditionalEventCut) {
504-
histos.add("hEventCount", "Number of Events;; Count", {HistType::kTH1D, {{15, -0.5, 14.5}}});
511+
histos.add("hEventCount", "Number of Events;; Count", {HistType::kTH1D, {{16, -0.5, 15.5}}});
505512
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(FilteredEvents + 1, "Filtered events");
506513
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(AfterSel8 + 1, "After sel8");
507514
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(UseNoTimeFrameBorder + 1, "kNoTimeFrameBorder");
@@ -516,6 +523,7 @@ struct PidDiHadronWithCasc {
516523
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(UseOccupancy + 1, "Occupancy Cut");
517524
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(UseMultCorrCut + 1, "MultCorrelation Cut");
518525
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(UseT0AV0ACut + 1, "T0AV0A cut");
526+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(UseHasCascCut + 1, "Cascades Event cut");
519527
}
520528

521529
if (cfgPIDConfigs.cfgPIDUseReso && cfgPIDConfigs.cfgPIDParticle == UseK0) { // For K0
@@ -632,6 +640,9 @@ struct PidDiHadronWithCasc {
632640
histos.add("zVtx", "zVtx", {HistType::kTH1D, {axisVertex}});
633641
histos.add("deltaEta_deltaPhi_same", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEta}}); // check to see the delta eta and delta phi distribution
634642
}
643+
if (doprocessMixedBuffer) {
644+
histos.add("EventPoolMixed", "", {HistType::kTH2D, {axisMultMix, axisVtxMix}});
645+
}
635646

636647
if (doprocessSame) {
637648
if (cfgGeneral.cfgQABasic) {
@@ -686,7 +697,7 @@ struct PidDiHadronWithCasc {
686697
}
687698
}
688699

689-
if (doprocessMixed || doprocessMixedReso || doprocessMixedMC) {
700+
if (doprocessMixed || doprocessMixedReso || doprocessMixedMC || doprocessMixedBuffer) {
690701
histos.add("deltaEta_deltaPhi_mixed", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEta}});
691702
}
692703

@@ -1969,6 +1980,9 @@ struct PidDiHadronWithCasc {
19691980
if (cfgEvSel.cfgEvSelIsSideband.value && !haveCascSideband) {
19701981
return;
19711982
}
1983+
if (cfgEvSel.cfgUseAdditionalEventCut) {
1984+
histos.fill(HIST("hEventCount"), UseHasCascCut);
1985+
}
19721986
}
19731987

19741988
loadCorrection(bc.timestamp());
@@ -2081,7 +2095,7 @@ struct PidDiHadronWithCasc {
20812095
PROCESS_SWITCH(PidDiHadronWithCasc, processMixed, "Process mixed events", true);
20822096

20832097
// the process for filling the mixed events by buffer
2084-
void processMixedBuffer(FilteredCollisions::iterator const& collision, FilteredTracks const& tracks, aod::CascDatas const& cascades, DaughterTracks const&)
2098+
void processMixedBuffer(FilteredCollisions::iterator const& collision, FilteredTracks const& tracks, aod::CascDatas const& cascades, aod::BCsWithTimestamps const&, DaughterTracks const&)
20852099
{
20862100
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
20872101
ValidCollision currentCollision;
@@ -2092,10 +2106,10 @@ struct PidDiHadronWithCasc {
20922106
currentCollision.pvz = collision.posZ();
20932107
currentCollision.mult = tracks.size();
20942108

2095-
nBinsMult = histos.get<TH1>(HIST("Nch"))->GetNbinsX();
2096-
binMult = histos.get<TH1>(HIST("Nch"))->GetXaxis()->FindBin(tracks.size()) - 1;
2097-
nBinsVtxZ = histos.get<TH1>(HIST("zVtx"))->GetNbinsX();
2098-
binVtxZ = histos.get<TH1>(HIST("zVtx"))->GetXaxis()->FindBin(collision.posZ()) - 1;
2109+
nBinsMult = histos.get<TH2>(HIST("EventPoolMixed"))->GetNbinsX();
2110+
binMult = histos.get<TH2>(HIST("EventPoolMixed"))->GetXaxis()->FindBin(tracks.size()) - 1;
2111+
nBinsVtxZ = histos.get<TH2>(HIST("EventPoolMixed"))->GetNbinsY();
2112+
binVtxZ = histos.get<TH2>(HIST("EventPoolMixed"))->GetYaxis()->FindBin(collision.posZ()) - 1;
20992113
if (binVtxZ < 0 || binVtxZ > nBinsVtxZ - 1 || binMult < 0 || binMult > nBinsMult - 1) {
21002114
return;
21012115
}
@@ -2678,6 +2692,9 @@ struct PidDiHadronWithCasc {
26782692
if (cfgEvSel.cfgEvSelIsSideband.value && !haveCascSideband) {
26792693
return;
26802694
}
2695+
if (cfgEvSel.cfgUseAdditionalEventCut) {
2696+
histos.fill(HIST("hEventCount"), UseHasCascCut);
2697+
}
26812698
}
26822699

26832700
// loop over all tracks

0 commit comments

Comments
 (0)