16#ifndef ALICEO2_GLOBTRACKING_MATCHTPCITS_QC_
17#define ALICEO2_GLOBTRACKING_MATCHTPCITS_QC_
22#include <TEfficiency.h>
30#include <unordered_map>
38namespace globaltracking
62 void setDataRequest(
const std::shared_ptr<o2::globaltracking::DataRequest>& dr) { mDataRequest = dr; }
135 template <
typename T>
140 publisher->startPublishing(mPtNum[
i]);
141 publisher->startPublishing(mPtDen[
i]);
142 publisher->startPublishing(mFractionITSTPCmatch[
i]);
144 publisher->startPublishing(mPtNum_noEta0[
i]);
145 publisher->startPublishing(mPtDen_noEta0[
i]);
146 publisher->startPublishing(mFractionITSTPCmatch_noEta0[
i]);
149 publisher->startPublishing(mPhiNum[
i]);
150 publisher->startPublishing(mPhiDen[
i]);
151 publisher->startPublishing(mFractionITSTPCmatchPhi[
i]);
153 publisher->startPublishing(mPhiVsPtNum[
i]);
154 publisher->startPublishing(mPhiVsPtDen[
i]);
155 publisher->startPublishing(mFractionITSTPCmatchPhiVsPt[
i]);
158 publisher->startPublishing(mEtaNum[
i]);
159 publisher->startPublishing(mEtaDen[
i]);
160 publisher->startPublishing(mFractionITSTPCmatchEta[
i]);
162 publisher->startPublishing(mEtaVsPtNum[
i]);
163 publisher->startPublishing(mEtaVsPtDen[
i]);
164 publisher->startPublishing(mFractionITSTPCmatchEtaVsPt[
i]);
167 publisher->startPublishing(mClsVsPtNum[
i]);
168 publisher->startPublishing(mClsVsPtDen[
i]);
169 publisher->startPublishing(mFractionITSTPCmatchClsVsPt[
i]);
172 publisher->startPublishing(mChi2VsPtNum[
i]);
173 publisher->startPublishing(mChi2VsPtDen[
i]);
174 publisher->startPublishing(mFractionITSTPCmatchChi2VsPt[
i]);
177 publisher->startPublishing(m1OverPtNum[
i]);
178 publisher->startPublishing(m1OverPtDen[
i]);
179 publisher->startPublishing(mFractionITSTPCmatch1OverPt[
i]);
182 for (
int j = 0;
j < o2::track::PID::NIDs; ++
j) {
184 publisher->startPublishing(mPtNumVsTrkPID[
i][
j]);
185 publisher->startPublishing(mPtDenVsTrkPID[
i][
j]);
186 publisher->startPublishing(mFractionITSTPCmatchPtVsTrkPID[
i][
j]);
189 publisher->startPublishing(mPhiNumVsTrkPID[
i][
j]);
190 publisher->startPublishing(mPhiDenVsTrkPID[
i][
j]);
191 publisher->startPublishing(mFractionITSTPCmatchPhiVsTrkPID[
i][
j]);
194 publisher->startPublishing(mEtaNumVsTrkPID[
i][
j]);
195 publisher->startPublishing(mEtaDenVsTrkPID[
i][
j]);
196 publisher->startPublishing(mFractionITSTPCmatchEtaVsTrkPID[
i][
j]);
201 publisher->startPublishing(mPhiPhysPrimNum[
i]);
202 publisher->startPublishing(mPhiPhysPrimDen[
i]);
203 publisher->startPublishing(mFractionITSTPCmatchPhiPhysPrim[
i]);
204 publisher->startPublishing(mPtPhysPrimNum[
i]);
205 publisher->startPublishing(mPtPhysPrimDen[
i]);
206 publisher->startPublishing(mFractionITSTPCmatchPhysPrim[
i]);
207 publisher->startPublishing(mEtaPhysPrimNum[
i]);
208 publisher->startPublishing(mEtaPhysPrimDen[
i]);
209 publisher->startPublishing(mFractionITSTPCmatchEtaPhysPrim[
i]);
210 publisher->startPublishing(m1OverPtPhysPrimNum[
i]);
211 publisher->startPublishing(m1OverPtPhysPrimDen[
i]);
212 publisher->startPublishing(mFractionITSTPCmatchPhysPrim1OverPt[
i]);
215 publisher->startPublishing(mChi2Matching);
216 publisher->startPublishing(mChi2Refit);
217 publisher->startPublishing(mTimeResVsPt);
218 publisher->startPublishing(mResidualPt);
219 publisher->startPublishing(mResidualPhi);
220 publisher->startPublishing(mResidualEta);
221 publisher->startPublishing(mDCAr);
222 publisher->startPublishing(mDCArVsPtNum);
223 publisher->startPublishing(mDCArVsPtDen);
224 publisher->startPublishing(mFractionITSTPCmatchDCArVsPt);
259 std::shared_ptr<o2::globaltracking::DataRequest> mDataRequest;
264 gsl::span<const o2::tpc::TrackTPC> mTPCTracks;
266 gsl::span<const o2::its::TrackITS> mITSTracks;
268 gsl::span<const o2::dataformats::TrackTPCITS> mITSTPCTracks;
270 bool mUseTrkPID =
false;
272 std::array<std::unordered_map<o2::MCCompLabel, LblInfo>,
matchType::SIZE> mMapLabels;
275 std::array<std::unordered_map<o2::MCCompLabel, LblInfo>,
matchType::SIZE> mMapRefLabels;
293 TEfficiency* mFractionITSTPCmatchPtVsTrkPID[
matchType::SIZE][track::PID::NIDs] = {};
307 TEfficiency* mFractionITSTPCmatchPhiVsTrkPID[
matchType::SIZE][track::PID::NIDs] = {};
329 TEfficiency* mFractionITSTPCmatchEtaVsTrkPID[
matchType::SIZE][track::PID::NIDs] = {};
331 TH2F* mResidualPt =
nullptr;
332 TH2F* mResidualPhi =
nullptr;
333 TH2F* mResidualEta =
nullptr;
335 TH1F* mChi2Matching =
nullptr;
336 TH1F* mChi2Refit =
nullptr;
337 TH2F* mTimeResVsPt =
nullptr;
338 TH1F* mDCAr =
nullptr;
339 TH2F* mDCArVsPtNum =
nullptr;
340 TH2F* mDCArVsPtDen =
nullptr;
341 TEfficiency* mFractionITSTPCmatchDCArVsPt =
nullptr;
348 TEfficiency* mFractionITSTPCmatchPhysPrim1OverPt[
matchType::SIZE] = {};
350 void setEfficiency(TEfficiency* eff, TH1* hnum, TH1* hden,
bool is2D =
false);
352 int mNTPCSelectedTracks = 0;
353 int mNITSSelectedTracks = 0;
358 float mPtITSCut = 0.f;
359 float mEtaITSCut = 1e10f;
360 int mMinNClustersITS = 0;
361 float mMaxChi2PerClusterITS{1e10f};
362 std::vector<std::pair<int8_t, std::set<uint8_t>>> mRequiredITSHits{};
364 float mPtTPCCut = 0.1f;
365 float mEtaTPCCut = 1.4f;
367 float mDCATPCCut = 100.f;
368 float mDCATPCCutY = 10.f;
371 float mPtMaxCut = 1e10f;
372 float mEtaCut = 1e10f;
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
Definition of the MCTrack class.
void setUseTrkPID(bool b)
TEfficiency * getFractionITSTPCmatchPhiVsPt(matchType m) const
TH1D * getHisto1OverPtNum(matchType m) const
TEfficiency * getFractionITSTPCmatchEta(matchType m) const
void setEtaITSCut(float v)
TH1F * getHistoChi2Refit() const
TH2F * getHistoResidualEta() const
TH1F * getHistoPhiNum(matchType m) const
void setEtaTPCCut(float v)
TEfficiency * getFractionITSTPCmatchNoEta0(matchType m) const
void publishHistograms(const std::shared_ptr< T > &publisher)
Publishes the histograms to the publisher e.g. the one provided by the QC task.
TH2F * getHistoDCArVsPtDen() const
TH1D * getHistoPtDen(matchType m) const
TH2F * getHistoResidualPt() const
TH2F * getHistoTimeResVsPt() const
TH1F * getHistoPhiDen(matchType m) const
TH2F * getHistoClsVsPtNum(matchType m) const
TH1D * getHistoPtDenNoEta0(matchType m) const
TH1D * getHisto1OverPtPhysPrimDen(matchType m) const
TH2F * getHistoEtaVsPtNum(matchType m) const
TEfficiency * getFractionITSTPCmatchPhysPrim(matchType m) const
TEfficiency * getFractionITSTPCmatchPhiPhysPrim(matchType m) const
TEfficiency * getFractionITSTPCmatchPhi(matchType m) const
void setSources(GID::mask_t src)
TH2F * getHistoClsVsPtDen(matchType m) const
TH2F * getHistoPhiVsPtNum(matchType m) const
TH1F * getHistoChi2Matching() const
void setMinNClustersITS(float v)
TH1D * getHisto1OverPtDen(matchType m) const
TH1F * getHistoPhiPhysPrimDen(matchType m) const
TH1F * getHistoEtaPhysPrimDen(matchType m) const
void setMinDCAtoBeamPipeDistanceCut(float v)
TH1D * getHistoPtNum(matchType m) const
TH1F * getHistoPtPhysPrimNum(matchType m) const
TEfficiency * getFractionITSTPCmatchChi2VsPt(matchType m) const
TH2F * getHistoChi2VsPtNum(matchType m) const
TEfficiency * getFractionITSTPCmatch1OverPt(matchType m) const
TEfficiency * getFractionITSTPCmatchEtaVsPt(matchType m) const
TH2F * getHistoDCArVsPtNum() const
TH2F * getHistoEtaVsPtDen(matchType m) const
TH1F * getHistoEtaNum(matchType m) const
TH1F * getHistoPtPhysPrimDen(matchType m) const
TH1F * getHistoEtaPhysPrimNum(matchType m) const
void setDataRequest(const std::shared_ptr< o2::globaltracking::DataRequest > &dr)
void setMinDCAtoBeamPipeCut(std::array< float, 2 > v)
TEfficiency * getFractionITSTPCmatchPhysPrim1OverPt(matchType m) const
TH2F * getHistoPhiVsPtDen(matchType m) const
TEfficiency * getFractionITSTPCmatchClsVsPt(matchType m) const
void setMaxChi2PerClusterITS(float v)
TH1D * getHistoPtNumNoEta0(matchType m) const
void getHistos(TObjArray &objar)
TH1D * getHisto1OverPtPhysPrimNum(matchType m) const
TH1F * getHistoDCAr() const
bool getUseTrkPID() const
void setMinPtTPCCut(float v)
void setMinPtITSCut(float v)
void setMaxPtCut(float v)
TH2F * getHistoChi2VsPtDen(matchType m) const
TEfficiency * getFractionITSTPCmatchDCArVsPt() const
void setMinDCAtoBeamPipeYCut(float v)
void setMinNTPCClustersCut(float v)
TH1F * getHistoEtaDen(matchType m) const
TEfficiency * getFractionITSTPCmatchEtaPhysPrim(matchType m) const
TEfficiency * getFractionITSTPCmatch(matchType m) const
TH2F * getHistoResidualPhi() const
TH1F * getHistoPhiPhysPrimNum(matchType m) const
void run(o2::framework::ProcessingContext &ctx)
GLboolean GLboolean GLboolean b
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...