![]() |
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, TTree *voxResTreeInverse, bool useSmoothed, bool invertSigns, TPCFastSpaceChargeCorrectionMap *fitPointsDirect=nullptr, TPCFastSpaceChargeCorrectionMap *fitPointsInverse=nullptr) |
| const TPCFastTransformGeo & | getGeometry () |
| _______________ Utilities ________________________ | |
| TPCFastSpaceChargeCorrectionMap & | getCorrectionMap () |
| 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 | |
| void | mergeCorrections (o2::gpu::TPCFastSpaceChargeCorrection &mainCorrection, float scale, const std::vector< std::pair< const o2::gpu::TPCFastSpaceChargeCorrection *, float > > &additionalCorrections, bool prn) |
| void | setVoxelMeanValidityRange (double range) |
| how far the voxel mean is allowed to be outside of the voxel (1.1 means 10%) | |
| double | getVoxelMeanValidityRange () const |
| void | setDebugUseVoxelCenters () |
| debug: if true, use voxel centers instead of the fitted positions for correction | |
| bool | isDebugUseVoxelCenters () const |
| void | setDebugMirrorAdata2C () |
| debug: if true, mirror the data from the A side to the C side of the TPC | |
| bool | isDebugMirrorAdata2C () const |
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 212 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 236 of file TPCFastSpaceChargeCorrectionHelper.cxx.
| std::unique_ptr< o2::gpu::TPCFastSpaceChargeCorrection > o2::tpc::TPCFastSpaceChargeCorrectionHelper::createFromTrackResiduals | ( | const o2::tpc::TrackResiduals & | trackResiduals, |
| TTree * | voxResTree, | ||
| TTree * | voxResTreeInverse, | ||
| bool | useSmoothed, | ||
| bool | invertSigns, | ||
| TPCFastSpaceChargeCorrectionMap * | fitPointsDirect = nullptr, |
||
| TPCFastSpaceChargeCorrectionMap * | fitPointsInverse = nullptr |
||
| ) |
Create SpaceCharge correction out of the voxel tree
| trackResiduals | TrackResiduals object |
| voxResTree | TTree with voxel residuals |
| voxResTreeInverse | TTree with inverse voxel residuals |
| useSmoothed | if true, use smoothed residuals |
| invertSigns | if true, invert the signs of the residuals |
| fitPointsDirect | debug: pointer to the data used for the direct correction |
| fitPointsInverse | debug: pointer to the data used for the inverse correction |
Definition at line 381 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
inline |
Definition at line 108 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
_______________ Utilities ________________________
Definition at line 106 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
get the number of threads
Definition at line 71 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
Definition at line 134 of file TPCFastSpaceChargeCorrectionHelper.h.
| void o2::tpc::TPCFastSpaceChargeCorrectionHelper::initInverse | ( | o2::gpu::TPCFastSpaceChargeCorrection & | correction, |
| bool | prn | ||
| ) |
initialise inverse transformation
Definition at line 880 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 886 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
static |
Singleton.
Definition at line 47 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
inline |
Definition at line 144 of file TPCFastSpaceChargeCorrectionHelper.h.
|
inline |
Definition at line 139 of file TPCFastSpaceChargeCorrectionHelper.h.
| void o2::tpc::TPCFastSpaceChargeCorrectionHelper::mergeCorrections | ( | o2::gpu::TPCFastSpaceChargeCorrection & | mainCorrection, |
| float | scale, | ||
| const std::vector< std::pair< const o2::gpu::TPCFastSpaceChargeCorrection *, float > > & | additionalCorrections, | ||
| bool | prn | ||
| ) |
merge several corrections
| mainCorrection | main correction |
| scale | scaling factor for the main correction |
| additionalCorrections | vector of pairs of additional corrections and their scaling factors |
| prn | printout flag |
merge several corrections
Definition at line 1016 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
delete |
Assignment operator: disabled.
| void o2::tpc::TPCFastSpaceChargeCorrectionHelper::setDebugMirrorAdata2C | ( | ) |
debug: if true, mirror the data from the A side to the C side of the TPC
Definition at line 1163 of file TPCFastSpaceChargeCorrectionHelper.cxx.
| void o2::tpc::TPCFastSpaceChargeCorrectionHelper::setDebugUseVoxelCenters | ( | ) |
debug: if true, use voxel centers instead of the fitted positions for correction
Definition at line 1157 of file TPCFastSpaceChargeCorrectionHelper.cxx.
_______________ Settings ________________________
sets number of threads to use
Definition at line 98 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 104 of file TPCFastSpaceChargeCorrectionHelper.cxx.
|
inline |
how far the voxel mean is allowed to be outside of the voxel (1.1 means 10%)
Definition at line 129 of file TPCFastSpaceChargeCorrectionHelper.h.
| void o2::tpc::TPCFastSpaceChargeCorrectionHelper::testGeometry | ( | const TPCFastTransformGeo & | geo | ) | const |
Definition at line 327 of file TPCFastSpaceChargeCorrectionHelper.cxx.