|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <BmnScWallRaw2Digit.h>
Public Member Functions | |
| BmnScWallRaw2Digit (int period, int run, const std::string &mappingFile, const std::string &calibrationFile="") | |
| BmnScWallRaw2Digit () | |
| ~BmnScWallRaw2Digit () | |
| TString | GetName () |
| BmnStatus | ParseConfig (const std::string &file) |
| BmnStatus | ParseCalibration (const std::string &file) |
| BmnStatus | LoadCalibration (int period, int run) |
| void | FillEvent (TClonesArray *data, TClonesArray *ScWalldigit) |
| void | print () |
| digiPars | GetDigiPars () |
| auto | GetChannelMap () |
| std::optional< std::pair< float, float > > | GetCalibPairFromAddress (uint32_t address) |
| std::optional< uint32_t > | GetAddressFromBoard (std::pair< size_t, size_t > key) |
| BmnScWallRaw2Digit (int period, int run, const std::string &mappingFile, const std::string &calibrationFile="") | |
| BmnScWallRaw2Digit () | |
| ~BmnScWallRaw2Digit () | |
| TString | GetName () |
| BmnStatus | ParseConfig (const std::string &file) |
| BmnStatus | ParseCalibration (const std::string &file) |
| BmnStatus | LoadCalibration (int period, int run) |
| void | FillEvent (TClonesArray *data, TClonesArray *ScWalldigit) |
| void | print () |
| digiPars | GetDigiPars () |
| auto | GetChannelMap () |
| std::optional< std::pair< float, float > > | GetCalibPairFromAddress (uint32_t address) |
| std::optional< uint32_t > | GetAddressFromBoard (std::pair< size_t, size_t > key) |
| Public Member Functions inherited from WfmProcessor | |
| WfmProcessor () | |
| virtual | ~WfmProcessor () |
| WfmProcessor () | |
| virtual | ~WfmProcessor () |
Private Member Functions | |
| BmnStatus | ParseCalibrationJson (const nlohmann::json &j) |
| BmnStatus | ParseCalibrationJson (const nlohmann::json &j) |
Private Attributes | |
| std::unordered_map< std::pair< size_t, size_t >, uint32_t, boost::hash< std::pair< size_t, size_t > > > | fuoChannelMap |
| std::unordered_map< uint32_t, std::pair< float, float > > | fuoCalibMap |
| double | fworkTime_real |
| double | fworkTime_cpu |
Additional Inherited Members | |
| Protected Member Functions inherited from WfmProcessor | |
| void | ProcessWfm (std::vector< float > &wfm, BmnDigiContainerTemplate *digi) |
| void | ProcessWfm (std::vector< float > &wfm, BmnDigiContainerTemplate *digi) |
| Protected Attributes inherited from WfmProcessor | |
| struct WfmProcessor::digiPars | fdigiPars |
| int | fSignalLength |
| std::complex< float > ** | fAZik |
Definition at line 20 of file BmnScWallRaw2Digit.h.
| BmnScWallRaw2Digit::BmnScWallRaw2Digit | ( | int | period, |
| int | run, | ||
| const std::string & | mappingFile, | ||
| const std::string & | calibrationFile = "" ) |
Definition at line 25 of file BmnScWallRaw2Digit.cxx.
References WfmProcessor::WfmProcessor(), fworkTime_cpu, fworkTime_real, GetName(), kBMNERROR, LoadCalibration(), ParseCalibration(), and ParseConfig().
Referenced by ParseCalibrationJson().
| BmnScWallRaw2Digit::BmnScWallRaw2Digit | ( | ) |
Definition at line 18 of file BmnScWallRaw2Digit.cxx.
References WfmProcessor::WfmProcessor(), fworkTime_cpu, and fworkTime_real.
| BmnScWallRaw2Digit::~BmnScWallRaw2Digit | ( | ) |
Definition at line 271 of file BmnScWallRaw2Digit.cxx.
References fworkTime_cpu, fworkTime_real, and GetName().
| BmnScWallRaw2Digit::BmnScWallRaw2Digit | ( | int | period, |
| int | run, | ||
| const std::string & | mappingFile, | ||
| const std::string & | calibrationFile = "" ) |
| BmnScWallRaw2Digit::BmnScWallRaw2Digit | ( | ) |
| BmnScWallRaw2Digit::~BmnScWallRaw2Digit | ( | ) |
| void BmnScWallRaw2Digit::FillEvent | ( | TClonesArray * | data, |
| TClonesArray * | ScWalldigit ) |
Definition at line 225 of file BmnScWallRaw2Digit.cxx.
References TObjArray::At(), TStopwatch::CpuTime(), BmnDigiContainerTemplate::fAmpl, WfmProcessor::fdigiPars, BmnDigiContainerTemplate::fIntegral, fworkTime_cpu, fworkTime_real, GetAddressFromBoard(), GetCalibPairFromAddress(), BmnADCDigit< IntType >::GetChannel(), TObjArray::GetEntriesFast(), BmnADCDigit< IntType >::GetSerial(), BmnAbstractDigit::GetSignal(), BmnADCDigit< IntType >::GetValue(), i, WfmProcessor::ProcessWfm(), TStopwatch::RealTime(), BmnScWallDigi::reset(), BmnAbstractDigit::SetAddress(), BmnAbstractDigit::SetSignal(), TStopwatch::Start(), and TStopwatch::Stop().
| void BmnScWallRaw2Digit::FillEvent | ( | TClonesArray * | data, |
| TClonesArray * | ScWalldigit ) |
| std::optional< uint32_t > BmnScWallRaw2Digit::GetAddressFromBoard | ( | std::pair< size_t, size_t > | key | ) |
Definition at line 204 of file BmnScWallRaw2Digit.cxx.
References fuoChannelMap.
Referenced by FillEvent().
| std::optional< uint32_t > BmnScWallRaw2Digit::GetAddressFromBoard | ( | std::pair< size_t, size_t > | key | ) |
| std::optional< std::pair< float, float > > BmnScWallRaw2Digit::GetCalibPairFromAddress | ( | uint32_t | address | ) |
Definition at line 215 of file BmnScWallRaw2Digit.cxx.
References fuoCalibMap.
Referenced by FillEvent().
| std::optional< std::pair< float, float > > BmnScWallRaw2Digit::GetCalibPairFromAddress | ( | uint32_t | address | ) |
|
inline |
Definition at line 37 of file BmnScWallRaw2Digit.h.
References fuoChannelMap.
|
inline |
Definition at line 37 of file BmnScWallRaw2Digit.h.
References fuoChannelMap.
|
inline |
Definition at line 36 of file BmnScWallRaw2Digit.h.
References WfmProcessor::fdigiPars.
Referenced by calibrate_wfm().
|
inline |
Definition at line 36 of file BmnScWallRaw2Digit.h.
References WfmProcessor::fdigiPars.
|
inline |
Definition at line 29 of file BmnScWallRaw2Digit.h.
Referenced by BmnScWallRaw2Digit(), ~BmnScWallRaw2Digit(), LoadCalibration(), ParseCalibration(), ParseCalibrationJson(), ParseConfig(), and print().
|
inline |
Definition at line 29 of file BmnScWallRaw2Digit.h.
| BmnStatus BmnScWallRaw2Digit::LoadCalibration | ( | int | period, |
| int | run ) |
Definition at line 85 of file BmnScWallRaw2Digit.cxx.
References UniDetectorParameter::GetDetectorParameter(), GetName(), UniDetectorParameter::GetValue(), ParseCalibration(), ParseCalibrationJson(), and JsonValue::value.
Referenced by BmnScWallRaw2Digit().
| BmnStatus BmnScWallRaw2Digit::LoadCalibration | ( | int | period, |
| int | run ) |
| BmnStatus BmnScWallRaw2Digit::ParseCalibration | ( | const std::string & | file | ) |
Definition at line 116 of file BmnScWallRaw2Digit.cxx.
References GetName(), kBMNERROR, and ParseCalibrationJson().
Referenced by BmnScWallRaw2Digit(), calibrate_wfm(), and LoadCalibration().
| BmnStatus BmnScWallRaw2Digit::ParseCalibration | ( | const std::string & | file | ) |
|
private |
Definition at line 136 of file BmnScWallRaw2Digit.cxx.
References WfmProcessor::fAZik, WfmProcessor::fdigiPars, WfmProcessor::fSignalLength, fuoCalibMap, BmnScWallAddress::GetAddress(), GetName(), i, PsdSignalFitting::PronyFitter::Initialize(), kBMNERROR, kBMNSUCCESS, PsdSignalFitting::PronyFitter::MakeInvHarmoMatrix(), and PsdSignalFitting::PronyFitter::SetExternalHarmonics().
Referenced by LoadCalibration(), and ParseCalibration().
|
private |
References BmnScWallRaw2Digit(), fuoCalibMap, fuoChannelMap, fworkTime_cpu, and fworkTime_real.
| BmnStatus BmnScWallRaw2Digit::ParseConfig | ( | const std::string & | file | ) |
Definition at line 52 of file BmnScWallRaw2Digit.cxx.
References fuoChannelMap, BmnScWallAddress::GetAddress(), GetName(), kBMNERROR, and kBMNSUCCESS.
Referenced by BmnScWallRaw2Digit(), and scan().
| BmnStatus BmnScWallRaw2Digit::ParseConfig | ( | const std::string & | file | ) |
| void BmnScWallRaw2Digit::print | ( | ) |
Definition at line 13 of file BmnScWallRaw2Digit.cxx.
References GetName().
| void BmnScWallRaw2Digit::print | ( | ) |
|
private |
Definition at line 46 of file BmnScWallRaw2Digit.h.
Referenced by GetCalibPairFromAddress(), and ParseCalibrationJson().
|
private |
Definition at line 45 of file BmnScWallRaw2Digit.h.
Referenced by GetAddressFromBoard(), GetChannelMap(), ParseCalibrationJson(), and ParseConfig().
|
private |
Definition at line 49 of file BmnScWallRaw2Digit.h.
Referenced by BmnScWallRaw2Digit(), BmnScWallRaw2Digit(), ~BmnScWallRaw2Digit(), FillEvent(), and ParseCalibrationJson().
|
private |
Definition at line 48 of file BmnScWallRaw2Digit.h.
Referenced by BmnScWallRaw2Digit(), BmnScWallRaw2Digit(), ~BmnScWallRaw2Digit(), FillEvent(), and ParseCalibrationJson().