Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Detectors/TRD/qc/include/TRDQC/Tracking.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ struct TrackQC {
int nLayers; //< Number of Layers of a Track in which the track extrapolation was in geometrical acceptance of the TRD
Comment thread
f3sch marked this conversation as resolved.
float chi2; ///< total chi2 value for the track
float reducedChi2; ///< chi2 total divided by number of layers in which track is inside TRD geometrical acceptance
float p; ///< the total momentum of the track at the point of the innermost ITS cluster (ITS-TPC-TRD) or at the inner TPC radius (TPC-TRD)
float pt; ///< the transverse momentum of the track at the point of the innermost ITS cluster (ITS-TPC-TRD) or at the inner TPC radius (TPC-TRD)
float ptSigma2; //< Sigma2 of pt
track::PID pid; //< assigned particle id from TPC
float dEdxTotTPC; //< raw total dEdx information for seeding track in TPC

// layer-wise information for seeding track and assigned tracklet (if available)
std::array<float, constants::NLAYER> findable{}; ///< flag if track was in geometrical acceptance
Expand Down
3 changes: 2 additions & 1 deletion Detectors/TRD/qc/src/Tracking.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ void Tracking::checkTrack(const TrackTRD& trkTrd, bool isTPCTRD)
qcStruct.nLayers = trkTrd.getNlayersFindable();
qcStruct.chi2 = trkTrd.getChi2();
qcStruct.reducedChi2 = trkTrd.getReducedChi2();
qcStruct.p = trkTrd.getP();
qcStruct.pt = trkTrd.getPt();
qcStruct.ptSigma2 = trkTrd.getSigma1Pt2();
qcStruct.pid = trkTrd.getPID();

LOGF(debug, "Got track with %i tracklets and ID %i", trkTrd.getNtracklets(), trkTrd.getRefGlobalTrackId());
const auto& trkSeed = isTPCTRD ? mTracksTPC[trkTrd.getRefGlobalTrackId()].getParamOut() : mTracksITSTPC[trkTrd.getRefGlobalTrackId()].getParamOut();
qcStruct.dEdxTotTPC = isTPCTRD ? mTracksTPC[trkTrd.getRefGlobalTrackId()].getdEdx().dEdxTotTPC : mTracksTPC[mTracksITSTPC[trkTrd.getRefGlobalTrackId()].getRefTPC()].getdEdx().dEdxTotTPC;
auto trk = trkSeed;
for (int iLayer = 0; iLayer < NLAYER; ++iLayer) {
qcStruct.findable[iLayer] = trkTrd.getIsFindable(iLayer);
Expand Down