PandaRoot
PndFTSCAParameters Struct Reference

#include <PndFTSCAParameters.h>

Public Types

enum  
 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 34 of file PndFTSCAParameters.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Global parameters.

Definition at line 35 of file PndFTSCAParameters.h.

35  {
36 #ifdef STAR_HFT
37  MaxNStations = 4, // max number of stations
38  MinimumHitsForRecoTrack = 4, // 3
39  MaxCellLength = 3, // length of triplet
40  LastCellLength = 3 // length of rightmost cell
41 #elif ALICE_ITS
42  MaxNStations = 8,
43  MinimumHitsForRecoTrack = 4, // 3
44  MaxCellLength = 3,
45  LastCellLength = 3 // length of rightmost cell
46 #elif PANDA_STT
47  MaxNStations = 30,
48  NMVDStations = 4,
50  MaxCellLength = 6,
51  LastCellLength = 4 // length of rightmost cell
52 #elif PANDA_FTS
53  MaxNStations = 48,
54  NMVDStations = 0,
56  MaxCellLength = 6,
57  LastCellLength = 6 // length of rightmost cell
58 #endif
59  };

Member Function Documentation

◆ CALocalToGlobal() [1/2]

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

Definition at line 133 of file PndFTSCAParameters.h.

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

Referenced by FTSCAHitV::GetGlobalCoor().

134 {
135  const T cA = CAMath::Cos(angle);
136  const T sA = CAMath::Sin(angle);
137  x = x0 * cA - x1 * sA;
138  y = x0 * sA + x1 * cA;
139 }
static T Sin(const T &x)
Definition: PndCAMath.h:83
static T Cos(const T &x)
Definition: PndCAMath.h:88

◆ CALocalToGlobal() [2/2]

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

Definition at line 142 of file PndFTSCAParameters.h.

143 {
144  CALocalToGlobal<T>(x0, x1, angle, x, y);
145  z = x2;
146 }

◆ GlobalToCALocal() [1/2]

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

Definition at line 149 of file PndFTSCAParameters.h.

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

150 {
151  const T cA = CAMath::Cos(angle);
152  const T sA = CAMath::Sin(angle);
153  x0 = x * cA + y * sA;
154  x1 = -x * sA + y * cA;
155 }
static T Sin(const T &x)
Definition: PndCAMath.h:83
static T Cos(const T &x)
Definition: PndCAMath.h:88

◆ GlobalToCALocal() [2/2]

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

Definition at line 158 of file PndFTSCAParameters.h.

159 {
160  GlobalToCALocal<T>(x, y, angle, x0, x1);
161  x2 = z;
162 }

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