Skip to content

Commit 8ceaa69

Browse files
committed
Add configurable for pt-pt correlation event weight
1 parent 6553b66 commit 8ceaa69

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ struct FlowGenericFramework {
132132
O2_DEFINE_CONFIGURABLE(cfgUsePID, bool, true, "Enable PID information")
133133
O2_DEFINE_CONFIGURABLE(cfgUseGapMethod, bool, false, "Use gap method in vn-pt calculations")
134134
struct : ConfigurableGroup {
135-
O2_DEFINE_CONFIGURABLE(cfgUseMultiplicityFlowWeights, bool, true, "Enable or disable the use of multiplicity-based event weighting");
135+
O2_DEFINE_CONFIGURABLE(cfgUsePtCorrWeights, bool, true, "Enable or disable the use of multiplicity-based event weighting for pt-pt correlations");
136+
O2_DEFINE_CONFIGURABLE(cfgUseMultiplicityFlowWeights, bool, true, "Enable or disable the use of multiplicity-based event weighting for azimuthal correlations");
136137
O2_DEFINE_CONFIGURABLE(cfgUseMultiplicityFractionWeights, bool, false, "Enable or disable the use of multiplicity-based event weighting for the spectral fraction");
137138
} cfgEventWeight;
138139
struct : ConfigurableGroup{
@@ -741,7 +742,7 @@ struct FlowGenericFramework {
741742
registryQA.add("K0/PiMinusTOF_K0", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTOF}}});
742743
registryQA.add("K0/hK0Phi", "", {HistType::kTH1D, {phiAxis}});
743744
registryQA.add("K0/hK0EtaY", "", {HistType::kTH2D, {etaAxis, yAxis}});
744-
registryQA.add("K0/hK0AP", "", {HistType::kTH2D, {{100, -1, 1}, {500, 0, 1.}}});
745+
registryQA.add("K0/hK0AP", "", {HistType::kTH2D, {{100, -1, 1}, {250, 0, 0.5}}});
745746
registryQA.add("K0/hK0Mass_sparse", "", {HistType::kTHnSparseF, {{axisK0Mass, ptAxis, nchAxis}}});
746747
registryQA.add("K0/hK0s", "", {HistType::kTH1D, {singleCount}});
747748
registryQA.add("K0/hK0s_corrected", "", {HistType::kTH1D, {singleCount}});
@@ -771,15 +772,15 @@ struct FlowGenericFramework {
771772
registryQA.add("Lambda/PiMinusTOF_L", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTOF}}});
772773
registryQA.add("Lambda/hLambdaPhi", "", {HistType::kTH1D, {phiAxis}});
773774
registryQA.add("Lambda/hLambdaEtaY", "", {HistType::kTH2D, {etaAxis, yAxis}});
774-
registryQA.add("Lambda/hLambdaAP", "", {HistType::kTH2D, {{100, -1, 1}, {100, 0, 5.}}});
775+
registryQA.add("Lambda/hLambdaAP", "", {HistType::kTH2D, {{100, -1, 1}, {250, 0, 0.5}}});
775776
registryQA.add("Lambda/hLambdaMass_sparse", "", {HistType::kTHnSparseF, {{axisLambdaMass, ptAxis, nchAxis}}});
776777
registryQA.add("Lambda/PiPlusTPC_AL", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTPC}}});
777778
registryQA.add("Lambda/PrMinusTPC_AL", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTPC}}});
778779
registryQA.add("Lambda/PiPlusTOF_AL", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTOF}}});
779780
registryQA.add("Lambda/PrMinusTOF_AL", "", {HistType::kTH2D, {{ptAxis, axisNsigmaTOF}}});
780781
registryQA.add("Lambda/hAntiLambdaPhi", "", {HistType::kTH1D, {phiAxis}});
781782
registryQA.add("Lambda/hAntiLambdaEtaY", "", {HistType::kTH2D, {etaAxis, yAxis}});
782-
registryQA.add("Lambda/hAntiLambdaAP", "", {HistType::kTH2D, {{100, -1, 1}, {100, 0, 5.}}});
783+
registryQA.add("Lambda/hAntiLambdaAP", "", {HistType::kTH2D, {{100, -1, 1}, {250, 0, 0.5}}});
783784
registryQA.add("Lambda/hAntiLambdaMass_sparse", "", {HistType::kTHnSparseF, {{axisLambdaMass, ptAxis, nchAxis}}});
784785
registryQA.add("Lambda/hLambdas", "", {HistType::kTH1D, {singleCount}});
785786
registryQA.add("Lambda/hLambdas_corrected", "", {HistType::kTH1D, {singleCount}});
@@ -884,7 +885,7 @@ struct FlowGenericFramework {
884885
fFCgen->Initialize(oba, multAxis, cfgNbootstrap);
885886
}
886887
delete oba;
887-
888+
fFCpt->setEventWeight(cfgEventWeight.cfgUsePtCorrWeights ? eventweight::TupleWeight : eventweight::UnityWeight);
888889
fFCpt->setUseCentralMoments(cfgUseCentralMoments);
889890
fFCpt->setUseGapMethod(cfgUseGapMethod);
890891
fFCpt->initialise(multAxis, cfgMpar, gfwMemberCache.configs, cfgNbootstrap);

0 commit comments

Comments
 (0)