15#ifndef GPUTPCTRACKPARAM_H
16#define GPUTPCTRACKPARAM_H
24class GPUTPCTrackLinearisation;
44 GPUd()
float X()
const {
return mParam.X(); }
47 GPUd()
float SinPhi()
const {
return mParam.SinPhi(); }
50 GPUd()
float ZOffset()
const {
return mParam.ZOffset(); }
51 GPUd()
float SignCosPhi()
const {
return mSignCosPhi; }
55 GPUd()
float Err2Y()
const {
return mParam.Err2Y(); }
56 GPUd()
float Err2Z()
const {
return mParam.Err2Z(); }
57 GPUd()
float Err2SinPhi()
const {
return mParam.Err2SinPhi(); }
58 GPUd()
float Err2DzDs()
const {
return mParam.Err2DzDs(); }
59 GPUd()
float Err2QPt()
const {
return mParam.Err2QPt(); }
64 GPUd()
float GetSinPhi()
const {
return mParam.GetSinPhi(); }
65 GPUd()
float GetDzDs()
const {
return mParam.GetDzDs(); }
66 GPUd()
float GetQPt()
const {
return mParam.GetQPt(); }
67 GPUd()
float GetSignCosPhi()
const {
return mSignCosPhi; }
72 GPUd()
float GetCosPhi()
const {
return mSignCosPhi * CAMath::Sqrt(1 - SinPhi() * SinPhi()); }
74 GPUhd()
const float* Par()
const {
return mParam.Par(); }
75 GPUhd()
const float* Cov()
const {
return mParam.Cov(); }
77 GPUd()
const float* GetPar()
const {
return mParam.GetPar(); }
90 GPUd()
void SetZOffset(
float v) { mParam.SetZOffset(
v); }
91 GPUd()
void SetSignCosPhi(
float v) { mSignCosPhi =
v >= 0 ? 1 : -1; }
103 GPUd()
bool TransportToXWithMaterial(
float x,
float Bz,
float maxSinPhi = constants::MAX_SIN_PHI);
113 GPUd() static
float ApproximateBetheBloch(
float beta2);
114 GPUd() static
float BetheBlochGeant(
float bg,
float kp0 = 2.33
f,
float kp1 = 0.20
f,
float kp2 = 3.00
f,
float kp3 = 173
e-9
f,
float kp4 = 0.49848
f);
115 GPUd() static
float BetheBlochSolid(
float bg);
116 GPUd() static
float BetheBlochGas(
float bg);
131 GPUdi()
void ConstrainSinPhi(
float limit = constants::MAX_SIN_PHI)
133 if (GetSinPhi() > limit) {
135 }
else if (GetSinPhi() < -limit) {
156GPUdi()
void GPUTPCTrackParam::InitParam()
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
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 false
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
configStandalone Reconstruction rec_tpc float
float float float float & py
GPUhd() const float *Cov() const
float float float float float & pz
GPUd() const GPUTPCBaseTrackParam &GetParam() const
GPUd() float GetCov(int32_t i) const
GPUd() float Err2DzDs() const
GPUhd() const float *Par() const
float float float float kp3
GPUd() float Err2Y() const
GPUd() float GetZ() const
GPUd() float Chi2() const
GPUd() void SetParam(const GPUTPCBaseTrackParam &v)
float float float float bz
GPUd() void SetZOffset(float v)
GPUd() void SetX(float v)
GPUhd() void SetCov(int32_t i
float float float float float kp4
GPUd() float GetY() const
GPUd() void SetSinPhi(float v)
GPUd() float DzDs() const
GPUd() int32_t NDF() const
GPUd() void SetChi2(float v)
GPUdi() void ConstrainSinPhi(float limit
GPUd() float GetKappa(float Bz) const
float float float float float defaultZOffsetOverR
GPUd() void SetQPt(float v)
GPUd() float SignCosPhi() const
GPUd() const float *GetPar() const
GPUd() float GetX() const
GPUTPCTrackLinearisation float float float * DL
GPUd() float GetCosPhi() const
uint32_t float float & lastZ
GPUd() float GetDist2(const GPUTPCTrackParam &t) const
GPUd() void SetDzDs(float v)
GPUd() float Err2Z() const
GPUd() int32_t GetNDF() const
GPUd() void SetZ(float v)
GPUd() float Err2SinPhi() const
GPUhd() void SetPar(int32_t i
GPUd() void SetY(float v)
GPUd() float GetDzDs() const
float float float float bool paramOnly
GPUd() float GetChi2() const
GPUd() void SetSignCosPhi(float v)
GPUd() float SinPhi() const
GPUTPCTrackLinearisation GPUTPCTrackFitParam & par
GPUd() float GetSignCosPhi() const
GPUd() float GetPar(int32_t i) const
GPUd() float GetSinPhi() const
GPUd() float ZOffset() const
GPUd() float GetQPt() const
GPUd() float Err2QPt() const
GPUd() void SetNDF(int32_t v)
GLfloat GLfloat GLfloat alpha
GLuint GLfloat GLfloat GLfloat x1
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
GLdouble GLdouble GLdouble z