PandaRoot
PndCADef.h File Reference
#include <iostream>
#include <Vc/Vc>
#include <Vc/limits>
#include "Rtypes.h"

Go to the source code of this file.

Classes

struct  float2
 

Macros

#define ASSERT(v, msg)
 
#define HLTTPCCA_STATIC_ASSERT_CONCAT_HELPER(a, b)   a##b
 
#define HLTTPCCA_STATIC_ASSERT_CONCAT(a, b)   HLTTPCCA_STATIC_ASSERT_CONCAT_HELPER(a, b)
 
#define STATIC_ASSERT(cond, msg)
 
#define unrolled_loop4(_type_, _it_, _start_, _end_, _code_)
 
#define MAY_ALIAS
 
#define ISLIKELY(x)   (x)
 
#define ISUNLIKELY(x)   (x)
 

Functions

template<typename T >
int sign (T val)
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   v,
  msg 
)
Value:
if (v) { \
} else { \
std::cerr << __FILE__ << ":" << __LINE__ << " assertion failed: " << #v << " = " << (v) << "\n" << msg << std::endl; \
abort(); \
}
__m128 v
Definition: P4_F32vec4.h:3

Definition at line 57 of file PndCADef.h.

◆ HLTTPCCA_STATIC_ASSERT_CONCAT

#define HLTTPCCA_STATIC_ASSERT_CONCAT (   a,
 
)    HLTTPCCA_STATIC_ASSERT_CONCAT_HELPER(a, b)

Definition at line 81 of file PndCADef.h.

◆ HLTTPCCA_STATIC_ASSERT_CONCAT_HELPER

#define HLTTPCCA_STATIC_ASSERT_CONCAT_HELPER (   a,
 
)    a##b

Definition at line 80 of file PndCADef.h.

◆ ISLIKELY

#define ISLIKELY (   x)    (x)

Definition at line 156 of file PndCADef.h.

◆ ISUNLIKELY

#define ISUNLIKELY (   x)    (x)

Definition at line 157 of file PndCADef.h.

Referenced by PndCATrackParam::Filter().

◆ MAY_ALIAS

#define MAY_ALIAS

Definition at line 149 of file PndCADef.h.

◆ STATIC_ASSERT

#define STATIC_ASSERT (   cond,
  msg 
)
Value:
typedef HLTTPCCA_STATIC_ASSERT_FAILURE<cond> HLTTPCCA_STATIC_ASSERT_CONCAT(_STATIC_ASSERTION_FAILED_##msg, __LINE__); \
HLTTPCCA_STATIC_ASSERT_CONCAT(_STATIC_ASSERTION_FAILED_##msg, __LINE__) Error_##msg; \
(void)Error_##msg
#define HLTTPCCA_STATIC_ASSERT_CONCAT(a, b)
Definition: PndCADef.h:81

Definition at line 82 of file PndCADef.h.

◆ unrolled_loop4

#define unrolled_loop4 (   _type_,
  _it_,
  _start_,
  _end_,
  _code_ 
)
Value:
if (_start_ + 0 < _end_) { \
enum { _it_ = (_start_ + 0) < _end_ ? (_start_ + 0) : _start_ }; \
_code_ \
} \
if (_start_ + 1 < _end_) { \
enum { _it_ = (_start_ + 1) < _end_ ? (_start_ + 1) : _start_ }; \
_code_ \
} \
if (_start_ + 2 < _end_) { \
enum { _it_ = (_start_ + 2) < _end_ ? (_start_ + 2) : _start_ }; \
_code_ \
} \
if (_start_ + 3 < _end_) { \
enum { _it_ = (_start_ + 3) < _end_ ? (_start_ + 3) : _start_ }; \
_code_ \
} \
do { \
} while (false)

Definition at line 126 of file PndCADef.h.

Function Documentation

◆ sign()

template<typename T >
int sign ( val)

Definitions needed for PndCATracker

Definition at line 49 of file PndCADef.h.

Referenced by PndCATrackParam::InitDirection(), PndTrkTrackFinder::SearchSecondaryTracks(), RhoBooster::SetBoostVector(), PndMvdSttGemRiemannTrackFinder::SetSttTubeArray(), PndFtsTrackFinder::PndFtsMath::TangencyPoint(), and Tkey::Tkey().

50 {
51  return (T(0) < val) - (val < T(0));
52 }