Skip to content

Commit 8775401

Browse files
authored
Update stradautracksextraconverter2.cxx
1 parent 51e07a2 commit 8775401

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ struct stradautracksextraconverter2 {
2424
void process(aod::DauTrackExtras_001 const& dauTrackExtras_001)
2525
{
2626
for (auto& values : dauTrackExtras_001) {
27+
const int maxFindable = 130; //synthetic findable to ensure range is ok
28+
int findableMinusFound = maxFindable-values.tpcClusters();
29+
int findableMinusCrossedRows = maxFindable-values.tpcCrossedRows();
2730
dauTrackExtras_002(values.itsChi2PerNcl(),
2831
values.detectorMap(),
2932
values.itsClusterSizes(),
30-
static_cast<uint8_t>(0), // findable (unknown in old format)
31-
-values.tpcClusters(), // findable minus found: we know found
32-
-values.tpcCrossedRows()); // findable minus crossed rows: we know crossed rows
33+
static_cast<uint8_t>(maxFindable), // findable (unknown in old format)
34+
static_cast<int8_t>(findableMinusFound), // findable minus found: we know found
35+
static_cast<int8_t>(findableMinusCrossedRows)); // findable minus crossed rows: we know crossed rows
3336
}
3437
}
3538
};

0 commit comments

Comments
 (0)