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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Global parameters.

Definition at line 23 of file PndFTSCAParameters.h.

23  {
24 #ifdef STAR_HFT
25  MaxNStations = 4, // max number of stations
26  MinimumHitsForRecoTrack = 4, // 3
27  MaxCellLength = 3, // length of triplet
28  LastCellLength = 3 // length of rightmost cell
29 #elif ALICE_ITS
30  MaxNStations = 8,
31  MinimumHitsForRecoTrack = 4, // 3
32  MaxCellLength = 3,
33  LastCellLength = 3 // length of rightmost cell
34 #elif PANDA_STT
35  MaxNStations = 30,
36  NMVDStations = 4,
38  MaxCellLength = 6,
39  LastCellLength = 4 // length of rightmost cell
40 #elif PANDA_FTS
41  MaxNStations = 48,
42  NMVDStations = 0,
44  MaxCellLength = 6,
45  LastCellLength = 6 // length of rightmost cell
46 #endif
47  };

Member Function Documentation

◆ CALocalToGlobal() [1/2]

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

Definition at line 121 of file PndFTSCAParameters.h.

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

Referenced by FTSCAHitV::GetGlobalCoor().

122 {
123  const T cA = CAMath::Cos(angle);
124  const T sA = CAMath::Sin(angle);
125  x = x0 * cA - x1 * sA;
126  y = x0 * sA + x1 * cA;
127 }
static T Sin(const T &x)
Definition: PndCAMath.h:71
static T Cos(const T &x)
Definition: PndCAMath.h:76

◆ CALocalToGlobal() [2/2]

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

Definition at line 130 of file PndFTSCAParameters.h.

131 {
132  CALocalToGlobal<T>(x0, x1, angle, x, y);
133  z = x2;
134 }

◆ GlobalToCALocal() [1/2]

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

Definition at line 137 of file PndFTSCAParameters.h.

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

138 {
139  const T cA = CAMath::Cos(angle);
140  const T sA = CAMath::Sin(angle);
141  x0 = x * cA + y * sA;
142  x1 = -x * sA + y * cA;
143 }
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 PndFTSCAParameters::GlobalToCALocal ( x,
y,
z,
angle,
T &  x0,
T &  x1,
T &  x2 
)
static

Definition at line 146 of file PndFTSCAParameters.h.

147 {
148  GlobalToCALocal<T>(x, y, angle, x0, x1);
149  x2 = z;
150 }

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