BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFHCalRaw2Digit Class Reference

#include <BmnFHCalRaw2Digit.h>

Inheritance diagram for BmnFHCalRaw2Digit:
Collaboration diagram for BmnFHCalRaw2Digit:

Public Member Functions

 BmnFHCalRaw2Digit (Int_t period, Int_t run, TString mappingFile, TString calibrationFile="")
 BmnFHCalRaw2Digit ()
 ~BmnFHCalRaw2Digit ()
TString GetName ()
void ParseConfig (TString mappingFile)
void ParseCalibration (TString calibrationFile)
void FillEvent (TClonesArray *data, TClonesArray *FHCaldigit)
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)
 BmnFHCalRaw2Digit (Int_t period, Int_t run, TString mappingFile, TString calibrationFile="")
 BmnFHCalRaw2Digit ()
 ~BmnFHCalRaw2Digit ()
TString GetName ()
void ParseConfig (TString mappingFile)
void ParseCalibration (TString calibrationFile)
void FillEvent (TClonesArray *data, TClonesArray *FHCaldigit)
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 Attributes

int fPeriodId
int fRunId
TString fmappingFileName
TString fcalibrationFileName
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

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

Detailed Description

Definition at line 22 of file BmnFHCalRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnFHCalRaw2Digit() [1/4]

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

Definition at line 20 of file BmnFHCalRaw2Digit.cxx.

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

Referenced by GetAddressFromBoard().

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

◆ BmnFHCalRaw2Digit() [2/4]

BmnFHCalRaw2Digit::BmnFHCalRaw2Digit ( )

Definition at line 13 of file BmnFHCalRaw2Digit.cxx.

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

Here is the call graph for this function:

◆ ~BmnFHCalRaw2Digit() [1/2]

BmnFHCalRaw2Digit::~BmnFHCalRaw2Digit ( )

Definition at line 243 of file BmnFHCalRaw2Digit.cxx.

◆ BmnFHCalRaw2Digit() [3/4]

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

◆ BmnFHCalRaw2Digit() [4/4]

BmnFHCalRaw2Digit::BmnFHCalRaw2Digit ( )

◆ ~BmnFHCalRaw2Digit() [2/2]

BmnFHCalRaw2Digit::~BmnFHCalRaw2Digit ( )

Member Function Documentation

◆ FillEvent() [1/2]

◆ FillEvent() [2/2]

void BmnFHCalRaw2Digit::FillEvent ( TClonesArray * data,
TClonesArray * FHCaldigit )

◆ GetAddressFromBoard() [1/2]

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

Definition at line 182 of file BmnFHCalRaw2Digit.cxx.

References fuoChannelMap.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ GetAddressFromBoard() [2/2]

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

References BmnFHCalRaw2Digit(), fcalibrationFileName, fmappingFileName, fPeriodId, fRunId, fuoCalibMap, and fuoChannelMap.

Here is the call graph for this function:

◆ GetCalibPairFromAddress() [1/2]

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

Definition at line 193 of file BmnFHCalRaw2Digit.cxx.

References fuoCalibMap.

Referenced by FillEvent(), and light_yield().

Here is the caller graph for this function:

◆ GetCalibPairFromAddress() [2/2]

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

◆ GetChannelMap() [1/2]

auto BmnFHCalRaw2Digit::GetChannelMap ( )
inline

Definition at line 38 of file BmnFHCalRaw2Digit.h.

References fuoChannelMap.

Referenced by ParseCalibration().

Here is the caller graph for this function:

◆ GetChannelMap() [2/2]

auto BmnFHCalRaw2Digit::GetChannelMap ( )
inline

Definition at line 38 of file BmnFHCalRaw2Digit.h.

References fuoChannelMap.

◆ GetDigiPars() [1/2]

digiPars BmnFHCalRaw2Digit::GetDigiPars ( )
inline

Definition at line 37 of file BmnFHCalRaw2Digit.h.

References WfmProcessor::fdigiPars.

Referenced by calibrate_wfm().

Here is the caller graph for this function:

◆ GetDigiPars() [2/2]

digiPars BmnFHCalRaw2Digit::GetDigiPars ( )
inline

Definition at line 37 of file BmnFHCalRaw2Digit.h.

References WfmProcessor::fdigiPars.

◆ GetName() [1/2]

TString BmnFHCalRaw2Digit::GetName ( )
inline

Definition at line 31 of file BmnFHCalRaw2Digit.h.

◆ GetName() [2/2]

TString BmnFHCalRaw2Digit::GetName ( )
inline

Definition at line 31 of file BmnFHCalRaw2Digit.h.

◆ ParseCalibration() [1/2]

void BmnFHCalRaw2Digit::ParseCalibration ( TString calibrationFile)

Definition at line 81 of file BmnFHCalRaw2Digit.cxx.

References TString::Data(), WfmProcessor::fAZik, WfmProcessor::fdigiPars, WfmProcessor::fSignalLength, fuoCalibMap, GetChannelMap(), BmnFHCalAddress::GetModuleId(), BmnFHCalAddress::GetSectionId(), i, PsdSignalFitting::PronyFitter::Initialize(), PsdSignalFitting::PronyFitter::MakeInvHarmoMatrix(), and PsdSignalFitting::PronyFitter::SetExternalHarmonics().

Referenced by BmnFHCalRaw2Digit(), calibrate_wfm(), and light_yield().

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

◆ ParseCalibration() [2/2]

void BmnFHCalRaw2Digit::ParseCalibration ( TString calibrationFile)

◆ ParseConfig() [1/2]

void BmnFHCalRaw2Digit::ParseConfig ( TString mappingFile)

Definition at line 33 of file BmnFHCalRaw2Digit.cxx.

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

Referenced by BmnFHCalRaw2Digit(), and fhcal_profile().

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

◆ ParseConfig() [2/2]

void BmnFHCalRaw2Digit::ParseConfig ( TString mappingFile)

◆ print() [1/2]

void BmnFHCalRaw2Digit::print ( )

Definition at line 8 of file BmnFHCalRaw2Digit.cxx.

◆ print() [2/2]

void BmnFHCalRaw2Digit::print ( )

Member Data Documentation

◆ fcalibrationFileName

TString BmnFHCalRaw2Digit::fcalibrationFileName
private

Definition at line 46 of file BmnFHCalRaw2Digit.h.

Referenced by BmnFHCalRaw2Digit(), and GetAddressFromBoard().

◆ fmappingFileName

TString BmnFHCalRaw2Digit::fmappingFileName
private

Definition at line 45 of file BmnFHCalRaw2Digit.h.

Referenced by BmnFHCalRaw2Digit(), and GetAddressFromBoard().

◆ fPeriodId

int BmnFHCalRaw2Digit::fPeriodId
private

Definition at line 43 of file BmnFHCalRaw2Digit.h.

Referenced by BmnFHCalRaw2Digit(), BmnFHCalRaw2Digit(), and GetAddressFromBoard().

◆ fRunId

int BmnFHCalRaw2Digit::fRunId
private

Definition at line 44 of file BmnFHCalRaw2Digit.h.

Referenced by BmnFHCalRaw2Digit(), BmnFHCalRaw2Digit(), and GetAddressFromBoard().

◆ fuoCalibMap

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

◆ fuoChannelMap

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

Definition at line 49 of file BmnFHCalRaw2Digit.h.

Referenced by GetAddressFromBoard(), GetChannelMap(), and ParseConfig().


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