Skip to content

Commit cb8087c

Browse files
authored
PWGEM/PhotonMeson: apply min pt cut to trackiu (#6684)
1 parent 0e593e3 commit cb8087c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ struct PhotonConversionBuilder {
8585
Configurable<float> maxTPCNsigmaEl{"maxTPCNsigmaEl", 4.0, "max. TPC n sigma for electron"};
8686
Configurable<float> dcanegtopv{"dcanegtopv", 0.1, "DCA Neg To PV"};
8787
Configurable<float> dcapostopv{"dcapostopv", 0.1, "DCA Pos To PV"};
88-
Configurable<float> min_pt_leg{"min_pt_leg", 0.04, "min pT for v0 legs at SV"};
88+
Configurable<float> min_pt_leg_at_sv{"min_pt_leg_at_sv", 0.0, "min pT for v0 legs at SV"}; // this is obsolete.
8989
Configurable<float> max_mean_its_cluster_size{"max_mean_its_cluster_size", 16.f, "max. <ITS cluster size> x cos(lambda) for ITSonly tracks"}; // this is to suppress random combination for V0s with ITSonly tracks. default 3 + 1 for skimming.
9090
Configurable<float> maxX{"maxX", 83.1, "max X for track IU"};
91+
Configurable<float> min_pt_trackiu{"min_pt_trackiu", 0.05, "min pT for trackiu"}; // this comes from online processing. pT of track seed is above 50 MeV/c in B = 0.5 T, 20 MeV/c in B = 0.2 T.
9192

9293
// v0 cuts
9394
Configurable<float> min_v0cospa_tpconly{"min_v0cospa_tpconly", 0.99, "min V0 CosPA to V0s with TPConly tracks"}; // double -> N.B. dcos(x)/dx = 0 at x=0)
@@ -103,7 +104,7 @@ struct PhotonConversionBuilder {
103104
Configurable<float> margin_z{"margin_z", 7.0, "margin for z cut in cm"};
104105
Configurable<float> max_alpha_ap{"max_alpha_ap", 0.95, "max alpha for AP cut"};
105106
Configurable<float> max_qt_ap{"max_qt_ap", 0.01, "max qT for AP cut"};
106-
Configurable<float> min_pt_v0{"min_pt_v0", 0.05, "min pT for v0 photons at PV"};
107+
Configurable<float> min_pt_v0{"min_pt_v0", 0.1, "min pT for v0 photons at PV"};
107108
Configurable<float> max_pt_v0_itsonly{"max_pt_v0_itsonly", 0.3, "max pT for v0 photons wth 2 ITSonly tracks at PV"};
108109
Configurable<float> max_eta_v0{"max_eta_v0", 0.9, "max eta for v0 photons at PV"};
109110
Configurable<float> kfMassConstrain{"kfMassConstrain", -1.f, "mass constrain for the KFParticle mother particle"};
@@ -357,6 +358,10 @@ struct PhotonConversionBuilder {
357358
return;
358359
}
359360

361+
if (pos.pt() < min_pt_trackiu || ele.pt() < min_pt_trackiu) {
362+
return;
363+
}
364+
360365
if (pos.globalIndex() == ele.globalIndex()) {
361366
return;
362367
}
@@ -537,7 +542,7 @@ struct PhotonConversionBuilder {
537542

538543
float pos_pt = RecoDecay::sqrtSumOfSquares(kfp_pos_DecayVtx.GetPx(), kfp_pos_DecayVtx.GetPy());
539544
float ele_pt = RecoDecay::sqrtSumOfSquares(kfp_ele_DecayVtx.GetPx(), kfp_ele_DecayVtx.GetPy());
540-
if (pos_pt < min_pt_leg || ele_pt < min_pt_leg) {
545+
if (pos_pt < min_pt_leg_at_sv || ele_pt < min_pt_leg_at_sv) {
541546
return;
542547
}
543548

0 commit comments

Comments
 (0)