21#ifndef ALICEO2_TPC_TPCFastSpaceChargeCorrectionHelper_H_
22#define ALICEO2_TPC_TPCFastSpaceChargeCorrectionHelper_H_
77 std::function<
void(
int roc,
int irow,
double y,
double z,
double& dx,
double& dy,
double& dz)> correctionLocal,
78 const int nKnotsY = 10,
const int nKnotsZ = 20);
82 std::function<
void(
int roc,
double gx,
double gy,
double gz,
83 double& dgx,
double& dgy,
double& dgz)>
85 const int nKnotsY = 10,
const int nKnotsZ = 20);
89 const o2::tpc::TrackResiduals& trackResiduals, TTree* voxResTree,
bool useSmoothed =
false,
bool invertSigns =
false);
104 void initInverse(std::vector<o2::gpu::TPCFastSpaceChargeCorrection*>& corrections,
const std::vector<float>& scaling,
bool prn);
117 bool mIsInitialized = 0;
Definition of TPCFastSpaceChargeCorrectionMap class.
Definition of TPCFastSpaceChargeCorrection class.
Definition of the TrackResiduals class.
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 ________________________
const TPCFastTransformGeo & getGeometry()
_______________ Utilities ________________________
int getNthreads() const
get the number of threads
void initInverse(o2::gpu::TPCFastSpaceChargeCorrection &correction, bool prn)
initialise inverse transformation
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.
TPCFastSpaceChargeCorrectionMap & getCorrectionMap()
~TPCFastSpaceChargeCorrectionHelper()=default
Destructor.
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 coord...
void testGeometry(const TPCFastTransformGeo &geo) const
TPCFastSpaceChargeCorrectionHelper()=default
_____________ Constructors / destructors __________________________
void setNthreads(int n)
_______________ Settings ________________________
TPCFastSpaceChargeCorrectionHelper(const TPCFastSpaceChargeCorrectionHelper &)=delete
Copy constructor: disabled.
void setNthreadsToMaximum()
sets number of threads to N cpu cores
void fillSpaceChargeCorrectionFromMap(TPCFastSpaceChargeCorrection &correction)
static TPCFastSpaceChargeCorrectionHelper * instance()
Singleton.
TPCFastSpaceChargeCorrectionHelper & operator=(const TPCFastSpaceChargeCorrectionHelper &)=delete
Assignment operator: disabled.
GLdouble GLdouble GLdouble z
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
The struct contains necessary info for TPC padrow.