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

#include <CorrectionMapsLoader.h>

Inherits o2::gpu::CorrectionMapsHelper.

Public Member Functions

 CorrectionMapsLoader ()=default
 
 ~CorrectionMapsLoader ()=default
 
 CorrectionMapsLoader (const CorrectionMapsLoader &)=delete
 
bool accountCCDBInputs (const o2::framework::ConcreteDataMatcher &matcher, void *obj)
 
void extractCCDBInputs (o2::framework::ProcessingContext &pc)
 
void updateVDrift (float vdriftCorr, float vdrifRef, float driftTimeOffset=0)
 
void init (o2::framework::InitContext &ic)
 
void copySettings (const CorrectionMapsLoader &src)
 
void updateInverse ()
 
- Public Member Functions inherited from o2::gpu::CorrectionMapsHelper
 CorrectionMapsHelper ()=default
 
 ~CorrectionMapsHelper ()
 
 CorrectionMapsHelper (const CorrectionMapsHelper &)=delete
 
void updateLumiScale (bool report=false)
 
void clear ()
 
 GPUd () void Transform(int32_t slice
 
void setCorrMapRef (o2::gpu::TPCFastTransform *m)
 
void setCorrMapMShape (o2::gpu::TPCFastTransform *m)
 
void reportScaling ()
 
void setInstLumiCTP (float v)
 
void setInstLumi (float v, bool report=false)
 
void setMeanLumi (float v, bool report=false)
 
void setMeanLumiRef (float v, bool report=false)
 
void setLumiScaleMode (int32_t v)
 
 GPUd () float getInstLumiCTP() const
 
 GPUd () float getInstLumi() const
 
 GPUd () float getMeanLumi() const
 
 GPUd () float getMeanLumiRef() const
 
 GPUd () float getLumiScale() const
 
 GPUd () int32_t getLumiScaleMode() const
 
bool isUpdated () const
 
bool isUpdatedMap () const
 
bool isUpdatedMapRef () const
 
bool isUpdatedMapMShape () const
 
bool isUpdatedLumi () const
 
void setUpdatedMap ()
 
void setUpdatedMapRef ()
 
void setUpdatedMapMShape ()
 
void setUpdatedLumi ()
 
void setCorrMap (std::unique_ptr< o2::gpu::TPCFastTransform > &&m)
 
void setCorrMapRef (std::unique_ptr< o2::gpu::TPCFastTransform > &&m)
 
void setCorrMapMShape (std::unique_ptr< o2::gpu::TPCFastTransform > &&m)
 
void setOwner (bool v)
 
void acknowledgeUpdate ()
 
void setLumiCTPAvailable (bool v)
 
bool getLumiCTPAvailable () const
 
void setLumiScaleType (int32_t v)
 
int32_t getLumiScaleType () const
 
void enableMShapeCorrection (bool v)
 
bool getUseMShapeCorrection () const
 
bool canUseCorrections () const
 
void setMeanLumiOverride (float f)
 
void setMeanLumiRefOverride (float f)
 
float getMeanLumiOverride () const
 
float getMeanLumiRefOverride () const
 
void setInstCTPLumiOverride (float f)
 
float getInstCTPLumiOverride () const
 
int32_t getUpdateFlags () const
 
bool getScaleInverse () const
 
 GPUd () bool isCorrMapMShapeDummy() const
 return returns if the correction map for the M-shape correction is a dummy spline object
 

Static Public Member Functions

static void requestCCDBInputs (std::vector< o2::framework::InputSpec > &inputs, std::vector< o2::framework::ConfigParamSpec > &options, const CorrectionMapsLoaderGloOpts &gloOpts)
 recalculate inverse correction
 
static void addGlobalOptions (std::vector< o2::framework::ConfigParamSpec > &options)
 
static void addOptions (std::vector< o2::framework::ConfigParamSpec > &options)
 
static CorrectionMapsLoaderGloOpts parseGlobalOptions (const o2::framework::ConfigParamRegistry &opts)
 

Static Protected Member Functions

static void addOption (std::vector< o2::framework::ConfigParamSpec > &options, o2::framework::ConfigParamSpec &&osp)
 
static void addInput (std::vector< o2::framework::InputSpec > &inputs, o2::framework::InputSpec &&isp)
 

Protected Attributes

float mInstLumiCTPFactor = 1.0
 
int mLumiCTPSource = 0
 
std::unique_ptr< o2::gpu::TPCFastTransformmCorrMapMShape {nullptr}
 
- Protected Attributes inherited from o2::gpu::CorrectionMapsHelper
bool mOwner = false
 
bool mLumiCTPAvailable = false
 
int32_t mLumiScaleType = -1
 
int32_t mLumiScaleMode = -1
 
int32_t mUpdatedFlags = 0
 
float mInstLumiCTP = 0.
 
float mInstLumi = 0.
 
float mMeanLumi = 0.
 
float mMeanLumiRef = 0.
 
float mLumiScale = 0.
 
float mMeanLumiOverride = -1.f
 
float mMeanLumiRefOverride = -1.f
 
float mInstCTPLumiOverride = -1.f
 
bool mEnableMShape = false
 use v shape correction
 
bool mScaleInverse {false}
 
o2::gpu::TPCFastTransformmCorrMap {nullptr}
 
o2::gpu::TPCFastTransformmCorrMapRef {nullptr}
 
o2::gpu::TPCFastTransformmCorrMapMShape {nullptr}
 

Additional Inherited Members

- Public Attributes inherited from o2::gpu::CorrectionMapsHelper
int32_t row
 
int32_t float pad
 
int32_t float float time
 
int32_t float float float & x
 
int32_t float float float float & y
 
int32_t float float float float float & z
 
int32_t float float float float float float vertexTime
 
- Protected Types inherited from o2::gpu::CorrectionMapsHelper
enum  UpdateFlags { MapBit = 0x1 , MapRefBit = 0x2 , LumiBit = 0x4 , MapMShapeBit = 0x10 }
 
- Protected Member Functions inherited from o2::gpu::CorrectionMapsHelper
 ClassDefNV (CorrectionMapsHelper, 6)
 

Detailed Description

Definition at line 52 of file CorrectionMapsLoader.h.

Constructor & Destructor Documentation

◆ CorrectionMapsLoader() [1/2]

o2::tpc::CorrectionMapsLoader::CorrectionMapsLoader ( )
default

◆ ~CorrectionMapsLoader()

o2::tpc::CorrectionMapsLoader::~CorrectionMapsLoader ( )
default

◆ CorrectionMapsLoader() [2/2]

o2::tpc::CorrectionMapsLoader::CorrectionMapsLoader ( const CorrectionMapsLoader )
delete

Member Function Documentation

◆ accountCCDBInputs()

bool CorrectionMapsLoader::accountCCDBInputs ( const o2::framework::ConcreteDataMatcher matcher,
void obj 
)

Definition at line 174 of file CorrectionMapsLoader.cxx.

◆ addGlobalOptions()

void CorrectionMapsLoader::addGlobalOptions ( std::vector< o2::framework::ConfigParamSpec > &  options)
static

Definition at line 134 of file CorrectionMapsLoader.cxx.

◆ addInput()

void CorrectionMapsLoader::addInput ( std::vector< o2::framework::InputSpec > &  inputs,
o2::framework::InputSpec &&  isp 
)
staticprotected

Definition at line 158 of file CorrectionMapsLoader.cxx.

◆ addOption()

void CorrectionMapsLoader::addOption ( std::vector< o2::framework::ConfigParamSpec > &  options,
o2::framework::ConfigParamSpec &&  osp 
)
staticprotected

Definition at line 166 of file CorrectionMapsLoader.cxx.

◆ addOptions()

void CorrectionMapsLoader::addOptions ( std::vector< o2::framework::ConfigParamSpec > &  options)
static

Definition at line 125 of file CorrectionMapsLoader.cxx.

◆ copySettings()

void CorrectionMapsLoader::copySettings ( const CorrectionMapsLoader src)

Definition at line 263 of file CorrectionMapsLoader.cxx.

◆ extractCCDBInputs()

void CorrectionMapsLoader::extractCCDBInputs ( o2::framework::ProcessingContext pc)

Definition at line 46 of file CorrectionMapsLoader.cxx.

◆ init()

void CorrectionMapsLoader::init ( o2::framework::InitContext ic)

Definition at line 231 of file CorrectionMapsLoader.cxx.

◆ parseGlobalOptions()

CorrectionMapsLoaderGloOpts CorrectionMapsLoader::parseGlobalOptions ( const o2::framework::ConfigParamRegistry opts)
static

Definition at line 144 of file CorrectionMapsLoader.cxx.

◆ requestCCDBInputs()

void CorrectionMapsLoader::requestCCDBInputs ( std::vector< o2::framework::InputSpec > &  inputs,
std::vector< o2::framework::ConfigParamSpec > &  options,
const CorrectionMapsLoaderGloOpts gloOpts 
)
static

recalculate inverse correction

Definition at line 92 of file CorrectionMapsLoader.cxx.

◆ updateInverse()

void CorrectionMapsLoader::updateInverse ( )

Definition at line 282 of file CorrectionMapsLoader.cxx.

◆ updateVDrift()

void CorrectionMapsLoader::updateVDrift ( float  vdriftCorr,
float  vdrifRef,
float  driftTimeOffset = 0 
)

Definition at line 34 of file CorrectionMapsLoader.cxx.

Member Data Documentation

◆ mCorrMapMShape

std::unique_ptr<o2::gpu::TPCFastTransform> o2::tpc::CorrectionMapsLoader::mCorrMapMShape {nullptr}
protected

Definition at line 78 of file CorrectionMapsLoader.h.

◆ mInstLumiCTPFactor

float o2::tpc::CorrectionMapsLoader::mInstLumiCTPFactor = 1.0
protected

Definition at line 76 of file CorrectionMapsLoader.h.

◆ mLumiCTPSource

int o2::tpc::CorrectionMapsLoader::mLumiCTPSource = 0
protected

Definition at line 77 of file CorrectionMapsLoader.h.


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