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

#include <CalibdEdxCorrection.h>

Public Member Functions

 CalibdEdxCorrection ()
 
 CalibdEdxCorrection (std::string_view fileName)
 
 ~CalibdEdxCorrection ()=default
 
 GPUd () float getCorrection(const StackID &stack
 
void writeToFile (std::string_view fileName, std::string_view objName="ccdb_object") const
 
void loadFromFile (std::string_view fileName, std::string_view objName="ccdb_object")
 
void dumpToTree (const char *outFileName="calib_dedx.root") const
 
const std::array< float, ParamSizegetMeanParams (ChargeType charge) const
 Parameters averaged over all stacks.
 
const std::array< float, ParamSizegetMeanParams (const GEMstack stack, ChargeType charge) const
 Parameters averaged over all sectors for a stack type.
 
float getMeanParam (ChargeType charge, uint32_t param) const
 Single fit parameters averaged over all sectors for a stack type.
 
float getMeanParam (const GEMstack stack, ChargeType charge, uint32_t param) const
 Single fit parameters averaged over all sectors for a stack type.
 
float getMeanEntries (ChargeType charge) const
 Single fit parameters averaged over all sectors for a stack type.
 
float getMeanEntries (const GEMstack stack, ChargeType charge) const
 Single fit parameters averaged over all sectors for a stack type.
 

Public Attributes

ChargeType charge
 
ChargeType float tgl = 0
 
ChargeType float float snp
 

Static Public Attributes

static constexpr int FitSize = 288
 Number of fitted corrections.
 
static constexpr int ParamSize = 8
 Number of params per fit.
 

Detailed Description

Definition at line 39 of file CalibdEdxCorrection.h.

Constructor & Destructor Documentation

◆ CalibdEdxCorrection() [1/2]

o2::tpc::CalibdEdxCorrection::CalibdEdxCorrection ( )
inline

Definition at line 46 of file CalibdEdxCorrection.h.

◆ CalibdEdxCorrection() [2/2]

o2::tpc::CalibdEdxCorrection::CalibdEdxCorrection ( std::string_view  fileName)
inline

Definition at line 50 of file CalibdEdxCorrection.h.

◆ ~CalibdEdxCorrection()

o2::tpc::CalibdEdxCorrection::~CalibdEdxCorrection ( )
default

Member Function Documentation

◆ dumpToTree()

void CalibdEdxCorrection::dumpToTree ( const char outFileName = "calib_dedx.root") const
Parameters
outFileNamename of the output file

Definition at line 67 of file CalibdEdxCorrection.cxx.

◆ getMeanEntries() [1/2]

float CalibdEdxCorrection::getMeanEntries ( ChargeType  charge) const

Single fit parameters averaged over all sectors for a stack type.

Definition at line 152 of file CalibdEdxCorrection.cxx.

◆ getMeanEntries() [2/2]

float CalibdEdxCorrection::getMeanEntries ( const GEMstack  stack,
ChargeType  charge 
) const

Single fit parameters averaged over all sectors for a stack type.

Definition at line 162 of file CalibdEdxCorrection.cxx.

◆ getMeanParam() [1/2]

float CalibdEdxCorrection::getMeanParam ( ChargeType  charge,
uint32_t  param 
) const

Single fit parameters averaged over all sectors for a stack type.

Definition at line 126 of file CalibdEdxCorrection.cxx.

◆ getMeanParam() [2/2]

float CalibdEdxCorrection::getMeanParam ( const GEMstack  stack,
ChargeType  charge,
uint32_t  param 
) const

Single fit parameters averaged over all sectors for a stack type.

Definition at line 139 of file CalibdEdxCorrection.cxx.

◆ getMeanParams() [1/2]

const std::array< float, CalibdEdxCorrection::ParamSize > CalibdEdxCorrection::getMeanParams ( ChargeType  charge) const

Parameters averaged over all stacks.

Definition at line 104 of file CalibdEdxCorrection.cxx.

◆ getMeanParams() [2/2]

const std::array< float, CalibdEdxCorrection::ParamSize > CalibdEdxCorrection::getMeanParams ( const GEMstack  stack,
ChargeType  charge 
) const

Parameters averaged over all sectors for a stack type.

Definition at line 115 of file CalibdEdxCorrection.cxx.

◆ GPUd()

o2::tpc::CalibdEdxCorrection::GPUd ( ) const &

◆ loadFromFile()

void CalibdEdxCorrection::loadFromFile ( std::string_view  fileName,
std::string_view  objName = "ccdb_object" 
)

Definition at line 51 of file CalibdEdxCorrection.cxx.

◆ writeToFile()

void CalibdEdxCorrection::writeToFile ( std::string_view  fileName,
std::string_view  objName = "ccdb_object" 
) const

Definition at line 40 of file CalibdEdxCorrection.cxx.

Member Data Documentation

◆ charge

ChargeType o2::tpc::CalibdEdxCorrection::charge
Initial value:
{
uint32_t stack
Definition RawData.h:1
constexpr unsigned char SECTORSPERSIDE
Definition Defs.h:40
constexpr unsigned char SIDES
Definition Defs.h:41
constexpr unsigned short GEMSTACKSPERSECTOR
Definition Defs.h:57

Definition at line 56 of file CalibdEdxCorrection.h.

◆ FitSize

constexpr int o2::tpc::CalibdEdxCorrection::FitSize = 288
staticconstexpr

Number of fitted corrections.

Definition at line 42 of file CalibdEdxCorrection.h.

◆ ParamSize

constexpr int o2::tpc::CalibdEdxCorrection::ParamSize = 8
staticconstexpr

Number of params per fit.

Definition at line 43 of file CalibdEdxCorrection.h.

◆ snp

ChargeType float float o2::tpc::CalibdEdxCorrection::snp

Definition at line 56 of file CalibdEdxCorrection.h.

◆ tgl

ChargeType float o2::tpc::CalibdEdxCorrection::tgl = 0

Definition at line 56 of file CalibdEdxCorrection.h.


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