FairRoot/PandaRoot
Public Types | Static Public Member Functions | List of all members
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

Global parameters.

Definition at line 24 of file PndFTSCAParameters.h.

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

Member Function Documentation

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

Definition at line 116 of file PndFTSCAParameters.h.

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

Referenced by PndFTSCADisplay::DrawGBHits(), PndFTSCADisplay::DrawGBPoint(), PndFTSCADisplay::DrawRecoTrack(), PndFTSCAGBTracker::EstimatePV(), PndFTSCAGBTracker::FitTrack(), PndFTSCAGBTracker::FitTrackCA(), FTSCAHitV::GetGlobalCoor(), PndFTSCADisplay::HitToGlobal(), and PndFTSCAGBTracker::InitialTrackApproximation().

116  {
117  const T cA = CAMath::Cos( angle );
118  const T sA = CAMath::Sin( angle );
119  x = x0*cA - x1*sA;
120  y = x0*sA + x1*cA;
121 }
Double_t x0
Definition: checkhelixhit.C:70
static T Sin(const T &x)
Definition: PndCAMath.h:42
static T Cos(const T &x)
Definition: PndCAMath.h:43
TTree * T
Definition: anaLmdReco.C:32
Double_t x
Double_t y
Double_t angle
template<typename T >
void PndFTSCAParameters::CALocalToGlobal ( T  x0,
T  x1,
T  x2,
T  angle,
T x,
T y,
T z 
)
static

Definition at line 124 of file PndFTSCAParameters.h.

References angle, x, x0, and y.

124  {
125  CALocalToGlobal<T>(x0,x1,angle,x,y);
126  z = x2;
127 }
Double_t x0
Definition: checkhelixhit.C:70
Double_t z
Double_t x
Double_t y
Double_t angle
template<typename T >
void PndFTSCAParameters::GlobalToCALocal ( T  x,
T  y,
T  angle,
T x0,
T x1 
)
static

Definition at line 130 of file PndFTSCAParameters.h.

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

Referenced by PndFTSCADisplay::DrawGBHits(), PndFTSCADisplay::DrawGBPoints(), PndFTSCAGBTracker::FitTrack(), PndFTSCAGBTracker::FitTracks(), PndFTSCAGBHit::GetLocalX0X1X2(), and PndFTSCAGBTracker::InitialTrackApproximation().

130  {
131  const T cA = CAMath::Cos( angle );
132  const T sA = CAMath::Sin( angle );
133  x0 = x*cA + y*sA;
134  x1 = -x*sA + y*cA;
135 }
Double_t x0
Definition: checkhelixhit.C:70
static T Sin(const T &x)
Definition: PndCAMath.h:42
static T Cos(const T &x)
Definition: PndCAMath.h:43
TTree * T
Definition: anaLmdReco.C:32
Double_t x
Double_t y
Double_t angle
template<typename T >
void PndFTSCAParameters::GlobalToCALocal ( T  x,
T  y,
T  z,
T  angle,
T x0,
T x1,
T x2 
)
static

Definition at line 138 of file PndFTSCAParameters.h.

References angle, x, x0, y, and z.

138  {
139  GlobalToCALocal<T>(x,y,angle,x0,x1);
140  x2 = z;
141 }
Double_t x0
Definition: checkhelixhit.C:70
Double_t z
Double_t x
Double_t y
Double_t angle

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