Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTrackCandidate_factory_CDC.cc File Reference
#include "DTrackCandidate_factory_CDC.h"
#include <cmath>
#include <JANA/JCalibration.h>

Go to the source code of this file.

Macros

#define BeamRMS   0.5
 
#define EPS   1e-3
 
#define TWO(c)   (0x1u << (c))
 
#define MASK(c)   ((unsigned int)(-1)) / (TWO(TWO(c)) + 1u)
 
#define COUNT(x, c)   ((x) & MASK(c)) + (((x) >> (TWO(c))) & MASK(c))
 
#define M_TWO_PI   6.28318530717958647692
 
#define SHFT(w, x, y, z)   (w)=(x);(x)=(y);(y)=(z)
 
#define SIGN(x, y)   ((y)>=0.0 ? fabs(x):-fabs(x))
 

Functions

int bitcount (unsigned int n)
 
bool CDCSortByRdecreasing (const DTrackCandidate_factory_CDC::DCDCTrkHit *hit1, const DTrackCandidate_factory_CDC::DCDCTrkHit *hit2)
 
bool CDCSortByChiSqPerNDFDecreasing (const DTrackCandidate_factory_CDC::DCDCTrackCircle *locTrackCircle1, const DTrackCandidate_factory_CDC::DCDCTrackCircle *locTrackCircle2)
 
bool CDCSortByStereoChiSqPerNDFIncreasing (const DTrackCandidate_factory_CDC::DCDCTrackCircle *locTrackCircle1, const DTrackCandidate_factory_CDC::DCDCTrackCircle *locTrackCircle2)
 
bool CDCSort_Intersections (const DTrackCandidate_factory_CDC::intersection_t &locIntersection1, const DTrackCandidate_factory_CDC::intersection_t &locIntersection2)
 
bool CDCSort_DeltaPhis (const pair< DTrackCandidate_factory_CDC::DCDCTrkHit *, double > &locDeltaPhiPair1, const pair< DTrackCandidate_factory_CDC::DCDCTrkHit *, double > &locDeltaPhiPair2)
 

Macro Definition Documentation

#define COUNT (   x,
  c 
)    ((x) & MASK(c)) + (((x) >> (TWO(c))) & MASK(c))

Definition at line 17 of file DTrackCandidate_factory_CDC.cc.

Referenced by bitcount().

#define EPS   1e-3
#define MASK (   c)    ((unsigned int)(-1)) / (TWO(TWO(c)) + 1u)

Definition at line 16 of file DTrackCandidate_factory_CDC.cc.

#define SHFT (   w,
  x,
  y,
 
)    (w)=(x);(x)=(y);(y)=(z)
#define SIGN (   x,
  y 
)    ((y)>=0.0 ? fabs(x):-fabs(x))
#define TWO (   c)    (0x1u << (c))

Definition at line 15 of file DTrackCandidate_factory_CDC.cc.

Function Documentation

int bitcount ( unsigned int  n)
inline
bool CDCSort_DeltaPhis ( const pair< DTrackCandidate_factory_CDC::DCDCTrkHit *, double > &  locDeltaPhiPair1,
const pair< DTrackCandidate_factory_CDC::DCDCTrkHit *, double > &  locDeltaPhiPair2 
)
inline
bool CDCSort_Intersections ( const DTrackCandidate_factory_CDC::intersection_t locIntersection1,
const DTrackCandidate_factory_CDC::intersection_t locIntersection2 
)
inline
bool CDCSortByStereoChiSqPerNDFIncreasing ( const DTrackCandidate_factory_CDC::DCDCTrackCircle locTrackCircle1,
const DTrackCandidate_factory_CDC::DCDCTrackCircle locTrackCircle2 
)
inline