Project
Loading...
Searching...
No Matches
o2::tpc::TPCFastSpaceChargeCorrectionHelper Class Reference

#include <TPCFastSpaceChargeCorrectionHelper.h>

Public Member Functions

 TPCFastSpaceChargeCorrectionHelper ()=default
 _____________ Constructors / destructors __________________________
 
 TPCFastSpaceChargeCorrectionHelper (const TPCFastSpaceChargeCorrectionHelper &)=delete
 Copy constructor: disabled.
 
TPCFastSpaceChargeCorrectionHelperoperator= (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< TPCFastSpaceChargeCorrectioncreateFromLocalCorrection (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< TPCFastSpaceChargeCorrectioncreateFromGlobalCorrection (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::TPCFastSpaceChargeCorrectioncreateFromTrackResiduals (const o2::tpc::TrackResiduals &trackResiduals, TTree *voxResTree, bool useSmoothed=false, bool invertSigns=false)
 Create SpaceCharge correction out of the voxel tree.
 
const TPCFastTransformGeogetGeometry ()
 _______________ Utilities ________________________
 
TPCFastSpaceChargeCorrectionMapgetCorrectionMap ()
 
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 TPCFastSpaceChargeCorrectionHelperinstance ()
 Singleton.
 

Detailed Description

Definition at line 42 of file TPCFastSpaceChargeCorrectionHelper.h.

Constructor & Destructor Documentation

◆ TPCFastSpaceChargeCorrectionHelper() [1/2]

o2::tpc::TPCFastSpaceChargeCorrectionHelper::TPCFastSpaceChargeCorrectionHelper ( )
default

_____________ Constructors / destructors __________________________

Default constructor

◆ TPCFastSpaceChargeCorrectionHelper() [2/2]

o2::tpc::TPCFastSpaceChargeCorrectionHelper::TPCFastSpaceChargeCorrectionHelper ( const TPCFastSpaceChargeCorrectionHelper )
delete

Copy constructor: disabled.

◆ ~TPCFastSpaceChargeCorrectionHelper()

o2::tpc::TPCFastSpaceChargeCorrectionHelper::~TPCFastSpaceChargeCorrectionHelper ( )
default

Destructor.

Member Function Documentation

◆ createFromGlobalCorrection()

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.

◆ createFromLocalCorrection()

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.

◆ createFromTrackResiduals()

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.

◆ fillSpaceChargeCorrectionFromMap()

void o2::tpc::TPCFastSpaceChargeCorrectionHelper::fillSpaceChargeCorrectionFromMap ( TPCFastSpaceChargeCorrection correction)

Definition at line 116 of file TPCFastSpaceChargeCorrectionHelper.cxx.

◆ getCorrectionMap()

TPCFastSpaceChargeCorrectionMap & o2::tpc::TPCFastSpaceChargeCorrectionHelper::getCorrectionMap ( )
inline

Definition at line 94 of file TPCFastSpaceChargeCorrectionHelper.h.

◆ getGeometry()

const TPCFastTransformGeo & o2::tpc::TPCFastSpaceChargeCorrectionHelper::getGeometry ( )
inline

_______________ Utilities ________________________

Definition at line 92 of file TPCFastSpaceChargeCorrectionHelper.h.

◆ getNthreads()

int o2::tpc::TPCFastSpaceChargeCorrectionHelper::getNthreads ( ) const
inline

get the number of threads

Definition at line 71 of file TPCFastSpaceChargeCorrectionHelper.h.

◆ initInverse() [1/2]

void o2::tpc::TPCFastSpaceChargeCorrectionHelper::initInverse ( o2::gpu::TPCFastSpaceChargeCorrection correction,
bool  prn 
)

initialise inverse transformation

Definition at line 655 of file TPCFastSpaceChargeCorrectionHelper.cxx.

◆ initInverse() [2/2]

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.

◆ instance()

TPCFastSpaceChargeCorrectionHelper * o2::tpc::TPCFastSpaceChargeCorrectionHelper::instance ( )
static

Singleton.

Definition at line 42 of file TPCFastSpaceChargeCorrectionHelper.cxx.

◆ operator=()

TPCFastSpaceChargeCorrectionHelper & o2::tpc::TPCFastSpaceChargeCorrectionHelper::operator= ( const TPCFastSpaceChargeCorrectionHelper )
delete

Assignment operator: disabled.

◆ setNthreads()

void o2::tpc::TPCFastSpaceChargeCorrectionHelper::setNthreads ( int  n)

_______________ Settings ________________________

sets number of threads to use

Definition at line 97 of file TPCFastSpaceChargeCorrectionHelper.cxx.

◆ setNthreadsToMaximum()

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.

◆ testGeometry()

void o2::tpc::TPCFastSpaceChargeCorrectionHelper::testGeometry ( const TPCFastTransformGeo geo) const

Definition at line 324 of file TPCFastSpaceChargeCorrectionHelper.cxx.


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