Project
Loading...
Searching...
No Matches
o2::tpc::AnalyticalDistCorr< DataT > Class Template Reference

struct for containing simple analytical distortions (as function of local coordinates) and the resulting corrections More...

#include <SpaceChargeHelpers.h>

Public Member Functions

DataT getDistortionsLX (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
DataT getCorrectionsLX (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
DataT getDistortionsLY (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
DataT getCorrectionsLY (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
DataT getDistortionsLZ (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
DataT getCorrectionsLZ (const DataT lx, const DataT ly, const DataT lz, const Side side) const
 
void initDefault ()
 set default analytical formulas for distortions and corrections
 
bool isValid () const
 check if all formulas are valid
 
 ClassDefNV (AnalyticalDistCorr, 1)
 

Public Attributes

TFormula mDlXFormula {}
 analytical distortions in lx as a function of lx
 
TFormula mClXFormula {}
 analytical corrections in lx as a function of lx
 
TFormula mDlYFormula {}
 analytical distortions in ly as a function of lx
 
TFormula mClYFormula {}
 analytical correction in ly as a function of lx
 
TFormula mDlZFormula {}
 analytical correction in lz as a function of lz
 
TFormula mClZFormula {}
 analytical correction in lz as a function of lz
 

Detailed Description

template<typename DataT = double>
class o2::tpc::AnalyticalDistCorr< DataT >

struct for containing simple analytical distortions (as function of local coordinates) and the resulting corrections

Definition at line 166 of file SpaceChargeHelpers.h.

Member Function Documentation

◆ ClassDefNV()

template<typename DataT = double>
o2::tpc::AnalyticalDistCorr< DataT >::ClassDefNV ( AnalyticalDistCorr< DataT ,
 
)

◆ getCorrectionsLX()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getCorrectionsLX ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 170 of file SpaceChargeHelpers.h.

◆ getCorrectionsLY()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getCorrectionsLY ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 172 of file SpaceChargeHelpers.h.

◆ getCorrectionsLZ()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getCorrectionsLZ ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 174 of file SpaceChargeHelpers.h.

◆ getDistortionsLX()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getDistortionsLX ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 169 of file SpaceChargeHelpers.h.

◆ getDistortionsLY()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getDistortionsLY ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 171 of file SpaceChargeHelpers.h.

◆ getDistortionsLZ()

template<typename DataT = double>
DataT o2::tpc::AnalyticalDistCorr< DataT >::getDistortionsLZ ( const DataT  lx,
const DataT  ly,
const DataT  lz,
const Side  side 
) const
inline

Definition at line 173 of file SpaceChargeHelpers.h.

◆ initDefault()

template<typename DataT = double>
void o2::tpc::AnalyticalDistCorr< DataT >::initDefault ( )
inline

set default analytical formulas for distortions and corrections

< analytical distortions in lx as a function of lx

< analytical corrections in lx as a function of lx

< analytical distortions in ly as a function of lx

< analytical correction in ly as a function of lx

< analytical correction in lz as a function of lz

< analytical correction in lz as a function of lz

Definition at line 177 of file SpaceChargeHelpers.h.

◆ isValid()

template<typename DataT = double>
bool o2::tpc::AnalyticalDistCorr< DataT >::isValid ( ) const
inline

check if all formulas are valid

Definition at line 188 of file SpaceChargeHelpers.h.

Member Data Documentation

◆ mClXFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mClXFormula {}

analytical corrections in lx as a function of lx

analytical correction in lx as a function of lx distorted point: lx_2 = lx_1 + mDlX(lx_1) lx_2 = lx_1 + (TPCParameters<DataT>::OFCRADIUS - lx) / 50); lx_2 * 50 = lx_1 * 50 + TPCParameters<DataT>::OFCRADIUS - lx lx_2 * 50 - TPCParameters<DataT>::OFCRADIUS = lx_1 * 49 lx_2 * 50 - TPCParameters<DataT>::OFCRADIUS / 49 = lx_1 correction: dCorrX = lx_2 - lx_1

const DataT lx2 = (lx * 50 - TPCParameters<DataT>::OFCRADIUS) / 49; return lx2 - lx;

Definition at line 204 of file SpaceChargeHelpers.h.

◆ mClYFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mClYFormula {}

analytical correction in ly as a function of lx

const DataT dlX_1 = lx + mClX(lx, 0, 0, Side::A); // corrected point (original point without distortion) return -mDlY(dlX_1, 0, 0, Side::A); // distortion at original point

Definition at line 212 of file SpaceChargeHelpers.h.

◆ mClZFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mClZFormula {}

analytical correction in lz as a function of lz

lz_2 = lz_1 + mDlZ(lz_1) lz_2 = lz_1 + lz_1 / 50 lz_2 = lz_1 * (1 + 1/50) lz_2 / (1 + 1/50) = lz_1 lz_2 * 50 / 51 = lz_1

const DataT lz2 = lz * 50 / 51.; const DataT diffZ = lz2 - lz; return diffZ;

Definition at line 227 of file SpaceChargeHelpers.h.

◆ mDlXFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mDlXFormula {}

analytical distortions in lx as a function of lx

const DataT dlX = (TPCParameters<DataT>::OFCRADIUS - lx) / 50; // (171 -> 0) / 50 = 3.42 cn return dlX;

Definition at line 192 of file SpaceChargeHelpers.h.

◆ mDlYFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mDlYFormula {}

analytical distortions in ly as a function of lx

const DataT dlY = 2 + 0.01 * lx; return dlY;

Definition at line 208 of file SpaceChargeHelpers.h.

◆ mDlZFormula

template<typename DataT = double>
TFormula o2::tpc::AnalyticalDistCorr< DataT >::mDlZFormula {}

analytical correction in lz as a function of lz

const DataT dlZ = lz / 50; return dlZ;

Definition at line 216 of file SpaceChargeHelpers.h.


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