|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <BmnHgndRaw2Digit.h>
Public Member Functions | |
| BmnHgndRaw2Digit ()=default | |
| BmnHgndRaw2Digit (int period, int run, const std::string &mappingFile="", const std::string &calibrationFile="") | |
| virtual | ~BmnHgndRaw2Digit () |
| void | ParseConfig (const std::string &mappingFile) |
| void | ParseCalibration (const std::string &calibrationFile) |
| void | FillEvent (TClonesArray *tdc_data, BmnEventHeader *hdr, TClonesArray *digits) |
| void | print () |
| const std::unordered_map< uint32_t, uint32_t > & | GetChannelMap () const |
| std::optional< std::pair< TdcFromTot, QdcFromTotApprox > > | GetCalibPairFromAddress (uint32_t address) const |
| std::optional< uint32_t > | GetAddressFromBoard (uint32_t key) const |
| BmnHgndRaw2Digit ()=default | |
| BmnHgndRaw2Digit (int period, int run, const std::string &mappingFile="", const std::string &calibrationFile="") | |
| virtual | ~BmnHgndRaw2Digit () |
| void | ParseConfig (const std::string &mappingFile) |
| void | ParseCalibration (const std::string &calibrationFile) |
| void | FillEvent (TClonesArray *tdc_data, BmnEventHeader *hdr, TClonesArray *digits) |
| void | print () |
| const std::unordered_map< uint32_t, uint32_t > & | GetChannelMap () const |
| std::optional< std::pair< TdcFromTot, QdcFromTotApprox > > | GetCalibPairFromAddress (uint32_t address) const |
| std::optional< uint32_t > | GetAddressFromBoard (uint32_t key) const |
Private Attributes | |
| std::unordered_map< uint32_t, uint32_t > | fuoChannelMap |
| std::unordered_map< uint32_t, std::pair< TdcFromTot, QdcFromTotApprox > > | fuoCalibMap |
Definition at line 23 of file BmnHgndRaw2Digit.h.
|
default |
| BmnHgndRaw2Digit::BmnHgndRaw2Digit | ( | int | period, |
| int | run, | ||
| const std::string & | mappingFile = "", | ||
| const std::string & | calibrationFile = "" ) |
Definition at line 16 of file BmnHgndRaw2Digit.cxx.
References ParseCalibration(), and ParseConfig().
|
virtual |
Definition at line 168 of file BmnHgndRaw2Digit.cxx.
|
default |
| BmnHgndRaw2Digit::BmnHgndRaw2Digit | ( | int | period, |
| int | run, | ||
| const std::string & | mappingFile = "", | ||
| const std::string & | calibrationFile = "" ) |
|
virtual |
| void BmnHgndRaw2Digit::FillEvent | ( | TClonesArray * | tdc_data, |
| BmnEventHeader * | hdr, | ||
| TClonesArray * | digits ) |
Definition at line 127 of file BmnHgndRaw2Digit.cxx.
References TObjArray::At(), GetAddressFromBoard(), GetCalibPairFromAddress(), TObjArray::GetEntriesFast(), BmnEventHeader::GetEventId(), BmnEventHeader::GetEventTimeTS(), BmnNdetAddress::GetLayerId(), TTimeStamp::GetNanoSec(), TTimeStamp::GetSec(), BmnEventHeader::GetStartSignalTime(), signal(), and TDCBIN.
| void BmnHgndRaw2Digit::FillEvent | ( | TClonesArray * | tdc_data, |
| BmnEventHeader * | hdr, | ||
| TClonesArray * | digits ) |
| std::optional< uint32_t > BmnHgndRaw2Digit::GetAddressFromBoard | ( | uint32_t | key | ) | const |
Definition at line 106 of file BmnHgndRaw2Digit.cxx.
References fuoChannelMap.
Referenced by FillEvent().
| std::optional< uint32_t > BmnHgndRaw2Digit::GetAddressFromBoard | ( | uint32_t | key | ) | const |
References BmnHgndRaw2Digit(), fuoCalibMap, and fuoChannelMap.
| std::optional< std::pair< TdcFromTot, QdcFromTotApprox > > BmnHgndRaw2Digit::GetCalibPairFromAddress | ( | uint32_t | address | ) | const |
Definition at line 116 of file BmnHgndRaw2Digit.cxx.
References fuoCalibMap.
Referenced by FillEvent().
| std::optional< std::pair< TdcFromTot, QdcFromTotApprox > > BmnHgndRaw2Digit::GetCalibPairFromAddress | ( | uint32_t | address | ) | const |
|
inline |
Definition at line 35 of file BmnHgndRaw2Digit.h.
References fuoChannelMap.
|
inline |
Definition at line 35 of file BmnHgndRaw2Digit.h.
References fuoChannelMap.
| void BmnHgndRaw2Digit::ParseCalibration | ( | const std::string & | calibrationFile | ) |
Definition at line 63 of file BmnHgndRaw2Digit.cxx.
References fuoCalibMap, and BmnNdetAddress::GetAddress().
Referenced by BmnHgndRaw2Digit().
| void BmnHgndRaw2Digit::ParseCalibration | ( | const std::string & | calibrationFile | ) |
| void BmnHgndRaw2Digit::ParseConfig | ( | const std::string & | mappingFile | ) |
Definition at line 28 of file BmnHgndRaw2Digit.cxx.
References fuoChannelMap, and BmnNdetAddress::GetAddress().
Referenced by BmnHgndRaw2Digit().
| void BmnHgndRaw2Digit::ParseConfig | ( | const std::string & | mappingFile | ) |
| void BmnHgndRaw2Digit::print | ( | ) |
Definition at line 11 of file BmnHgndRaw2Digit.cxx.
| void BmnHgndRaw2Digit::print | ( | ) |
|
private |
Definition at line 42 of file BmnHgndRaw2Digit.h.
Referenced by GetAddressFromBoard(), GetCalibPairFromAddress(), and ParseCalibration().
|
private |
Definition at line 40 of file BmnHgndRaw2Digit.h.
Referenced by GetAddressFromBoard(), GetChannelMap(), and ParseConfig().