PandaRoot
PndCAParameters Struct Reference

#include <PndCAParameters.h>

Public Types

enum  {
  MaxNStations = 30, NMVDStations = 4, MinimumHitsForRecoTrack = 3, MaxCellLength = 6,
  LastCellLength = 3
}
 Global parameters. More...
 

Static Public Member Functions

template<typename T >
static void CALocalToGlobal (T x0, T x1, T angle, T &x, T &y)
 
template<typename T >
static void GlobalToCALocal (T x, T y, T angle, T &x0, T &x1)
 
template<typename T >
static void CALocalToGlobal (T x0, T x1, T x2, T angle, T &x, T &y, T &z)
 
template<typename T >
static void GlobalToCALocal (T x, T y, T z, T angle, T &x0, T &x1, T &x2)
 

Detailed Description

Definition at line 22 of file PndCAParameters.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Global parameters.

Enumerator
MaxNStations 
NMVDStations 
MinimumHitsForRecoTrack 
MaxCellLength 
LastCellLength 

Definition at line 23 of file PndCAParameters.h.

Member Function Documentation

◆ CALocalToGlobal() [1/2]

template<typename T >
static void PndCAParameters::CALocalToGlobal ( x0,
x1,
angle,
T &  x,
T &  y 
)
static

◆ CALocalToGlobal() [2/2]

template<typename T >
static void PndCAParameters::CALocalToGlobal ( x0,
x1,
x2,
angle,
T &  x,
T &  y,
T &  z 
)
static

◆ GlobalToCALocal() [1/2]

template<typename T >
void PndCAParameters::GlobalToCALocal ( x,
y,
angle,
T &  x0,
T &  x1 
)
static

Definition at line 62 of file PndCAParameters.h.

References CAMath::Cos(), and CAMath::Sin().

63 {
64  const T cA = CAMath::Cos(angle);
65  const T sA = CAMath::Sin(angle);
66  // SG!!!
67  // x0 = x*cA + y*sA;
68  // x1 = x*cA - y*cA;
69  x0 = x * sA + y * cA;
70  x1 = x * cA - y * sA;
71 }
static T Sin(const T &x)
Definition: PndCAMath.h:71
static T Cos(const T &x)
Definition: PndCAMath.h:76

◆ GlobalToCALocal() [2/2]

template<typename T >
void PndCAParameters::GlobalToCALocal ( x,
y,
z,
angle,
T &  x0,
T &  x1,
T &  x2 
)
static

Definition at line 74 of file PndCAParameters.h.

75 {
76  GlobalToCALocal<T>(x, y, angle, x0, x1);
77  x2 = -z;
78 }

The documentation for this struct was generated from the following file: