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

Global parameters.

Enumerator
MaxNStations 
NMVDStations 
MinimumHitsForRecoTrack 
MaxCellLength 
LastCellLength 

Definition at line 24 of file PndCAParameters.h.

Member Function Documentation

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

Definition at line 64 of file PndCAParameters.h.

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

Referenced by PndCAGBHit::GetLocalX0X1X2().

64  {
65  const T cA = CAMath::Cos( angle );
66  const T sA = CAMath::Sin( angle );
67  //SG!!!
68  //x0 = x*cA + y*sA;
69  //x1 = x*cA - y*cA;
70  x0 = x*sA + y*cA;
71  x1 = x*cA - y*sA;
72 }
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 PndCAParameters::GlobalToCALocal ( T  x,
T  y,
T  z,
T  angle,
T x0,
T x1,
T x2 
)
static

Definition at line 75 of file PndCAParameters.h.

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

75  {
76  GlobalToCALocal<T>(x,y,angle,x0,x1);
77  x2 = -z;
78 }
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: