Skip to content

Commit 5701a53

Browse files
committed
PWGEM/PhotonMeson: add an option to require ITS hit to V0 legs
1 parent f26d142 commit 5701a53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ struct PhotonConversionBuilder {
9292
Configurable<bool> moveTPCTracks{"moveTPCTracks", true, "Move TPC-only tracks under the collision assumption"};
9393
Configurable<bool> disableITSonlyTracks{"disableITSonlyTracks", false, "disable ITSonly tracks in V0 legs"};
9494
Configurable<bool> disableTPConlyTracks{"disableTPConlyTracks", false, "disable TPConly tracks in V0 legs"};
95+
Configurable<bool> requireITShit{"requireITShit", false, "require ITS hit to V0 legs"};
9596

9697
Configurable<float> maxchi2tpc{"maxchi2tpc", 5.0, "max chi2/NclsTPC"}; // default 4.0 + 1.0
9798
Configurable<float> maxchi2its{"maxchi2its", 6.0, "max chi2/NclsITS"}; // default 5.0 + 1.0
@@ -280,6 +281,10 @@ struct PhotonConversionBuilder {
280281
return false;
281282
}
282283

284+
if (requireITShit && !track.hasITS()) {
285+
return false;
286+
}
287+
283288
if (track.x() > maxX) {
284289
return false;
285290
}

0 commit comments

Comments
 (0)