CbmRoot
Loading...
Searching...
No Matches
cbm::algo::bmon::Calibrate Class Reference

Algorithm to calibrate BMon digis. More...

#include <Calibrate.h>

Collaboration diagram for cbm::algo::bmon::Calibrate:
[legend]

Public Types

using resultType = std::tuple<std::vector<CbmBmonDigi>, CalibrateMonitorData>
 

Public Member Functions

 Calibrate (CalibrateSetup params)
 Constructor.
 
resultType operator() (gsl::span< const CbmBmonDigi > digiIn)
 Calibrates a portion of digis.
 

Private Member Functions

size_t GetDiamondIndex (uint32_t address) const
 Returns an index of the diamond by the address.
 

Private Attributes

CalibrateSetup fSetup
 Parameters of calibrator.
 
std::vector< size_t > fChannelOffset
 Channel offset: offset for the channel index of each diamond.
 
std::vector< double > fChannelDeadTime
 Dead time, stored for a channel.
 
uint32_t fSelectionBitsOffset
 Number of bits to ther right from the first bit in the selection mask.
 

Detailed Description

Algorithm to calibrate BMon digis.

Definition at line 31 of file bmon/Calibrate.h.

Member Typedef Documentation

◆ resultType

Definition at line 33 of file bmon/Calibrate.h.

Constructor & Destructor Documentation

◆ Calibrate()

Calibrate::Calibrate ( CalibrateSetup params)
explicit

Constructor.

Parameters
paramsCalibration parameters

Definition at line 25 of file bmon/Calibrate.cxx.

References cbm::algo::bmon::CalibrateSetup::diamonds, fChannelDeadTime, fChannelOffset, fSelectionBitsOffset, fSetup, and cbm::algo::bmon::CalibrateSetup::selectionMask.

Member Function Documentation

◆ GetDiamondIndex()

size_t cbm::algo::bmon::Calibrate::GetDiamondIndex ( uint32_t address) const
inlineprivate

Returns an index of the diamond by the address.

Parameters
addressA hardware address of the digi

Definition at line 46 of file bmon/Calibrate.h.

References fSelectionBitsOffset, fSetup, and cbm::algo::bmon::CalibrateSetup::selectionMask.

Referenced by operator()().

◆ operator()()

Calibrate::resultType Calibrate::operator() ( gsl::span< const CbmBmonDigi > digiIn)

Member Data Documentation

◆ fChannelDeadTime

std::vector<double> cbm::algo::bmon::Calibrate::fChannelDeadTime
private

Dead time, stored for a channel.

Definition at line 53 of file bmon/Calibrate.h.

Referenced by Calibrate(), and operator()().

◆ fChannelOffset

std::vector<size_t> cbm::algo::bmon::Calibrate::fChannelOffset
private

Channel offset: offset for the channel index of each diamond.

Definition at line 52 of file bmon/Calibrate.h.

Referenced by Calibrate(), and operator()().

◆ fSelectionBitsOffset

uint32_t cbm::algo::bmon::Calibrate::fSelectionBitsOffset
private

Number of bits to ther right from the first bit in the selection mask.

Definition at line 54 of file bmon/Calibrate.h.

Referenced by Calibrate(), and GetDiamondIndex().

◆ fSetup

CalibrateSetup cbm::algo::bmon::Calibrate::fSetup
private

Parameters of calibrator.

Definition at line 51 of file bmon/Calibrate.h.

Referenced by Calibrate(), GetDiamondIndex(), and operator()().


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