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

#include <VDriftHelper.h>

Public Types

enum  Source : int { Param , Laser , ITSTPCTgl , NSources }
 

Public Member Functions

 VDriftHelper ()
 
void accountLaserCalibration (const LtrCalibData *calib, long fallBackTimeStamp=2)
 
void accountDriftCorrectionITSTPCTgl (const VDriftCorrFact *calib)
 
bool isUpdated () const
 
void acknowledgeUpdate ()
 
const VDriftCorrFactgetVDriftObject () const
 
Source getSource () const
 
std::string_view getSourceName () const
 
const auto & getPTHelper () const
 
bool accountCCDBInputs (const o2::framework::ConcreteDataMatcher &matcher, void *obj)
 
void extractCCDBInputs (o2::framework::ProcessingContext &pc, bool laser=true, bool itstpcTgl=true)
 
void extractCCDBInputs (o2::ccdb::BasicCCDBManager &ccdb, long timestampMS, bool laser=false, bool itstpcTgl=true)
 

Static Public Member Functions

static std::string_view getSourceName (Source s)
 
static void requestCCDBInputs (std::vector< o2::framework::InputSpec > &inputs, bool laser=true, bool itstpcTgl=true)
 

Static Public Attributes

static constexpr std::array< std::string_view, NSourcesSourceNames
 

Protected Member Functions

bool extractTPForVDrift (VDriftCorrFact &vdrift, int64_t tsStepMS=100 *1000)
 
void updateVDrift (long currentTimeMS)
 Combine the previously accounted laser/ITS-TPC-Tgl inputs, applying T/P scaling if possible, into mVD.
 
 ClassDefNV (VDriftHelper, 2)
 

Static Protected Member Functions

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

Protected Attributes

VDriftCorrFact mVDLaser {}
 
VDriftCorrFact mVDTPCITSTgl {}
 
VDriftCorrFact mVD {}
 
Source mSource {Source::Param}
 
bool mUpdated = false
 
bool mIsTPScalingPossible = false
 
bool mForceParamDrift = false
 
bool mForceParamOffset = false
 
bool mForceTPScaling = false
 
uint32_t mMayRenormSrc = 0xffffffff
 
PressureTemperatureHelper mPTHelper
 

Detailed Description

Definition at line 42 of file VDriftHelper.h.

Member Enumeration Documentation

◆ Source

Enumerator
Param 
Laser 
ITSTPCTgl 
NSources 

Definition at line 45 of file VDriftHelper.h.

Constructor & Destructor Documentation

◆ VDriftHelper()

VDriftHelper::VDriftHelper ( )

Definition at line 31 of file VDriftHelper.cxx.

Member Function Documentation

◆ accountCCDBInputs()

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

Definition at line 272 of file VDriftHelper.cxx.

◆ accountDriftCorrectionITSTPCTgl()

void VDriftHelper::accountDriftCorrectionITSTPCTgl ( const VDriftCorrFact calib)

Definition at line 106 of file VDriftHelper.cxx.

◆ accountLaserCalibration()

void VDriftHelper::accountLaserCalibration ( const LtrCalibData calib,
long  fallBackTimeStamp = 2 
)

Definition at line 67 of file VDriftHelper.cxx.

◆ acknowledgeUpdate()

void o2::tpc::VDriftHelper::acknowledgeUpdate ( )
inline

Definition at line 59 of file VDriftHelper.h.

◆ addInput()

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

Definition at line 264 of file VDriftHelper.cxx.

◆ ClassDefNV()

o2::tpc::VDriftHelper::ClassDefNV ( VDriftHelper  ,
 
)
protected

◆ extractCCDBInputs() [1/2]

void VDriftHelper::extractCCDBInputs ( o2::ccdb::BasicCCDBManager ccdb,
long  timestampMS,
bool  laser = false,
bool  itstpcTgl = true 
)

Fetch calibration objects via a BasicCCDBManager and update the VDrift accordingly (for use outside a DPL device, e.g. O2Physics). Objects are only re-accounted if they actually changed since the last call.

Definition at line 156 of file VDriftHelper.cxx.

◆ extractCCDBInputs() [2/2]

void VDriftHelper::extractCCDBInputs ( o2::framework::ProcessingContext pc,
bool  laser = true,
bool  itstpcTgl = true 
)

Definition at line 140 of file VDriftHelper.cxx.

◆ extractTPForVDrift()

bool VDriftHelper::extractTPForVDrift ( VDriftCorrFact vdrift,
int64_t  tsStepMS = 100 * 1000 
)
protected

Definition at line 285 of file VDriftHelper.cxx.

◆ getPTHelper()

const auto & o2::tpc::VDriftHelper::getPTHelper ( ) const
inline

Definition at line 65 of file VDriftHelper.h.

◆ getSource()

Source o2::tpc::VDriftHelper::getSource ( ) const
inline

Definition at line 62 of file VDriftHelper.h.

◆ getSourceName() [1/2]

std::string_view o2::tpc::VDriftHelper::getSourceName ( ) const
inline

Definition at line 64 of file VDriftHelper.h.

◆ getSourceName() [2/2]

static std::string_view o2::tpc::VDriftHelper::getSourceName ( Source  s)
inlinestatic

Definition at line 63 of file VDriftHelper.h.

◆ getVDriftObject()

const VDriftCorrFact & o2::tpc::VDriftHelper::getVDriftObject ( ) const
inline

Definition at line 61 of file VDriftHelper.h.

◆ isUpdated()

bool o2::tpc::VDriftHelper::isUpdated ( ) const
inline

Definition at line 58 of file VDriftHelper.h.

◆ requestCCDBInputs()

void VDriftHelper::requestCCDBInputs ( std::vector< o2::framework::InputSpec > &  inputs,
bool  laser = true,
bool  itstpcTgl = true 
)
static

Definition at line 250 of file VDriftHelper.cxx.

◆ updateVDrift()

void VDriftHelper::updateVDrift ( long  currentTimeMS)
protected

Combine the previously accounted laser/ITS-TPC-Tgl inputs, applying T/P scaling if possible, into mVD.

Definition at line 185 of file VDriftHelper.cxx.

Member Data Documentation

◆ mForceParamDrift

bool o2::tpc::VDriftHelper::mForceParamDrift = false
protected

Definition at line 87 of file VDriftHelper.h.

◆ mForceParamOffset

bool o2::tpc::VDriftHelper::mForceParamOffset = false
protected

Definition at line 88 of file VDriftHelper.h.

◆ mForceTPScaling

bool o2::tpc::VDriftHelper::mForceTPScaling = false
protected

Definition at line 89 of file VDriftHelper.h.

◆ mIsTPScalingPossible

bool o2::tpc::VDriftHelper::mIsTPScalingPossible = false
protected

Definition at line 86 of file VDriftHelper.h.

◆ mMayRenormSrc

uint32_t o2::tpc::VDriftHelper::mMayRenormSrc = 0xffffffff
protected

Definition at line 90 of file VDriftHelper.h.

◆ mPTHelper

PressureTemperatureHelper o2::tpc::VDriftHelper::mPTHelper
protected

Definition at line 91 of file VDriftHelper.h.

◆ mSource

Source o2::tpc::VDriftHelper::mSource {Source::Param}
protected

Definition at line 84 of file VDriftHelper.h.

◆ mUpdated

bool o2::tpc::VDriftHelper::mUpdated = false
protected

Definition at line 85 of file VDriftHelper.h.

◆ mVD

VDriftCorrFact o2::tpc::VDriftHelper::mVD {}
protected

Definition at line 83 of file VDriftHelper.h.

◆ mVDLaser

VDriftCorrFact o2::tpc::VDriftHelper::mVDLaser {}
protected

Definition at line 81 of file VDriftHelper.h.

◆ mVDTPCITSTgl

VDriftCorrFact o2::tpc::VDriftHelper::mVDTPCITSTgl {}
protected

Definition at line 82 of file VDriftHelper.h.

◆ SourceNames

constexpr std::array<std::string_view, NSources> o2::tpc::VDriftHelper::SourceNames
staticconstexpr
Initial value:
= {
"Param",
"Laser",
"TPCITSTgl"}

Definition at line 50 of file VDriftHelper.h.


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