16#ifndef ALICEO2_FWDALIGN_SYMMATRIX_H
17#define ALICEO2_FWDALIGN_SYMMATRIX_H
55 void Reset()
override;
57 Int_t
GetSize()
const override {
return fNrowIndex; }
74 Double_t
operator()(Int_t rown, Int_t coln)
const override;
75 Double_t&
operator()(Int_t rown, Int_t coln)
override;
78 Double_t&
DiagElem(Int_t
r)
override {
return (*
this)(
r,
r); }
84 void Print(
const Option_t*
option =
"")
const override;
91 void Scale(Double_t coeff);
99 void MultiplyByVec(
const Double_t* vecIn, Double_t* vecOut)
const override;
101 void MultiplyByVec(
const TVectorD& vecIn, TVectorD& vecOut)
const override;
102 void AddToRow(Int_t
r, Double_t* valc, Int_t* indc, Int_t
n)
override;
109 Error(
"GetRowIndexArray",
"Dummy");
114 Error(
"GetRowIndexArray",
"Dummy");
119 Error(
"GetColIndexArray",
"Dummy");
124 Error(
"GetColIndexArray",
"Dummy");
129 Error(
"SetRowIndexArray",
"Dummy");
134 Error(
"SetColIndexArray",
"Dummy");
139 Error(
"GetSub",
"Dummy");
144 Error(
"GetSub",
"Dummy");
149 Error(
"ResizeTo",
"Dummy");
154 Error(
"ResizeTo",
"Dummy");
185 Bool_t
SolveChol(Double_t* brhs, Double_t* bsol, Bool_t
invert = kFALSE);
187 Bool_t
SolveChol(
const TVectorD& brhs, TVectorD& bsol, Bool_t
invert = kFALSE);
204 int SolveSpmInv(
double* vecB, Bool_t stabilize = kTRUE);
235 if (
row >= fNrowIndex) {
247 if (
row >= fNrowIndex) {
256 MultiplyByVec(vecIn.GetMatrixArray(), vecOut.GetMatrixArray());
262 for (
int i = fNrowIndex;
i--;) {
263 for (
int j =
i;
j--;) {
275 for (
int i =
n;
i--;) {
276 (*this)(indc[
i],
r) += valc[
i];
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 Print launch bounds used for RTC code as debugging option
Abstract class (from AliROOT) for square matrix used for millepede2 operation.
void Swap(int &r, int &c) const
Fast symmetric matrix with dynamically expandable size.
SymMatrix()
default constructor
Double_t operator()(Int_t rown, Int_t coln) const override
void Scale(Double_t coeff)
SymMatrix & operator-=(const SymMatrix &src)
minus operator
Int_t GetSizeUsed() const
static Int_t fgCopyCnt
matrix copy counter
void Print(const Option_t *option="") const override
print itself
TMatrixDBase & GetSub(Int_t, Int_t, Int_t, Int_t, TMatrixDBase &, Option_t *) const override
int SolveSpmInv(double *vecB, Bool_t stabilize=kTRUE)
Obtain solution of a system of linear equations with symmetric matrix and the inverse (using 'singula...
~SymMatrix() override
destructor
const Double_t * GetMatrixArray() const override
Double_t ** fElemsAdd
Elements (rows) added dynamicaly.
Double_t & DiagElem(Int_t r) override
ClassDefOverride(SymMatrix, 0)
void SetEl(Int_t row, Int_t col, Double_t val)
Bool_t SolveChol(Double_t *brhs, Bool_t invert=kFALSE)
Solves the set of n linear equations A x = b.
void AddToRow(Int_t r, Double_t *valc, Int_t *indc, Int_t n) override
void MultiplyByVec(const Double_t *vecIn, Double_t *vecOut) const override
fill vecOut by matrix*vecIn
Int_t GetSize() const override
Double_t * GetMatrixArray() override
Float_t GetDensity() const override
get fraction of non-zero elements
Double_t DiagElem(Int_t r) const override
TMatrixDBase & SetColIndexArray(Int_t *) override
static SymMatrix * fgBuffer
buffer for fast solution
Double_t * fElems
Elements booked by constructor.
TMatrixDBase & ResizeTo(Int_t, Int_t, Int_t, Int_t, Int_t) override
Int_t GetSizeAdded() const
SymMatrix & operator=(const SymMatrix &src)
assignment operator
const Int_t * GetRowIndexArray() const override
Bool_t InvertChol()
Invert matrix using Choleski decomposition.
SymMatrix * DecomposeChol()
Return a matrix with Choleski decomposition.
Double_t GetEl(Int_t row, Int_t col) const
Bool_t SolveCholN(Double_t *bn, int nRHS, Bool_t invert=kFALSE)
Solves the set of n linear equations A x = b; this version solve multiple RHSs at once.
virtual Int_t GetIndex(Int_t row, Int_t col) const
void Clear(Option_t *option="") override
clear dynamic part
TMatrixDBase & SetRowIndexArray(Int_t *) override
Double_t * GetRow(Int_t r)
get pointer on the row
Int_t * GetColIndexArray() override
Int_t GetSizeBooked() const
void AddRows(int nrows=1)
add empty rows
const Int_t * GetColIndexArray() const override
Int_t * GetRowIndexArray() override
SymMatrix & operator+=(const SymMatrix &src)
add operator
TMatrixDBase & ResizeTo(Int_t, Int_t, Int_t) override
void SetSizeUsed(Int_t sz)
Bool_t Multiply(const SymMatrix &right)
multiply from the right
TMatrixDBase & SetSub(Int_t, Int_t, const TMatrixDBase &) override
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...