![]() |
Project
|
#include <TPCFastSpaceChargeCorrectionHelper.h>
Public Member Functions | |
TPCFastSpaceChargeCorrectionHelper ()=default | |
_____________ Constructors / destructors __________________________ | |
TPCFastSpaceChargeCorrectionHelper (const TPCFastSpaceChargeCorrectionHelper &)=delete | |
Copy constructor: disabled. | |
TPCFastSpaceChargeCorrectionHelper & | operator= (const TPCFastSpaceChargeCorrectionHelper &)=delete |
Assignment operator: disabled. | |
~TPCFastSpaceChargeCorrectionHelper ()=default | |
Destructor. | |
void | setNthreads (int n) |
_______________ Settings ________________________ | |
void | setNthreadsToMaximum () |
sets number of threads to N cpu cores | |
int | getNthreads () const |
get the number of threads | |
std::unique_ptr< TPCFastSpaceChargeCorrection > | createFromLocalCorrection (std::function< void(int roc, int irow, double y, double z, double &dx, double &dy, double &dz)> correctionLocal, const int nKnotsY=10, const int nKnotsZ=20) |
_______________ Main functionality ________________________ | |
std::unique_ptr< TPCFastSpaceChargeCorrection > | createFromGlobalCorrection (std::function< void(int roc, double gx, double gy, double gz, double &dgx, double &dgy, double &dgz)> correctionGlobal, const int nKnotsY=10, const int nKnotsZ=20) |
creates TPCFastSpaceChargeCorrection object from a continious space charge correction in global coordinates | |
std::unique_ptr< o2::gpu::TPCFastSpaceChargeCorrection > | createFromTrackResiduals (const o2::tpc::TrackResiduals &trackResiduals, TTree *voxResTree, bool useSmoothed=false, bool invertSigns=false) |
Create SpaceCharge correction out of the voxel tree. | |
const TPCFastTransformGeo & | getGeometry () |
_______________ Utilities ________________________ | |
TPCFastSpaceChargeCorrectionMap & | getCorrectionMap () |
void | fillSpaceChargeCorrectionFromMap (TPCFastSpaceChargeCorrection &correction) |
void | testGeometry (const TPCFastTransformGeo &geo) const |
void | initInverse (o2::gpu::TPCFastSpaceChargeCorrection &correction, bool prn) |
initialise inverse transformation | |
void | initInverse (std::vector< o2::gpu::TPCFastSpaceChargeCorrection * > &corrections, const std::vector< float > &scaling, bool prn) |
initialise inverse transformation from linear combination of several input corrections | |
Static Public Member Functions | |
static TPCFastSpaceChargeCorrectionHelper * | instance () |
Singleton. | |
Definition at line 42 of file TPCFastSpaceChargeCorrectionHelper.h.
|
default |
_____________ Constructors / destructors __________________________
Default constructor
|
delete |
Copy constructor: disabled.
|
default |
Destructor.
std::unique_ptr< TPCFastSpaceChargeCorrection > o2::tpc::TPCFastSpaceChargeCorrectionHelper::createFromGlobalCorrection | ( | std::function< void(int roc, double gx, double gy, double gz, double &dgx, double &dgy, double &dgz)> | correctionGlobal, |
const int | nKnotsY = 10 , |
||
const int | nKnotsZ = 20 |
||
) |
creates TPCFastSpaceChargeCorrection object from a continious space charge correction in global coordinates
creates TPCFastSpaceChargeCorrection object from a continious space charge correction in global coordinates
Definition at line 207 of file TPCFastSpaceChargeCorrectionHelper.cxx.
std::unique_ptr< TPCFastSpaceChargeCorrection > o2::tpc::TPCFastSpaceChargeCorrectionHelper::createFromLocalCorrection | ( | std::function< void(int roc, int irow, double y, double z, double &dx, double &dy, double &dz)> | correctionLocal, |
const int | nKnotsY = 10 , |
||
const int | nKnotsZ = 20 |
||
) |
_______________ Main functionality ________________________
creates TPCFastSpaceChargeCorrection object from a continious space charge correction in local coordinates
creates TPCFastSpaceChargeCorrection object from a continious space charge correction in local coordinates
set space charge correction in the local coordinates as a continious function
Definition at line 231 of file TPCFastSpaceChargeCorrectionHelper.cxx.
std::unique_ptr< o2::gpu::TPCFastSpaceChargeCorrection > o2::tpc::TPCFastSpaceChargeCorrectionHelper::createFromTrackResiduals | ( | const o2::tpc::TrackResiduals & | trackResiduals, |
TTree * | voxResTree, | ||
bool | useSmoothed = false , |
||
bool | invertSigns = false |
||
) |
Create SpaceCharge correction out of the voxel tree.
Definition at line 378 of file TPCFastSpaceChargeCorrectionHelper.cxx.
void o2::tpc::TPCFastSpaceChargeCorrectionHelper::fillSpaceChargeCorrectionFromMap | ( | TPCFastSpaceChargeCorrection & | correction | ) |
Definition at line 116 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
inline |
Definition at line 94 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
_______________ Utilities ________________________
Definition at line 92 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
get the number of threads
Definition at line 71 of file TPCFastSpaceChargeCorrectionHelper.h.
void o2::tpc::TPCFastSpaceChargeCorrectionHelper::initInverse | ( | o2::gpu::TPCFastSpaceChargeCorrection & | correction, |
bool | prn | ||
) |
initialise inverse transformation
Definition at line 655 of file TPCFastSpaceChargeCorrectionHelper.cxx.
void o2::tpc::TPCFastSpaceChargeCorrectionHelper::initInverse | ( | std::vector< o2::gpu::TPCFastSpaceChargeCorrection * > & | corrections, |
const std::vector< float > & | scaling, | ||
bool | prn | ||
) |
initialise inverse transformation from linear combination of several input corrections
initialise inverse transformation
Definition at line 661 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
static |
Singleton.
Definition at line 42 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
delete |
Assignment operator: disabled.
_______________ Settings ________________________
sets number of threads to use
Definition at line 97 of file TPCFastSpaceChargeCorrectionHelper.cxx.
void o2::tpc::TPCFastSpaceChargeCorrectionHelper::setNthreadsToMaximum | ( | ) |
sets number of threads to N cpu cores
sets number of threads to N cpu cores
Definition at line 103 of file TPCFastSpaceChargeCorrectionHelper.cxx.
void o2::tpc::TPCFastSpaceChargeCorrectionHelper::testGeometry | ( | const TPCFastTransformGeo & | geo | ) | const |
Definition at line 324 of file TPCFastSpaceChargeCorrectionHelper.cxx.