Project
Loading...
Searching...
No Matches
o2::math_utils::detail Namespace Reference

Namespaces

namespace  row_offsets_utils
 

Classes

struct  Assign
 
struct  Assign< T, D1, D2, A, MatRepSymGPU< T, D1 >, MatRepStdGPU< T, D1, D2 > >
 
struct  Assign< T, D1, D2, A, MatRepSymGPU< T, D1 >, MatRepSymGPU< T, D1 > >
 
struct  AssignSym
 
class  Bracket
 
struct  Check
 
struct  Check< false >
 
struct  CircleXY
 
class  Expr
 
struct  GPUPoint2D
 
struct  GPUPoint3D
 
class  IntervalXY
 
class  Inverter
 Inversion. More...
 
class  MatRepStdGPU
 SMatReprStd starting port here. More...
 
class  MatRepSymGPU
 
class  MatrixMulOpGPU
 
struct  meta_dot
 
struct  meta_dot< 0 >
 
struct  meta_matrix_dot
 
struct  meta_matrix_dot< 0 >
 
struct  MultPolicyGPU
 
class  SMatrixGPU
 
struct  SMatrixIdentity
 SMatrixGPU starting port here. More...
 
struct  SMatrixNoInit
 
struct  StatAccumulator
 
class  SVectorGPU
 
class  TransposeOpGPU
 
struct  TranspPolicyGPU
 
struct  TranspPolicyGPU< T, D1, D2, MatRepSymGPU< T, D1 > >
 

Functions

template<typename T >
 GPUhdi () const expr T copysign(T x
 
template<class T >
 GPUdi () int nint(T x)
 
 GPUdi () unsigned int clz(unsigned int val)
 
template<>
 GPUhdi () double copysign(double x
 
template<>
 GPUhdi () double sqrt(double x)
 
template<>
 GPUdi () double log(double x)
 
template<>
 GPUdi () double exp(double x)
 
template<>
 GPUdi () int nint(double x)
 
template<>
 GPUdi () bool finite(double x)
 
int numberOfBitsSet (uint32_t x)
 
template<typename T >
constexpr uint32_t bit2Mask (T v)
 
template<typename T , typename... Args>
constexpr uint32_t bit2Mask (T first, Args... args)
 
template<typename T >
 GPUdi () T &IntervalXY< T >
 
template<typename T >
 GPUhdi () void bringTo02Pi(T &phi)
 
template<typename T >
T to02PiGen (T phi)
 
template<typename T >
void bringTo02PiGen (T &phi)
 
template<typename T >
T toPMPiGen (T phi)
 
template<typename T >
void bringToPMPiGen (T &phi)
 
template<>
 GPUhdi () void sincos(double ang
 
template<typename T >
std::tuple< T, T > rotateZ (T xL, T yL, T snAlp, T csAlp)
 
 if (!okForPhiMin(phi0, phi1))
 
 if (phi0 > phi1)
 
 bringTo02Pi (phi)
 
 if (del< 0)
 
return copysign< T > (atan2P(o2::gpu::GPUCommonMath::Abs(y), x), y)
 
template<>
 GPUdi () double twoPi()
 
template<>
 GPUdi () double pi()
 
template<>
 GPUdi () double tan(double x)
 
template<>
 GPUdi () double sin(double x)
 
template<>
 GPUdi () double atan2(double y
 
template<>
 GPUdi () double atan(double x)
 
template<>
 GPUdi () double asin(double x)
 
template<>
 GPUdi () double acos(double x)
 
template<>
 GPUdi () double cos(double x)
 
template<class T , unsigned int D>
 GPUdi () T *SVectorGPU< T
 
template<class T , unsigned int N>
 GPUhdi () const T &SVectorGPU< T
 
template<class T , unsigned int N>
 GPUdi () const T &SVectorGPU< T
 
template<class T , unsigned int N>
 GPUd () SVectorGPU< T
 
template<class T , unsigned int D1, unsigned int D2, class R >
 GPUdi () SMatrixGPU< T
 
template<class R2 >
 GPUd () SMatrixGPU< T
 
template<class T , unsigned int D1, unsigned int D2, class R >
 GPUdi () const T &SMatrixGPU< T
 
template<class T , unsigned int D1, unsigned int D, unsigned int D2, class R1 , class R2 >
 GPUdi () Expr< MatrixMulOpGPU< SMatrixGPU< T
 
MultPolicyGPU< T, R1, R2 >::RepType operator* (const SMatrixGPU< T, D1, D, R1 > &lhs, const SMatrixGPU< T, D, D2, R2 > &rhs)
 
D1 operator* (const SMatrixGPU< T, D1, D2, R > &rhs, const SVectorGPU< T, D2 > &lhs)
 
TranspPolicyGPU< T, D1, D2, R >::RepType Transpose (const SMatrixGPU< T, D1, D2, R > &rhs)
 
MatRepSymGPU< T, D1 > Similarity (const SMatrixGPU< T, D1, D2, R > &lhs, const SMatrixGPU< T, D2, D2, MatRepSymGPU< T, D2 > > &rhs)
 

Variables

T y
 
T & s
 
T T & c
 
T yL
 
T T & xG
 
T T T & yG = xL * snAlp + yL * csAlp
 
T T T T snAlp
 
T T T T T csAlp
 
T T & xL
 
T phi
 
template<typename T >
return((dphi > 0 &&dphi< constants::math::PI)||dphi< -constants::math::PI) ? true GPUhdi () const expr bool okForPhiMax(T phiMax
 
return((dphi< 0 &&dphi > -constants::math::PI)||dphi > constants::math::PI) ? true T phi1
 
 else
 
 del = phi1 - phi0
 
T x
 
auto atan2P
 
D & lhs
 
D const SVectorGPU< T, D > & rhs
 
 D1
 
 D2
 
 D
 
 R1
 
 SMatrixGPU< T, D, D2, R2 >
 
 T
 
 R
 

Function Documentation

◆ bit2Mask() [1/2]

template<typename T , typename... Args>
constexpr uint32_t o2::math_utils::detail::bit2Mask ( T  first,
Args...  args 
)
constexpr

Definition at line 46 of file bitOps.h.

◆ bit2Mask() [2/2]

template<typename T >
constexpr uint32_t o2::math_utils::detail::bit2Mask ( T  v)
constexpr

Definition at line 40 of file bitOps.h.

◆ bringTo02Pi()

o2::math_utils::detail::bringTo02Pi ( phi  )

◆ bringTo02PiGen()

template<typename T >
void o2::math_utils::detail::bringTo02PiGen ( T &  phi)
inline

Definition at line 69 of file trigonometric.h.

◆ bringToPMPiGen()

template<typename T >
void o2::math_utils::detail::bringToPMPiGen ( T &  phi)
inline

Definition at line 108 of file trigonometric.h.

◆ copysign< T >()

return o2::math_utils::detail::copysign< T > ( atan2P(o2::gpu::GPUCommonMath::Abs(y), x)  ,
y   
)

◆ GPUd() [1/2]

template<class R2 >
o2::math_utils::detail::GPUd ( )

◆ GPUd() [2/2]

template<class T , unsigned int N>
o2::math_utils::detail::GPUd ( )

◆ GPUdi() [1/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 134 of file basicMath.h.

◆ GPUdi() [2/21]

template<class T , unsigned int D1, unsigned int D2, class R >
o2::math_utils::detail::GPUdi ( ) const &

◆ GPUdi() [3/21]

template<class T , unsigned int N>
o2::math_utils::detail::GPUdi ( ) const &

◆ GPUdi() [4/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 406 of file trigonometric.h.

◆ GPUdi() [5/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 401 of file trigonometric.h.

◆ GPUdi() [6/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 396 of file trigonometric.h.

◆ GPUdi() [7/21]

template<>
o2::math_utils::detail::GPUdi ( )

◆ GPUdi() [8/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 411 of file trigonometric.h.

◆ GPUdi() [9/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 117 of file basicMath.h.

◆ GPUdi() [10/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 112 of file basicMath.h.

◆ GPUdi() [11/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 374 of file trigonometric.h.

◆ GPUdi() [12/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 386 of file trigonometric.h.

◆ GPUdi() [13/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 381 of file trigonometric.h.

◆ GPUdi() [14/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 362 of file trigonometric.h.

◆ GPUdi() [15/21]

template<class T , unsigned int D1, unsigned int D, unsigned int D2, class R1 , class R2 >
o2::math_utils::detail::GPUdi ( )

◆ GPUdi() [16/21]

template<>
o2::math_utils::detail::GPUdi ( )

Definition at line 129 of file basicMath.h.

◆ GPUdi() [17/21]

template<class T >
o2::math_utils::detail::GPUdi ( )

Definition at line 67 of file basicMath.h.

◆ GPUdi() [18/21]

template<class T , unsigned int D1, unsigned int D2, class R >
o2::math_utils::detail::GPUdi ( )

◆ GPUdi() [19/21]

template<typename T >
o2::math_utils::detail::GPUdi ( ) &

Definition at line 130 of file IntervalXY.h.

◆ GPUdi() [20/21]

template<class T , unsigned int D>
o2::math_utils::detail::GPUdi ( )

◆ GPUdi() [21/21]

o2::math_utils::detail::GPUdi ( )

Definition at line 78 of file basicMath.h.

◆ GPUhdi() [1/6]

template<typename T >
o2::math_utils::detail::GPUhdi ( ) const

Definition at line 55 of file basicMath.h.

◆ GPUhdi() [2/6]

template<class T , unsigned int N>
o2::math_utils::detail::GPUhdi ( ) const &

◆ GPUhdi() [3/6]

template<>
o2::math_utils::detail::GPUhdi ( )

Definition at line 124 of file basicMath.h.

◆ GPUhdi() [4/6]

template<>
o2::math_utils::detail::GPUhdi ( )

Definition at line 107 of file basicMath.h.

◆ GPUhdi() [5/6]

template<typename T >
o2::math_utils::detail::GPUhdi ( ) &

Definition at line 49 of file trigonometric.h.

◆ GPUhdi() [6/6]

template<>
o2::math_utils::detail::GPUhdi ( )

◆ if() [1/3]

o2::math_utils::detail::if ( !  okForPhiMinphi0, phi1)

Definition at line 240 of file trigonometric.h.

◆ if() [2/3]

o2::math_utils::detail::if ( )

Definition at line 265 of file trigonometric.h.

◆ if() [3/3]

o2::math_utils::detail::if ( phi0  ,
phi1   
)

Definition at line 245 of file trigonometric.h.

◆ numberOfBitsSet()

int o2::math_utils::detail::numberOfBitsSet ( uint32_t  x)
inline

Definition at line 30 of file bitOps.h.

◆ operator*() [1/2]

MultPolicyGPU< T, R1, R2 >::RepType o2::math_utils::detail::operator* ( const SMatrixGPU< T, D1, D, R1 > &  lhs,
const SMatrixGPU< T, D, D2, R2 > &  rhs 
)

Definition at line 750 of file SMatrixGPU.h.

◆ operator*() [2/2]

D1 o2::math_utils::detail::operator* ( const SMatrixGPU< T, D1, D2, R > &  rhs,
const SVectorGPU< T, D2 > &  lhs 
)

Definition at line 1484 of file SMatrixGPU.h.

◆ rotateZ()

template<typename T >
std::tuple< T, T > o2::math_utils::detail::rotateZ ( T  xL,
T  yL,
T  snAlp,
T  csAlp 
)
inline

Definition at line 144 of file trigonometric.h.

◆ Similarity()

MatRepSymGPU< T, D1 > o2::math_utils::detail::Similarity ( const SMatrixGPU< T, D1, D2, R > &  lhs,
const SMatrixGPU< T, D2, D2, MatRepSymGPU< T, D2 > > &  rhs 
)

Definition at line 1504 of file SMatrixGPU.h.

◆ to02PiGen()

template<typename T >
T o2::math_utils::detail::to02PiGen ( T  phi)
inline

Definition at line 55 of file trigonometric.h.

◆ toPMPiGen()

template<typename T >
T o2::math_utils::detail::toPMPiGen ( T  phi)
inline

Definition at line 94 of file trigonometric.h.

◆ Transpose()

TranspPolicyGPU< T, D1, D2, R >::RepType o2::math_utils::detail::Transpose ( const SMatrixGPU< T, D1, D2, R > &  rhs)

Definition at line 1497 of file SMatrixGPU.h.

Variable Documentation

◆ atan2P

auto o2::math_utils::detail::atan2P
Initial value:
= [atan](T yy, T xx) -> T {
constexpr T Pi = 3.1415926535897932384626433832795;
constexpr T Pi025 = 1 * Pi / 4;
constexpr T Pi075 = 3 * Pi / 4;
const T x1 = xx + yy;
const T y1 = yy - xx;
T phi0 = 0;
T tan = 0;
if (xx < 0) {
phi0 = Pi075;
tan = y1 > T(0) ? -x1 / y1 : T(0);
} else {
phi0 = Pi025;
tan = x1 > T(0) ? y1 / x1 : T(0);
}
return phi0 + atan(tan);
}
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 tan(phi) dependence of tracklet error due to radial misalignment(centered at 0 angle)") AddOptionRTC(maxChi2Red
GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition glcorearb.h:5034
GLuint GLfloat GLfloat GLfloat x1
Definition glcorearb.h:5034

Definition at line 290 of file trigonometric.h.

◆ c

double double & o2::math_utils::detail::c
Initial value:
{
return o2::gpu::GPUCommonMath::SinCos(ang, s, c)
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 s
uint32_t c
Definition RawData.h:2

Definition at line 121 of file trigonometric.h.

◆ csAlp

T T T T T o2::math_utils::detail::csAlp

◆ D

o2::math_utils::detail::D

Definition at line 749 of file SMatrixGPU.h.

◆ D1

o2::math_utils::detail::D1

Definition at line 531 of file SMatrixGPU.h.

◆ D2

o2::math_utils::detail::D2

Definition at line 531 of file SMatrixGPU.h.

◆ del

return o2::math_utils::detail::del = phi1 - phi0

Definition at line 264 of file trigonometric.h.

◆ else

o2::math_utils::detail::else
Initial value:
{
phi = 0.5 * (phi0 + phi1)
return((dphi< 0 &&dphi > -constants::math::PI)||dphi > constants::math::PI) ? true T phi1

Definition at line 247 of file trigonometric.h.

◆ GPUhdi

template<typename T >
o2::math_utils::detail::GPUhdi ( ) const

Definition at line 228 of file trigonometric.h.

◆ lhs

D& o2::math_utils::detail::lhs

Definition at line 192 of file SMatrixGPU.h.

◆ phi

return o2::math_utils::detail::phi
Initial value:
{
const T dphi = phi - phiMin

Definition at line 220 of file trigonometric.h.

◆ phi1

T o2::math_utils::detail::phi1
Initial value:
{

Definition at line 236 of file trigonometric.h.

◆ R

o2::math_utils::detail::R

Definition at line 1497 of file SMatrixGPU.h.

◆ R1

o2::math_utils::detail::R1

Definition at line 749 of file SMatrixGPU.h.

◆ rhs

D const SVectorGPU<T, D>& o2::math_utils::detail::rhs
Initial value:
{
return meta_dot<D - 1>::f(lhs, rhs, T())

Definition at line 192 of file SMatrixGPU.h.

◆ s

double & o2::math_utils::detail::s

Definition at line 121 of file trigonometric.h.

◆ SMatrixGPU< T, D, D2, R2 >

Definition at line 749 of file SMatrixGPU.h.

◆ snAlp

T T T T o2::math_utils::detail::snAlp

Definition at line 171 of file trigonometric.h.

◆ T

o2::math_utils::detail::T

Definition at line 749 of file SMatrixGPU.h.

◆ x

double o2::math_utils::detail::x
Initial value:
{
auto atan = [](T a) -> T {
constexpr T Pi = 3.1415926535897932384626433832795;
constexpr T A = 0.0776509570923569;
constexpr T B = -0.287434475393028;
constexpr T C = ((Pi / 4) - A - B);
const T a2 = a * a;
return ((A * a2 + B) * a2 + C) * a;
}
Definition A.h:16
Definition B.h:16
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233

Definition at line 272 of file trigonometric.h.

◆ xG

T T& o2::math_utils::detail::xG

Definition at line 171 of file trigonometric.h.

◆ xL

T T& o2::math_utils::detail::xL

Definition at line 180 of file trigonometric.h.

◆ y

double o2::math_utils::detail::y
Initial value:
{
return o2::gpu::GPUCommonMath::Copysign(x, y)
GLint GLenum GLint x
Definition glcorearb.h:403
GLint y
Definition glcorearb.h:270

Definition at line 37 of file basicMath.h.

◆ yG

T o2::math_utils::detail::yG = xL * snAlp + yL * csAlp

Definition at line 171 of file trigonometric.h.

◆ yL

T T T & o2::math_utils::detail::yL

Definition at line 171 of file trigonometric.h.