BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnNdetRaw2Digit Class Reference

#include <BmnNdetRaw2Digit.h>

Inheritance diagram for BmnNdetRaw2Digit:
Collaboration diagram for BmnNdetRaw2Digit:

Public Member Functions

 BmnNdetRaw2Digit (Int_t period, Int_t run, TString mappingFile, TString calibrationFile="")
 BmnNdetRaw2Digit ()
 ~BmnNdetRaw2Digit ()
void ParseConfig (TString mappingFile)
void ParseCalibration (TString calibrationFile)
void ParseINLcorrections ()
void FillEvent (TClonesArray *tdc_data, TClonesArray *adc_data, unordered_map< UInt_t, Long64_t > *mapTS, TClonesArray *Ndetdigit)
uint32_t correctINL (uint32_t time, std::pair< size_t, size_t > key)
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)
std::vector< float > GetCalibSlewShiftFromAddress (uint32_t address)
Public Member Functions inherited from WfmProcessor
 WfmProcessor ()
virtual ~WfmProcessor ()

Private Attributes

int fPeriodId
int fRunId
TString fmappingFileName
TString fcalibrationFileName
bool fApplyINL = false
bool fApplyAmplCalib = false
bool fApplyTimeCalib = false
std::unordered_map< std::pair< size_t, size_t >, uint32_t, boost::hash< std::pair< size_t, size_t > > > fuoChannelMap
std::unordered_map< std::pair< size_t, size_t >, std::vector< float >, boost::hash< pair< int, int > > > fINLcorrMap
std::unordered_map< uint32_t, std::pair< float, float > > fuoCalibMap
std::unordered_map< uint32_t, std::vector< float > > fuoCalibSlewShiftMap

Additional Inherited Members

Protected Member Functions inherited from WfmProcessor
void ProcessWfm (std::vector< float > &wfm, BmnDigiContainerTemplate *digi)
Protected Attributes inherited from WfmProcessor
struct WfmProcessor::digiPars fdigiPars
int fSignalLength
std::complex< float > ** fAZik

Detailed Description

Definition at line 24 of file BmnNdetRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnNdetRaw2Digit() [1/2]

BmnNdetRaw2Digit::BmnNdetRaw2Digit ( Int_t period,
Int_t run,
TString mappingFile,
TString calibrationFile = "" )

Definition at line 19 of file BmnNdetRaw2Digit.cxx.

References WfmProcessor::WfmProcessor(), TString::Data(), fcalibrationFileName, fmappingFileName, fPeriodId, fRunId, ParseCalibration(), ParseConfig(), and ParseINLcorrections().

Here is the call graph for this function:

◆ BmnNdetRaw2Digit() [2/2]

BmnNdetRaw2Digit::BmnNdetRaw2Digit ( )

Definition at line 12 of file BmnNdetRaw2Digit.cxx.

References WfmProcessor::WfmProcessor(), fPeriodId, and fRunId.

Here is the call graph for this function:

◆ ~BmnNdetRaw2Digit()

BmnNdetRaw2Digit::~BmnNdetRaw2Digit ( )

Definition at line 347 of file BmnNdetRaw2Digit.cxx.

Member Function Documentation

◆ correctINL()

uint32_t BmnNdetRaw2Digit::correctINL ( uint32_t time,
std::pair< size_t, size_t > key )

Definition at line 246 of file BmnNdetRaw2Digit.cxx.

References fINLcorrMap.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ FillEvent()

◆ GetAddressFromBoard()

std::optional< uint32_t > BmnNdetRaw2Digit::GetAddressFromBoard ( std::pair< size_t, size_t > key)

Definition at line 224 of file BmnNdetRaw2Digit.cxx.

References fuoChannelMap.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ GetCalibPairFromAddress()

std::optional< std::pair< float, float > > BmnNdetRaw2Digit::GetCalibPairFromAddress ( uint32_t address)

Definition at line 235 of file BmnNdetRaw2Digit.cxx.

References fuoCalibMap.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ GetCalibSlewShiftFromAddress()

std::vector< float > BmnNdetRaw2Digit::GetCalibSlewShiftFromAddress ( uint32_t address)

Definition at line 257 of file BmnNdetRaw2Digit.cxx.

References fuoCalibSlewShiftMap.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ GetChannelMap()

auto BmnNdetRaw2Digit::GetChannelMap ( )
inline

Definition at line 44 of file BmnNdetRaw2Digit.h.

References fuoChannelMap.

◆ GetDigiPars()

digiPars BmnNdetRaw2Digit::GetDigiPars ( )
inline

Definition at line 43 of file BmnNdetRaw2Digit.h.

References WfmProcessor::fdigiPars.

Referenced by calibrate_wfm().

Here is the caller graph for this function:

◆ ParseCalibration()

void BmnNdetRaw2Digit::ParseCalibration ( TString calibrationFile)

Definition at line 80 of file BmnNdetRaw2Digit.cxx.

References TString::Data(), fApplyAmplCalib, fApplyINL, fApplyTimeCalib, WfmProcessor::fAZik, WfmProcessor::fdigiPars, WfmProcessor::fSignalLength, fuoCalibMap, fuoCalibSlewShiftMap, BmnNdetAddress::GetAddress(), i, PsdSignalFitting::PronyFitter::Initialize(), PsdSignalFitting::PronyFitter::MakeInvHarmoMatrix(), and PsdSignalFitting::PronyFitter::SetExternalHarmonics().

Referenced by BmnNdetRaw2Digit(), and calibrate_wfm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseConfig()

void BmnNdetRaw2Digit::ParseConfig ( TString mappingFile)

Definition at line 33 of file BmnNdetRaw2Digit.cxx.

References TString::Data(), fuoChannelMap, and BmnNdetAddress::GetAddress().

Referenced by BmnNdetRaw2Digit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseINLcorrections()

void BmnNdetRaw2Digit::ParseINLcorrections ( )

Definition at line 188 of file BmnNdetRaw2Digit.cxx.

References TString::Data(), fApplyINL, fINLcorrMap, fuoChannelMap, and TQDC16_CHANNEL_COUNT.

Referenced by BmnNdetRaw2Digit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print()

void BmnNdetRaw2Digit::print ( )

Definition at line 7 of file BmnNdetRaw2Digit.cxx.

Member Data Documentation

◆ fApplyAmplCalib

bool BmnNdetRaw2Digit::fApplyAmplCalib = false
private

Definition at line 56 of file BmnNdetRaw2Digit.h.

Referenced by FillEvent(), and ParseCalibration().

◆ fApplyINL

bool BmnNdetRaw2Digit::fApplyINL = false
private

Definition at line 55 of file BmnNdetRaw2Digit.h.

Referenced by FillEvent(), ParseCalibration(), and ParseINLcorrections().

◆ fApplyTimeCalib

bool BmnNdetRaw2Digit::fApplyTimeCalib = false
private

Definition at line 57 of file BmnNdetRaw2Digit.h.

Referenced by FillEvent(), and ParseCalibration().

◆ fcalibrationFileName

TString BmnNdetRaw2Digit::fcalibrationFileName
private

Definition at line 54 of file BmnNdetRaw2Digit.h.

Referenced by BmnNdetRaw2Digit().

◆ fINLcorrMap

std::unordered_map<std::pair<size_t, size_t>, std::vector<float>, boost::hash<pair<int, int> > > BmnNdetRaw2Digit::fINLcorrMap
private

Definition at line 62 of file BmnNdetRaw2Digit.h.

Referenced by correctINL(), and ParseINLcorrections().

◆ fmappingFileName

TString BmnNdetRaw2Digit::fmappingFileName
private

Definition at line 53 of file BmnNdetRaw2Digit.h.

Referenced by BmnNdetRaw2Digit().

◆ fPeriodId

int BmnNdetRaw2Digit::fPeriodId
private

Definition at line 51 of file BmnNdetRaw2Digit.h.

Referenced by BmnNdetRaw2Digit(), and BmnNdetRaw2Digit().

◆ fRunId

int BmnNdetRaw2Digit::fRunId
private

Definition at line 52 of file BmnNdetRaw2Digit.h.

Referenced by BmnNdetRaw2Digit(), and BmnNdetRaw2Digit().

◆ fuoCalibMap

std::unordered_map<uint32_t, std::pair<float, float> > BmnNdetRaw2Digit::fuoCalibMap
private

Definition at line 63 of file BmnNdetRaw2Digit.h.

Referenced by GetCalibPairFromAddress(), and ParseCalibration().

◆ fuoCalibSlewShiftMap

std::unordered_map<uint32_t, std::vector<float> > BmnNdetRaw2Digit::fuoCalibSlewShiftMap
private

Definition at line 64 of file BmnNdetRaw2Digit.h.

Referenced by GetCalibSlewShiftFromAddress(), and ParseCalibration().

◆ fuoChannelMap

std::unordered_map<std::pair<size_t, size_t>, uint32_t, boost::hash<std::pair<size_t, size_t> > > BmnNdetRaw2Digit::fuoChannelMap
private

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