Skip to content

Commit c5ec853

Browse files
committed
Add configurable track selection
1 parent 0f34544 commit c5ec853

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ struct TreeWriterTPCTOF {
395395
/// Configurables
396396
Configurable<float> nClNorm{"nClNorm", 152., "Number of cluster normalization. Run 2: 159, Run 3 152"};
397397
Configurable<int> applyEvSel{"applyEvSel", 2, "Flag to apply rapidity cut: 0 -> no event selection, 1 -> Run 2 event selection, 2 -> Run 3 event selection"};
398+
Configurable<int> applyTrkSel{"applyTrkSel", 1, "Flag to apply track selection: 0 -> no track selection, 1 -> track selection"};
398399
/// Proton
399400
Configurable<float> maxMomTPCOnlyPr{"maxMomTPCOnlyPr", 0.6, "Maximum momentum for TPC only cut proton"};
400401
Configurable<float> nSigmaTPCOnlyPr{"nSigmaTPCOnlyPr", 4., "number of sigma for TPC only cut proton"};
@@ -524,7 +525,7 @@ struct TreeWriterTPCTOF {
524525
for (auto const& trk : tracks) {
525526

526527
/// Check track selection
527-
if (!isTrackSelected(collision, trk)) {
528+
if (applyTrkSel == 1 && !isTrackSelected(collision, trk)) {
528529
continue;
529530
}
530531
/// Fill tree for protons

0 commit comments

Comments
 (0)