CbmRoot
|
Algorithm to calibrate BMon digis. More...
#include <Calibrate.h>
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. | |
Algorithm to calibrate BMon digis.
Definition at line 31 of file bmon/Calibrate.h.
using cbm::algo::bmon::Calibrate::resultType = std::tuple<std::vector<CbmBmonDigi>, CalibrateMonitorData> |
Definition at line 33 of file bmon/Calibrate.h.
|
explicit |
Constructor.
params | Calibration 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.
|
inlineprivate |
Returns an index of the diamond by the address.
address | A 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()().
Calibrate::resultType Calibrate::operator() | ( | gsl::span< const CbmBmonDigi > | digiIn | ) |
Calibrates a portion of digis.
digiIn | A portion of digis to calibrate |
Sort the buffers of hits due to the time offsets applied
Definition at line 65 of file bmon/Calibrate.cxx.
References cbm::algo::bmon::CalibrateSetup::diamonds, fChannelDeadTime, fChannelOffset, fSetup, CbmTofAddress::GetChannelId(), CbmTofAddress::GetChannelIdBitmask(), CbmBmonDigi::GetCharge(), GetDiamondIndex(), CbmBmonDigi::GetTime(), CbmTofDigi::GetTime(), L_, CbmBmonDigi::SetAddress(), CbmBmonDigi::SetCharge(), CbmBmonDigi::SetTime(), and CbmTofAddress::ToString().
|
private |
Dead time, stored for a channel.
Definition at line 53 of file bmon/Calibrate.h.
Referenced by Calibrate(), and operator()().
|
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()().
|
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().
|
private |
Parameters of calibrator.
Definition at line 51 of file bmon/Calibrate.h.
Referenced by Calibrate(), GetDiamondIndex(), and operator()().