Skip to content

Commit c7b30b4

Browse files
authored
[PWGCF] add configurable phimod cut function (#12822)
1 parent da00dac commit c7b30b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ struct FlowTask {
147147
O2_DEFINE_CONFIGURABLE(cfgRejectionTPCsectorOverlap, bool, false, "rejection for TPC sector overlap")
148148
O2_DEFINE_CONFIGURABLE(cfgMagnetField, std::string, "GLO/Config/GRPMagField", "CCDB path to Magnet field object")
149149
ConfigurableAxis axisPhiMod{"axisPhiMod", {100, 0, constants::math::PI / 9}, "fmod(#varphi,#pi/9)"};
150+
O2_DEFINE_CONFIGURABLE(cfgTPCPhiCutLowCutFunction, std::string, "0.1/x-0.005", "Function for TPC mod phi-pt cut");
151+
O2_DEFINE_CONFIGURABLE(cfgTPCPhiCutHighCutFunction, std::string, "0.1/x+0.01", "Function for TPC mod phi-pt cut");
152+
O2_DEFINE_CONFIGURABLE(cfgTPCPhiCutPtMin, float, 2.0f, "start point of phi-pt cut")
150153
TF1* fPhiCutLow = nullptr;
151154
TF1* fPhiCutHigh = nullptr;
152155
} cfgFuncParas;
@@ -512,8 +515,8 @@ struct FlowTask {
512515
}
513516

514517
if (cfgFuncParas.cfgShowTPCsectorOverlap) {
515-
cfgFuncParas.fPhiCutLow = new TF1("fPhiCutLow", "0.06/x+pi/18.0-0.06", 0, 100);
516-
cfgFuncParas.fPhiCutHigh = new TF1("fPhiCutHigh", "0.1/x+pi/18.0+0.06", 0, 100);
518+
cfgFuncParas.fPhiCutLow = new TF1("fPhiCutLow", cfgFuncParas.cfgTPCPhiCutLowCutFunction->c_str(), 0, 100);
519+
cfgFuncParas.fPhiCutHigh = new TF1("fPhiCutHigh", cfgFuncParas.cfgTPCPhiCutHighCutFunction->c_str(), 0, 100);
517520
}
518521

519522
if (cfgTrackDensityCorrUse) {
@@ -781,7 +784,7 @@ struct FlowTask {
781784
phimodn = fmod(phimodn, o2::constants::math::TwoPI / 9.0);
782785
registry.fill(HIST("pt_phi_bef"), track.pt(), phimodn);
783786
if (cfgFuncParas.cfgRejectionTPCsectorOverlap) {
784-
if (phimodn < cfgFuncParas.fPhiCutHigh->Eval(track.pt()) && phimodn > cfgFuncParas.fPhiCutLow->Eval(track.pt()))
787+
if (track.pt() >= cfgFuncParas.cfgTPCPhiCutPtMin && phimodn < cfgFuncParas.fPhiCutHigh->Eval(track.pt()) && phimodn > cfgFuncParas.fPhiCutLow->Eval(track.pt()))
785788
return false; // reject track
786789
}
787790
registry.fill(HIST("pt_phi_aft"), track.pt(), phimodn);

0 commit comments

Comments
 (0)