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, float tpcScaler=-1.f)
 
void init (o2::framework::InitContext &ic, bool idcsAvailable)
 
void checkMeanScaleConsistency (float meanLumi, float threshold) const
 
- Public Member Functions inherited from o2::gpu::CorrectionMapsHelper
 CorrectionMapsHelper ()=default
 
 ~CorrectionMapsHelper ()
 
 CorrectionMapsHelper (const CorrectionMapsHelper &)=delete
 
void updateLumiScale (bool report=false)
 
void clear ()
 
const o2::gpu::TPCFastTransformgetCorrMap () const
 
const o2::gpu::TPCFastTransformgetCorrMapRef () const
 
const o2::gpu::TPCFastTransformgetCorrMapMShape () const
 
void setCorrMap (o2::gpu::TPCFastTransform *m)
 
void setCorrMapRef (o2::gpu::TPCFastTransform *m)
 
void setCorrMapMShape (std::unique_ptr< 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 (tpc::LumiScaleMode v)
 
void setCheckCTPIDCConsistency (bool v)
 
bool getCheckCTPIDCConsistency () const
 
float getInstLumiCTP () const
 
float getInstLumi () const
 
float getMeanLumi () const
 
float getMeanLumiRef () const
 
float getLumiScale () const
 
tpc::LumiScaleMode 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 acknowledgeUpdate ()
 
void setLumiCTPAvailable (bool v)
 
bool getLumiCTPAvailable () const
 
void setLumiScaleType (tpc::LumiScaleType v)
 
tpc::LumiScaleType 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 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, const o2::tpc::CorrectionMapsGloOpts &gloOpts)
 

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
 
bool mIDC2CTPFallbackActive = false
 
- Protected Attributes inherited from o2::gpu::CorrectionMapsHelper
bool mLumiCTPAvailable = false
 
tpc::LumiScaleType mLumiScaleType = tpc::LumiScaleType::Unset
 
tpc::LumiScaleMode mLumiScaleMode = tpc::LumiScaleMode::Unset
 
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 mCheckCTPIDCConsistency {true}
 
o2::gpu::TPCFastTransformmCorrMap {nullptr}
 
o2::gpu::TPCFastTransformmCorrMapRef {nullptr}
 
std::unique_ptr< o2::gpu::TPCFastTransformmCorrMapMShape {nullptr}
 

Additional Inherited Members

- 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 37 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 128 of file CorrectionMapsLoader.cxx.

◆ addInput()

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

Definition at line 112 of file CorrectionMapsLoader.cxx.

◆ addOption()

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

Definition at line 120 of file CorrectionMapsLoader.cxx.

◆ checkMeanScaleConsistency()

void CorrectionMapsLoader::checkMeanScaleConsistency ( float  meanLumi,
float  threshold 
) const

Definition at line 241 of file CorrectionMapsLoader.cxx.

◆ extractCCDBInputs()

void CorrectionMapsLoader::extractCCDBInputs ( o2::framework::ProcessingContext pc,
float  tpcScaler = -1.f 
)

Definition at line 28 of file CorrectionMapsLoader.cxx.

◆ init()

void CorrectionMapsLoader::init ( o2::framework::InitContext ic,
bool  idcsAvailable 
)

Definition at line 223 of file CorrectionMapsLoader.cxx.

◆ requestCCDBInputs()

void CorrectionMapsLoader::requestCCDBInputs ( std::vector< o2::framework::InputSpec > &  inputs,
const o2::tpc::CorrectionMapsGloOpts gloOpts 
)
static

Definition at line 87 of file CorrectionMapsLoader.cxx.

Member Data Documentation

◆ mIDC2CTPFallbackActive

bool o2::tpc::CorrectionMapsLoader::mIDC2CTPFallbackActive = false
protected

Definition at line 57 of file CorrectionMapsLoader.h.

◆ mInstLumiCTPFactor

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

Definition at line 55 of file CorrectionMapsLoader.h.

◆ mLumiCTPSource

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

Definition at line 56 of file CorrectionMapsLoader.h.


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