Skip to content

Commit e2d8b72

Browse files
authored
[PWGCF] add trigger histogran for FT0A-FT0C (#13397)
1 parent d0de9d7 commit e2d8b72

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ struct LongRangeDihadronCor {
279279
registry.add("Centrality_used", hCentTitle.c_str(), {HistType::kTH1D, {{100, 0, 100}}}); // histogram to see how many events are in the same and mixed event
280280
registry.add("zVtx", "zVtx", {HistType::kTH1D, {axisVertex}});
281281
registry.add("zVtx_used", "zVtx_used", {HistType::kTH1D, {axisVertex}});
282-
registry.add("Trig_hist_TPC_FT0A", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPtTrigger}}});
283-
registry.add("Trig_hist_TPC_FT0C", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPtTrigger}}});
284282
registry.add("FT0Amp", "", {HistType::kTH2F, {axisChID, axisFit}});
285283
registry.add("FT0AmpCorrect", "", {HistType::kTH2F, {axisChID, axisFit}});
286284
}
@@ -289,16 +287,19 @@ struct LongRangeDihadronCor {
289287
registry.add("deltaEta_deltaPhi_mixed_TPC_FT0A", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEtaTpcFt0a}});
290288
registry.add("Assoc_amp_same_TPC_FT0A", "", {HistType::kTH2D, {axisChannelFt0aAxis, axisAmplitudeFt0a}});
291289
registry.add("Assoc_amp_mixed_TPC_FT0A", "", {HistType::kTH2D, {axisChannelFt0aAxis, axisAmplitudeFt0a}});
290+
registry.add("Trig_hist_TPC_FT0A", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPtTrigger}}});
292291
}
293292
if (doprocessSameTpcFt0c) {
294293
registry.add("deltaEta_deltaPhi_same_TPC_FT0C", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEtaTpcFt0c}}); // check to see the delta eta and delta phi distribution
295294
registry.add("deltaEta_deltaPhi_mixed_TPC_FT0C", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEtaTpcFt0c}});
296295
registry.add("Assoc_amp_same_TPC_FT0C", "", {HistType::kTH2D, {axisChannelFt0aAxis, axisAmplitudeFt0a}});
297296
registry.add("Assoc_amp_mixed_TPC_FT0C", "", {HistType::kTH2D, {axisChannelFt0aAxis, axisAmplitudeFt0a}});
297+
registry.add("Trig_hist_TPC_FT0C", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPtTrigger}}});
298298
}
299299
if (doprocessSameFt0aFt0c) {
300300
registry.add("deltaEta_deltaPhi_same_FT0A_FT0C", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEtaFt0aFt0c}}); // check to see the delta eta and delta phi distribution
301301
registry.add("deltaEta_deltaPhi_mixed_FT0A_FT0C", "", {HistType::kTH2D, {axisDeltaPhi, axisDeltaEtaFt0aFt0c}});
302+
registry.add("Trig_hist_FT0A_FT0C", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPtTrigger}}});
302303
}
303304

304305
registry.add("eventcount", "bin", {HistType::kTH1F, {{4, 0, 4, "bin"}}}); // histogram to see how many events are in the same and mixed event
@@ -621,6 +622,10 @@ struct LongRangeDihadronCor {
621622
auto phiA = getPhiFT0(chanelAid, kFT0A);
622623
auto etaA = getEtaFT0(chanelAid, kFT0A);
623624

625+
if (system == SameEvent) {
626+
registry.fill(HIST("Trig_hist_FT0A_FT0C"), fSampleIndex, posZ, 0.5, eventWeight * amplA);
627+
}
628+
624629
for (std::size_t iChC = 0; iChC < channelCSize; iChC++) {
625630
int chanelCid = 0;
626631
float amplC = 0.;

0 commit comments

Comments
 (0)