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

#include <BmnSiliconRaw2Digit.h>

Inheritance diagram for BmnSiliconRaw2Digit:
Collaboration diagram for BmnSiliconRaw2Digit:

Public Member Functions

 BmnSiliconRaw2Digit (uint32_t period, uint32_t run, TString MapFileName, BmnSetup bmnSetup=kBMNSETUP)
virtual ~BmnSiliconRaw2Digit ()
BmnStatus FillEvent (TClonesArray *adc, TClonesArray *sts)
BmnStatus FillProfiles (TClonesArray *adc)
BmnStatus FillNoisyChannels ()
void CreatePedestalReport ()
 BmnSiliconRaw2Digit (uint32_t period, uint32_t run, TString MapFileName, BmnSetup bmnSetup=kBMNSETUP)
virtual ~BmnSiliconRaw2Digit ()
BmnStatus FillEvent (TClonesArray *adc, TClonesArray *sts)
BmnStatus FillProfiles (TClonesArray *adc)
BmnStatus FillNoisyChannels ()
void CreatePedestalReport ()
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 Member Functions

BmnStatus ReadMapFile ()
int32_t MapStrip (BmnSiliconMapInfo *v, uint16_t &iCh, uint16_t &iSmpl)
void ProcessAdc (TClonesArray *silicon, Bool_t doFill)
BmnStatus ReadMapFile ()
int32_t MapStrip (BmnSiliconMapInfo *v, uint16_t &iCh, uint16_t &iSmpl)
void ProcessAdc (TClonesArray *silicon, Bool_t doFill)

Private Attributes

unique_ptr< BmnSiliconStationSet > fSilStationSet
unordered_map< uint32_t, InChanMapSil > fOuterMap
map< KeySML, BmnSiliconMapInfo * > fSML2MapInfo
TString fMapFileName
TCanvas * canStrip = nullptr
TH2F * hraw = nullptr
TH2F * hrms = nullptr
TH2F * hcorrp = nullptr
TH2F * hcorr = nullptr
TH2F * hfilter = nullptr
TH2F * hped = nullptr
TH2F * hcms = nullptr
TH2F * hscms = nullptr
TH1F * hscms1 = nullptr
TH1F * hscms1full = nullptr
TH1F * hped1 = nullptr
TH1F * hsig = nullptr
int32_t nev = -1
int32_t niterped
int32_t nchip
int32_t nchmin
int32_t npevents
int32_t zeroCnt = 0
int32_t allCnt = 0
Double_t thresh
Double_t thrnoise

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 47 of file BmnSiliconRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnSiliconRaw2Digit() [1/2]

BmnSiliconRaw2Digit::BmnSiliconRaw2Digit ( uint32_t period,
uint32_t run,
TString MapFileName,
BmnSetup bmnSetup = kBMNSETUP )

Definition at line 10 of file BmnSiliconRaw2Digit.cxx.

References BmnAdcProcessor::BmnAdcProcessor(), ADC128_N_SAMPLES, ADC_N_CHANNELS, BmnAdcProcessor::fDetName, fMapFileName, BmnAdcProcessor::fNoisyChannels, TString::Form(), BmnAdcProcessor::fPeriod, BmnAdcProcessor::fSetup, BmnAdcProcessor::fSigProf, fSilStationSet, BmnSiliconLayer::GetLastStripNumber(), BmnAdcProcessor::InitChipNoiseArrays(), and ReadMapFile().

Referenced by ProcessAdc().

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

◆ ~BmnSiliconRaw2Digit() [1/2]

BmnSiliconRaw2Digit::~BmnSiliconRaw2Digit ( )
virtual

◆ BmnSiliconRaw2Digit() [2/2]

BmnSiliconRaw2Digit::BmnSiliconRaw2Digit ( uint32_t period,
uint32_t run,
TString MapFileName,
BmnSetup bmnSetup = kBMNSETUP )

References kBMNSETUP.

◆ ~BmnSiliconRaw2Digit() [2/2]

virtual BmnSiliconRaw2Digit::~BmnSiliconRaw2Digit ( )
virtual

Member Function Documentation

◆ CreatePedestalReport() [1/2]

void BmnSiliconRaw2Digit::CreatePedestalReport ( )

◆ CreatePedestalReport() [2/2]

void BmnSiliconRaw2Digit::CreatePedestalReport ( )

◆ FillEvent() [1/2]

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

Definition at line 224 of file BmnSiliconRaw2Digit.cxx.

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

Here is the call graph for this function:

◆ FillEvent() [2/2]

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

◆ FillNoisyChannels() [1/2]

◆ FillNoisyChannels() [2/2]

BmnStatus BmnSiliconRaw2Digit::FillNoisyChannels ( )

◆ FillProfiles() [1/2]

BmnStatus BmnSiliconRaw2Digit::FillProfiles ( TClonesArray * adc)

Definition at line 236 of file BmnSiliconRaw2Digit.cxx.

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

Here is the call graph for this function:

◆ FillProfiles() [2/2]

BmnStatus BmnSiliconRaw2Digit::FillProfiles ( TClonesArray * adc)

◆ MapStrip() [1/2]

int32_t BmnSiliconRaw2Digit::MapStrip ( BmnSiliconMapInfo * v,
uint16_t & iCh,
uint16_t & iSmpl )
inlineprivate

Definition at line 92 of file BmnSiliconRaw2Digit.h.

References BmnAdcProcessor::GetNSamples(), and v.

Referenced by FillNoisyChannels().

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

◆ MapStrip() [2/2]

int32_t BmnSiliconRaw2Digit::MapStrip ( BmnSiliconMapInfo * v,
uint16_t & iCh,
uint16_t & iSmpl )
inlineprivate

Definition at line 92 of file BmnSiliconRaw2Digit.h.

References BmnAdcProcessor::GetNSamples(), and v.

Here is the call graph for this function:

◆ ProcessAdc() [1/2]

◆ ProcessAdc() [2/2]

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

References BmnSiliconRaw2Digit().

Here is the call graph for this function:

◆ ReadMapFile() [1/2]

BmnStatus BmnSiliconRaw2Digit::ReadMapFile ( )
private

Definition at line 97 of file BmnSiliconRaw2Digit.cxx.

References BmnSiliconMapInfo::channel_high, BmnSiliconMapInfo::channel_low, TString::Data(), BmnAdcProcessor::fDetName, fMapFileName, fOuterMap, fSilStationSet, fSML2MapInfo, BmnAdcProcessor::fSpecThreshMap, BmnSiliconLayer::GetFirstStripNumber(), BmnSiliconLayer::GetLastStripNumber(), BmnAdcProcessor::GrabNewSerial(), BmnSiliconMapInfo::inverted, kBMNERROR, kBMNSUCCESS, BmnSiliconMapInfo::layer, BmnSiliconMapInfo::module, BmnSiliconMapInfo::serial, BmnAdcProcessor::SetThreshold(), BmnSiliconMapInfo::station, BmnSiliconMapInfo::strip_max, BmnSiliconMapInfo::strip_min, and thr.

Referenced by BmnSiliconRaw2Digit().

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

◆ ReadMapFile() [2/2]

BmnStatus BmnSiliconRaw2Digit::ReadMapFile ( )
private

Member Data Documentation

◆ allCnt

int32_t BmnSiliconRaw2Digit::allCnt = 0
private

Definition at line 85 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ canStrip

TCanvas * BmnSiliconRaw2Digit::canStrip = nullptr
private

Definition at line 65 of file BmnSiliconRaw2Digit.h.

Referenced by ~BmnSiliconRaw2Digit(), and CreatePedestalReport().

◆ fMapFileName

TString BmnSiliconRaw2Digit::fMapFileName
private

Definition at line 63 of file BmnSiliconRaw2Digit.h.

Referenced by BmnSiliconRaw2Digit(), CreatePedestalReport(), and ReadMapFile().

◆ fOuterMap

unordered_map< uint32_t, InChanMapSil > BmnSiliconRaw2Digit::fOuterMap
private

◆ fSilStationSet

unique_ptr< BmnSiliconStationSet > BmnSiliconRaw2Digit::fSilStationSet
private

◆ fSML2MapInfo

map< KeySML, BmnSiliconMapInfo * > BmnSiliconRaw2Digit::fSML2MapInfo
private

Definition at line 62 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport(), FillNoisyChannels(), and ReadMapFile().

◆ hcms

TH2F * BmnSiliconRaw2Digit::hcms = nullptr
private

Definition at line 72 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hcorr

TH2F * BmnSiliconRaw2Digit::hcorr = nullptr
private

Definition at line 69 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hcorrp

TH2F * BmnSiliconRaw2Digit::hcorrp = nullptr
private

Definition at line 68 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hfilter

TH2F * BmnSiliconRaw2Digit::hfilter = nullptr
private

Definition at line 70 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hped

TH2F * BmnSiliconRaw2Digit::hped = nullptr
private

Definition at line 71 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hped1

TH1F * BmnSiliconRaw2Digit::hped1 = nullptr
private

Definition at line 76 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hraw

TH2F * BmnSiliconRaw2Digit::hraw = nullptr
private

Definition at line 66 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hrms

TH2F * BmnSiliconRaw2Digit::hrms = nullptr
private

Definition at line 67 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hscms

TH2F * BmnSiliconRaw2Digit::hscms = nullptr
private

Definition at line 73 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hscms1

TH1F * BmnSiliconRaw2Digit::hscms1 = nullptr
private

Definition at line 74 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hscms1full

TH1F * BmnSiliconRaw2Digit::hscms1full = nullptr
private

Definition at line 75 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ hsig

TH1F * BmnSiliconRaw2Digit::hsig = nullptr
private

Definition at line 77 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ nchip

int32_t BmnSiliconRaw2Digit::nchip
private

Definition at line 80 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ nchmin

int32_t BmnSiliconRaw2Digit::nchmin
private

Definition at line 81 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ nev

int32_t BmnSiliconRaw2Digit::nev = -1
private

Definition at line 78 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ niterped

int32_t BmnSiliconRaw2Digit::niterped
private

Definition at line 79 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ npevents

int32_t BmnSiliconRaw2Digit::npevents
private

Definition at line 82 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ thresh

Double_t BmnSiliconRaw2Digit::thresh
private

Definition at line 87 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ thrnoise

Double_t BmnSiliconRaw2Digit::thrnoise
private

Definition at line 89 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().

◆ zeroCnt

int32_t BmnSiliconRaw2Digit::zeroCnt = 0
private

Definition at line 84 of file BmnSiliconRaw2Digit.h.

Referenced by CreatePedestalReport().


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