Skip to content

Commit 240812f

Browse files
committed
add TPC chi2 to trackstudy output
1 parent ea6e536 commit 240812f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Detectors/GlobalTrackingWorkflow/study/include/GlobalTrackingStudy/TrackInfoExt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct TrackInfoExt {
3535
float ttime = 0;
3636
float ttimeE = 0;
3737
float xmin = 0;
38+
float chi2TPC = 0.f;
3839
float chi2ITSTPC = 0.f;
3940
float q2ptITS = 0.f;
4041
float q2ptTPC = 0.f;
@@ -56,7 +57,7 @@ struct TrackInfoExt {
5657
float getTPCInY0() const { return innerTPCPos0[1]; }
5758
float getTPCInZ0() const { return innerTPCPos0[2]; }
5859

59-
ClassDefNV(TrackInfoExt, 5);
60+
ClassDefNV(TrackInfoExt, 6);
6061
};
6162

6263
} // namespace dataformats

Detectors/GlobalTrackingWorkflow/study/src/TrackingStudy.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ void TrackingStudySpec::process(o2::globaltracking::RecoContainer& recoData)
503503
}
504504
}
505505
fillTPCClInfo(*tpcTr, trcExt, tsuse);
506+
trcExt.chi2TPC = tpcTr->getChi2();
506507
}
507508
auto gidRefs = recoData.getSingleDetectorRefs(vid);
508509
if (gidRefs[GTrackID::ITS].isIndexSet()) {

0 commit comments

Comments
 (0)