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

#include <BmnSiBTRaw2Digit.h>

Inheritance diagram for BmnSiBTRaw2Digit:
Collaboration diagram for BmnSiBTRaw2Digit:

Classes

struct  BmnSiBTMapping

Public Member Functions

 BmnSiBTRaw2Digit (Int_t period, Int_t run, TString MapFileName, BmnSetup bmnSetup=kBMNSETUP)
virtual ~BmnSiBTRaw2Digit ()
BmnStatus FillEvent (TClonesArray *adc, TClonesArray *sts)
BmnStatus FillProfiles (TClonesArray *adc)
BmnStatus FillNoisyChannels ()
 BmnSiBTRaw2Digit (Int_t period, Int_t run, TString MapFileName, BmnSetup bmnSetup=kBMNSETUP)
virtual ~BmnSiBTRaw2Digit ()
BmnStatus FillEvent (TClonesArray *adc, TClonesArray *sts)
BmnStatus FillProfiles (TClonesArray *adc)
BmnStatus FillNoisyChannels ()
Public Member Functions inherited from BmnAdcProcessor
 BmnAdcProcessor (uint32_t period, uint32_t run, TString det, uint16_t nCh, const uint16_t nSmpl, BmnSetup setup=kBMNSETUP)
virtual ~BmnAdcProcessor ()
BmnStatus RecalculatePedestals ()
BmnStatus RecalculatePedestalsAugmented ()
void PrecalcEventMods (TClonesArray *adc)
void PrecalcEventMods_simd (TClonesArray *adc)
void CalcEventMods ()
void CalcEventMods_simd ()
Double_t CalcCMS (Double_t *samples, Int_t size)
BmnStatus SaveFilterInfo (TFile *cTalibFile)
BmnStatus LoadFilterInfo (TFile *cTalibFile)
Double_t **** GetPedData ()
void SetApplyThreshold (bool b)
bool GetApplyThreshold ()
size_t GetNSerials ()
const uint16_t GetNChannels ()
const uint16_t GetNSamples ()
Float_t GetPedestal (uint32_t iSer, Int_t ch, Int_t smpl)
Float_t *** GetPedestals ()
Double_t *** GetPedestalsRMS ()
Bool_t *** GetNoisyChipChannels ()
uint32_t GetPeriod ()
uint32_t GetRun ()
Int_t GetVerbose ()
void SetVerbose (Int_t v)
vector< uint32_t > & GetSerials ()
unordered_map< uint32_t, size_t > & GetSerialMap ()
uint32_t GetBoundaryRun (uint16_t nSmpl)
void SetEvForPedestals (uint32_t v)
uint32_t GetEvForPedestals ()
TString & GetDetName ()
void DrawDebugHists ()
void DrawDebugHists2D ()
void ClearDebugHists ()
void CopyData2PedMap (TClonesArray *adc, UInt_t ev)
void SetThreshold (Double_t final_thr, Double_t thr_dif=-1, Double_t n_iters=-1, Double_t cmod_cut=-1)
 BmnAdcProcessor (uint32_t period, uint32_t run, TString det, uint16_t nCh, const uint16_t nSmpl, BmnSetup setup=kBMNSETUP)
virtual ~BmnAdcProcessor ()
BmnStatus RecalculatePedestals ()
BmnStatus RecalculatePedestalsAugmented ()
void PrecalcEventMods (TClonesArray *adc)
void PrecalcEventMods_simd (TClonesArray *adc)
void CalcEventMods ()
void CalcEventMods_simd ()
Double_t CalcCMS (Double_t *samples, Int_t size)
BmnStatus SaveFilterInfo (TFile *cTalibFile)
BmnStatus LoadFilterInfo (TFile *cTalibFile)
Double_t **** GetPedData ()
void SetApplyThreshold (bool b)
bool GetApplyThreshold ()
size_t GetNSerials ()
const uint16_t GetNChannels ()
const uint16_t GetNSamples ()
Float_t GetPedestal (uint32_t iSer, Int_t ch, Int_t smpl)
Float_t *** GetPedestals ()
Double_t *** GetPedestalsRMS ()
Bool_t *** GetNoisyChipChannels ()
uint32_t GetPeriod ()
uint32_t GetRun ()
Int_t GetVerbose ()
void SetVerbose (Int_t v)
vector< uint32_t > & GetSerials ()
unordered_map< uint32_t, size_t > & GetSerialMap ()
uint32_t GetBoundaryRun (uint16_t nSmpl)
void SetEvForPedestals (uint32_t v)
uint32_t GetEvForPedestals ()
TString & GetDetName ()
void DrawDebugHists ()
void DrawDebugHists2D ()
void ClearDebugHists ()
void CopyData2PedMap (TClonesArray *adc, UInt_t ev)
void SetThreshold (Double_t final_thr, Double_t thr_dif=-1, Double_t n_iters=-1, Double_t cmod_cut=-1)

Private Types

typedef map< Int_t, BmnSiBTMapping * > InChanMapSiBT
typedef map< Int_t, BmnSiBTMapping * > InChanMapSiBT

Private Member Functions

BmnStatus ReadLocalMap (string &FileName, StripMap &Strips)
BmnStatus ReadLocalMaps ()
BmnStatus ReadMapFile ()
Int_t MapStrip (BmnSiBTMapping &v, Short_t &iSmpl)
void ProcessAdc (TClonesArray *silicon, Bool_t doFill)
BmnStatus ReadLocalMap (string &FileName, StripMap &Strips)
BmnStatus ReadLocalMaps ()
BmnStatus ReadMapFile ()
Int_t MapStrip (BmnSiBTMapping &v, Short_t &iSmpl)
void ProcessAdc (TClonesArray *silicon, Bool_t doFill)

Private Attributes

vector< BmnSiBTMapping * > fMap
map< UInt_t, InChanMapSiBT > fOuterMap
map< PlMapKey, BmnSiBTMapping > fGlobalMap
 // serial map
map< Char_t, StripMap > fLocalMaps
TString fMapFileName
unique_ptr< BmnSiBTStationSet > fSiBTStationSet

Additional Inherited Members

Static Public Member Functions inherited from BmnAdcProcessor
static BmnStatus DrawFilterInfo (BmnCalibData *data)
static BmnStatus DrawFilterInfo (BmnCalibData *data)
Public Attributes inherited from BmnAdcProcessor
void(BmnAdcProcessor::* PrecalcEventModsImp )(TClonesArray *adc)
Protected Types inherited from BmnAdcProcessor
typedef std::tuple< uint16_t, uint16_t, uint8_t > KeySML
typedef std::tuple< uint16_t, uint16_t > KeySM
typedef vector< Int_t > StripMap
typedef std::tuple< uint16_t, uint16_t, uint8_t > KeySML
typedef std::tuple< uint16_t, uint16_t > KeySM
typedef vector< Int_t > StripMap
Protected Member Functions inherited from BmnAdcProcessor
void InitChipNoiseArrays ()
void GrabNewSerial (UInt_t serial)
template<typename cl>
void GrabSerialsFromMap (unordered_map< UInt_t, cl > m)
template<typename SST>
void InitStripNoiseArrays (SST &ss)
template<typename SST>
void DeleteStripNoiseArrays (SST &ss)
void InitChipNoiseArrays ()
void GrabNewSerial (UInt_t serial)
template<typename cl>
void GrabSerialsFromMap (unordered_map< UInt_t, cl > m)
template<typename SST>
void InitStripNoiseArrays (SST &ss)
template<typename SST>
void DeleteStripNoiseArrays (SST &ss)
Protected Attributes inherited from BmnAdcProcessor
Int_t fVerbose
Int_t drawCnt
Int_t drawCnt2d
Double_t thrDif
Double_t FinalThr
Int_t fNIters
Double_t cmodcut
Double_t thrMax
vector< uint32_t > fAdcSerials
 list of serial id for ADC-detector
const uint16_t fNSamples
const uint16_t fNChannels
uint32_t fEvForPedestals
Double_t **** fPedDat
 data set to calculate pedestals
bool fApplyThreshold
map< PlMapKey, Double_t > fSpecThreshMap
Double_t workTime_cpu = 0.0
Double_t workTime_real = 0.0
Double_t workTime_cpu_p = 0.0
Double_t workTime_real_p = 0.0
unordered_map< UInt_t, size_t > fSerMap
 ADC serials map.
TH1F **** fSigProf
Bool_t **** fNoisyChannels
Float_t *** fAdc
Double_t *** fPedRms
Float_t *** fPedVal
Double_t *** fPedValTemp
Float_t ** fCMode
Float_t ** fCMode0
Float_t ** fSMode
Float_t ** fSMode0
vector< vector< TH1 * > > hPedLine
vector< vector< TH1 * > > hCMode
vector< vector< TH1 * > > hSMode
vector< vector< TH1 * > > hPedLineSi
vector< TH1 * > hPedSi
vector< TH1 * > hCModeSi
vector< TH1 * > hSModeSi
Bool_t *** fNoisyChipChannels
Float_t ** fNvals
UInt_t *** fNvalsCMod
UInt_t *** fNvalsADC
Double_t *** fPedCMod
Double_t *** fPedCMod2
Double_t ** fSumRmsV
TString fDetName
uint32_t fPeriod
uint32_t fRun
BmnSetup fSetup

Detailed Description

Definition at line 27 of file BmnSiBTRaw2Digit.h.

Member Typedef Documentation

◆ InChanMapSiBT [1/2]

Definition at line 49 of file BmnSiBTRaw2Digit.h.

◆ InChanMapSiBT [2/2]

Definition at line 49 of file BmnSiBTRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnSiBTRaw2Digit() [1/2]

BmnSiBTRaw2Digit::BmnSiBTRaw2Digit ( Int_t period,
Int_t run,
TString MapFileName,
BmnSetup bmnSetup = kBMNSETUP )

Definition at line 8 of file BmnSiBTRaw2Digit.cxx.

References BmnAdcProcessor::BmnAdcProcessor(), ADC_N_CHANNELS, ADC_SIBT_N_SAMPLES, fMapFileName, BmnAdcProcessor::fPeriod, BmnAdcProcessor::fSetup, fSiBTStationSet, BmnAdcProcessor::InitChipNoiseArrays(), BmnAdcProcessor::InitStripNoiseArrays(), ReadLocalMaps(), and ReadMapFile().

Referenced by ProcessAdc().

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

◆ ~BmnSiBTRaw2Digit() [1/2]

BmnSiBTRaw2Digit::~BmnSiBTRaw2Digit ( )
virtual

Definition at line 19 of file BmnSiBTRaw2Digit.cxx.

References BmnAdcProcessor::DeleteStripNoiseArrays(), fOuterMap, and fSiBTStationSet.

Here is the call graph for this function:

◆ BmnSiBTRaw2Digit() [2/2]

BmnSiBTRaw2Digit::BmnSiBTRaw2Digit ( Int_t period,
Int_t run,
TString MapFileName,
BmnSetup bmnSetup = kBMNSETUP )

References kBMNSETUP.

◆ ~BmnSiBTRaw2Digit() [2/2]

virtual BmnSiBTRaw2Digit::~BmnSiBTRaw2Digit ( )
virtual

Member Function Documentation

◆ FillEvent() [1/2]

BmnStatus BmnSiBTRaw2Digit::FillEvent ( TClonesArray * adc,
TClonesArray * sts )

Definition at line 137 of file BmnSiBTRaw2Digit.cxx.

References BmnAdcProcessor::CalcEventMods(), BmnAdcProcessor::CalcEventMods_simd(), kBMNSUCCESS, BmnAdcProcessor::PrecalcEventModsImp, and ProcessAdc().

Here is the call graph for this function:

◆ FillEvent() [2/2]

BmnStatus BmnSiBTRaw2Digit::FillEvent ( TClonesArray * adc,
TClonesArray * sts )

◆ FillNoisyChannels() [1/2]

◆ FillNoisyChannels() [2/2]

BmnStatus BmnSiBTRaw2Digit::FillNoisyChannels ( )

◆ FillProfiles() [1/2]

BmnStatus BmnSiBTRaw2Digit::FillProfiles ( TClonesArray * adc)

Definition at line 149 of file BmnSiBTRaw2Digit.cxx.

References BmnAdcProcessor::CalcEventMods(), BmnAdcProcessor::CalcEventMods_simd(), kBMNSUCCESS, BmnAdcProcessor::PrecalcEventModsImp, and ProcessAdc().

Here is the call graph for this function:

◆ FillProfiles() [2/2]

BmnStatus BmnSiBTRaw2Digit::FillProfiles ( TClonesArray * adc)

◆ MapStrip() [1/2]

Int_t BmnSiBTRaw2Digit::MapStrip ( BmnSiBTMapping & v,
Short_t & iSmpl )
inlineprivate

Definition at line 62 of file BmnSiBTRaw2Digit.h.

References v.

Referenced by FillNoisyChannels(), and ProcessAdc().

Here is the caller graph for this function:

◆ MapStrip() [2/2]

Int_t BmnSiBTRaw2Digit::MapStrip ( BmnSiBTMapping & v,
Short_t & iSmpl )
inlineprivate

Definition at line 62 of file BmnSiBTRaw2Digit.h.

References v.

◆ ProcessAdc() [1/2]

void BmnSiBTRaw2Digit::ProcessAdc ( TClonesArray * silicon,
Bool_t doFill )
private
  • || (fPedVal[iCr][iCh][iSmpl] == 0.0)*‍/) continue;

Definition at line 241 of file BmnSiBTRaw2Digit.cxx.

References BmnAdcProcessor::fAdc, BmnAdcProcessor::fCMode, fGlobalMap, BmnAdcProcessor::FinalThr, BmnAdcProcessor::fPedVal, BmnAdcProcessor::fSigProf, BmnAdcProcessor::fSMode, BmnAdcProcessor::fSpecThreshMap, BmnAdcProcessor::GetApplyThreshold(), TObjArray::GetEntriesFast(), BmnAdcProcessor::GetNChannels(), BmnAdcProcessor::GetNoisyChipChannels(), BmnAdcProcessor::GetNSamples(), BmnAdcProcessor::GetNSerials(), BmnAdcProcessor::GetPedestalsRMS(), BmnAdcProcessor::GetSerials(), BmnSiBTRaw2Digit::BmnSiBTMapping::layer, MapStrip(), TMath::Max(), BmnSiBTRaw2Digit::BmnSiBTMapping::module, BmnStripDigit::SetIsGoodDigit(), BmnSiBTRaw2Digit::BmnSiBTMapping::station, and thr.

Referenced by FillEvent(), and FillProfiles().

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

◆ ProcessAdc() [2/2]

void BmnSiBTRaw2Digit::ProcessAdc ( TClonesArray * silicon,
Bool_t doFill )
private

References BmnSiBTRaw2Digit().

Here is the call graph for this function:

◆ ReadLocalMap() [1/2]

BmnStatus BmnSiBTRaw2Digit::ReadLocalMap ( string & FileName,
StripMap & Strips )
private

Definition at line 27 of file BmnSiBTRaw2Digit.cxx.

References kBMNERROR, and kBMNSUCCESS.

Referenced by ReadLocalMaps().

Here is the caller graph for this function:

◆ ReadLocalMap() [2/2]

BmnStatus BmnSiBTRaw2Digit::ReadLocalMap ( string & FileName,
StripMap & Strips )
private

◆ ReadLocalMaps() [1/2]

BmnStatus BmnSiBTRaw2Digit::ReadLocalMaps ( )
private

Definition at line 45 of file BmnSiBTRaw2Digit.cxx.

References BmnSiBTRaw2Digit::BmnSiBTMapping::channel_name, BmnAdcProcessor::fDetName, fGlobalMap, fLocalMaps, BmnAdcProcessor::fNSamples, kBMNSUCCESS, ReadLocalMap(), and BmnSiBTRaw2Digit::BmnSiBTMapping::strips.

Referenced by BmnSiBTRaw2Digit().

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

◆ ReadLocalMaps() [2/2]

BmnStatus BmnSiBTRaw2Digit::ReadLocalMaps ( )
private

◆ ReadMapFile() [1/2]

BmnStatus BmnSiBTRaw2Digit::ReadMapFile ( )
private

Definition at line 65 of file BmnSiBTRaw2Digit.cxx.

References TString::Data(), fGlobalMap, fMapFileName, BmnAdcProcessor::fPeriod, BmnAdcProcessor::fRun, BmnAdcProcessor::fSpecThreshMap, BmnAdcProcessor::GrabNewSerial(), kBMNERROR, kBMNSUCCESS, BmnAdcProcessor::SetThreshold(), and thr.

Referenced by BmnSiBTRaw2Digit().

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

◆ ReadMapFile() [2/2]

BmnStatus BmnSiBTRaw2Digit::ReadMapFile ( )
private

Member Data Documentation

◆ fGlobalMap

map< PlMapKey, BmnSiBTMapping > BmnSiBTRaw2Digit::fGlobalMap
private

Definition at line 52 of file BmnSiBTRaw2Digit.h.

Referenced by FillNoisyChannels(), ProcessAdc(), ReadLocalMaps(), and ReadMapFile().

◆ fLocalMaps

map< Char_t, StripMap > BmnSiBTRaw2Digit::fLocalMaps
private

Definition at line 53 of file BmnSiBTRaw2Digit.h.

Referenced by ReadLocalMaps().

◆ fMap

vector< BmnSiBTMapping * > BmnSiBTRaw2Digit::fMap
private

Definition at line 50 of file BmnSiBTRaw2Digit.h.

◆ fMapFileName

TString BmnSiBTRaw2Digit::fMapFileName
private

Definition at line 54 of file BmnSiBTRaw2Digit.h.

Referenced by BmnSiBTRaw2Digit(), and ReadMapFile().

◆ fOuterMap

map< UInt_t, InChanMapSiBT > BmnSiBTRaw2Digit::fOuterMap
private

Definition at line 51 of file BmnSiBTRaw2Digit.h.

Referenced by ~BmnSiBTRaw2Digit().

◆ fSiBTStationSet

unique_ptr< BmnSiBTStationSet > BmnSiBTRaw2Digit::fSiBTStationSet
private

Definition at line 56 of file BmnSiBTRaw2Digit.h.

Referenced by BmnSiBTRaw2Digit(), ~BmnSiBTRaw2Digit(), and FillNoisyChannels().


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