CbmRoot
Loading...
Searching...
No Matches
DigiQa Class Reference

QA module for STS raw digis. More...

#include <StsDigiQa.h>

Inheritance diagram for DigiQa:
[legend]
Collaboration diagram for DigiQa:
[legend]

Public Member Functions

 DigiQa (std::shared_ptr< HistogramSender > pSender)
 Constructor.
 
 DigiQa ()=delete
 Default constructor.
 
 DigiQa (const DigiQa &)=delete
 Copy constructor.
 
 DigiQa (DigiQa &&)=delete
 Move constructor.
 
DigiQaoperator= (const DigiQa &)=delete
 Copy assignment operator.
 
DigiQaoperator= (DigiQa &&)=delete
 Move assignment operator.
 
void Exec ()
 Executes QA (filling histograms)
 
void Init ()
 Initializes QA (initialization of histograms and canvases)
 
bool IsSenderDefined () const
 Checks, if the histogram sender is defined.
 
bool IsSenderDefined () const
 Checks, if the histogram sender is defined.
 
void RegisterDigiData (const PODVector< CbmStsDigi > *pvDigis)
 Register digi-qa data.
 
void RegisterDigiData (const PODVector< CbmStsDigi > *pvDigis)
 Register digi-qa data.
 
void RegisterAuxDigiData (const UnpackAux< sts::UnpackAuxData > *pAuxDigis)
 Register auxiliary digi data.
 
void RegisterAuxDigiData (const UnpackAux< sts::UnpackAuxData > *pAuxDigis)
 Register auxiliary digi data.
 
void RegisterReadoutSetup (const ReadoutSetup &setup)
 Register read-out setup config.
 
void RegisterReadoutSetup (const ReadoutSetup &setup)
 Register read-out setup config.
 
void SetUseAuxData (bool bAux=true)
 Sets usage of auxiliary data.
 
void SetUseAuxData (bool bAux=true)
 Sets usage of auxiliary data.
 
void SetTimesliceIndex (uint64_t tsIndex)
 Sets timeslice index.
 
void SetTimesliceIndex (uint64_t tsIndex)
 Sets timeslice index.
 

Protected Attributes

qa::Data fQaData
 QA data.
 
qa::Data fQaData
 QA data.
 
std::shared_ptr< HistogramSenderfpSender
 Histogram sender.
 
std::shared_ptr< HistogramSenderfpSender
 Histogram sender.
 
std::shared_ptr< ReadoutSetup > fpReadoutSetup
 Readout config instance.
 
std::shared_ptr< ReadoutSetup > fpReadoutSetup
 Readout config instance.
 
const PODVector< CbmStsDigi > * fpvDigis
 Digis input.
 
const PODVector< CbmStsDigi > * fpvDigis
 Digis input.
 
const UnpackAux< sts::UnpackAuxData > * fpAuxDigis
 Aux information on digis.
 
const UnpackAux< sts::UnpackAuxData > * fpAuxDigis
 Aux information on digis.
 
bool fbAux
 Extra distributions (if the auxiliary data should be used)
 
bool fbAux
 Extra distributions (if the auxiliary data should be used)
 

Private Attributes

std::unordered_map< int32_t, int > fmAddressMap
 Map of address to histogram index.
 
std::vector< qa::H1D * > fvphAddressChannel
 hist: digi channel in different sensors
 
std::vector< qa::H1D * > fvphAddressCharge
 hist: digi charge in different sensors
 
std::vector< qa::H2D * > fvphAddressChannelCharge
 hist: digi channel vs. charge in different sensors
 
std::vector< qa::H2D * > fvphAddressChannelElink
 hist: digi channel (vs. eling (AUX)
 
std::vector< qa::Prof1D * > fvppAddressChannelMissedEvt
 prof: missed event ratio vs. channel (AUX)
 
std::vector< qa::Prof1D * > fvppAddressTimeMissedEvt
 prof: missed event ratio vs. time (AUX)
 
qa::H2D * fvphFebAsic = nullptr
 hist: digi FEB vs ASIC
 

Detailed Description

QA module for STS raw digis.

Definition at line 26 of file StsDigiQa.h.

Constructor & Destructor Documentation

◆ DigiQa() [1/4]

cbm::algo::sts::DigiQa::DigiQa ( std::shared_ptr< HistogramSender > pSender)
inline

Constructor.

Definition at line 29 of file StsDigiQa.h.

◆ DigiQa() [2/4]

cbm::algo::sts::DigiQa::DigiQa ( )
delete

Default constructor.

◆ DigiQa() [3/4]

cbm::algo::sts::DigiQa::DigiQa ( const DigiQa & )
delete

Copy constructor.

◆ DigiQa() [4/4]

cbm::algo::sts::DigiQa::DigiQa ( DigiQa && )
delete

Move constructor.

Member Function Documentation

◆ Exec()

void DigiQa::Exec ( )

Executes QA (filling histograms)

Definition at line 139 of file StsDigiQa.cxx.

◆ Init()

void DigiQa::Init ( )

Initializes QA (initialization of histograms and canvases)

Definition at line 21 of file StsDigiQa.cxx.

◆ IsSenderDefined() [1/2]

bool cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::IsSenderDefined ( ) const
inlineinherited

Checks, if the histogram sender is defined.

Definition at line 51 of file QaBase.h.

References fpSender.

◆ IsSenderDefined() [2/2]

bool cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::IsSenderDefined ( ) const
inlineinherited

Checks, if the histogram sender is defined.

Definition at line 51 of file QaBase.h.

◆ operator=() [1/2]

DigiQa & cbm::algo::sts::DigiQa::operator= ( const DigiQa & )
delete

Copy assignment operator.

◆ operator=() [2/2]

DigiQa & cbm::algo::sts::DigiQa::operator= ( DigiQa && )
delete

Move assignment operator.

◆ RegisterAuxDigiData() [1/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterAuxDigiData ( const UnpackAux< sts::UnpackAuxData > * pAuxDigis)
inlineinherited

Register auxiliary digi data.

Definition at line 57 of file QaBase.h.

References fbAux, and fpAuxDigis.

◆ RegisterAuxDigiData() [2/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterAuxDigiData ( const UnpackAux< sts::UnpackAuxData > * pAuxDigis)
inlineinherited

Register auxiliary digi data.

Definition at line 57 of file QaBase.h.

◆ RegisterDigiData() [1/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterDigiData ( const PODVector< CbmStsDigi > * pvDigis)
inlineinherited

Register digi-qa data.

Definition at line 54 of file QaBase.h.

References fpvDigis.

◆ RegisterDigiData() [2/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterDigiData ( const PODVector< CbmStsDigi > * pvDigis)
inlineinherited

Register digi-qa data.

Definition at line 54 of file QaBase.h.

◆ RegisterReadoutSetup() [1/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterReadoutSetup ( const ReadoutSetup & setup)
inlineinherited

Register read-out setup config.

Definition at line 68 of file QaBase.h.

References fpReadoutSetup.

◆ RegisterReadoutSetup() [2/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::RegisterReadoutSetup ( const ReadoutSetup & setup)
inlineinherited

Register read-out setup config.

Definition at line 68 of file QaBase.h.

◆ SetTimesliceIndex() [1/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::SetTimesliceIndex ( uint64_t tsIndex)
inlineinherited

Sets timeslice index.

Definition at line 74 of file QaBase.h.

References fQaData.

◆ SetTimesliceIndex() [2/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::SetTimesliceIndex ( uint64_t tsIndex)
inlineinherited

Sets timeslice index.

Definition at line 74 of file QaBase.h.

◆ SetUseAuxData() [1/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::SetUseAuxData ( bool bAux = true)
inlineinherited

Sets usage of auxiliary data.

Definition at line 71 of file QaBase.h.

References fbAux.

◆ SetUseAuxData() [2/2]

void cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::SetUseAuxData ( bool bAux = true)
inlineinherited

Sets usage of auxiliary data.

Definition at line 71 of file QaBase.h.

Member Data Documentation

◆ fbAux [1/2]

bool cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fbAux
protectedinherited

Extra distributions (if the auxiliary data should be used)

Definition at line 82 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Exec(), cbm::algo::sts::DigiQa::Init(), RegisterAuxDigiData(), and SetUseAuxData().

◆ fbAux [2/2]

bool cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fbAux
protectedinherited

Extra distributions (if the auxiliary data should be used)

Definition at line 82 of file QaBase.h.

◆ fmAddressMap

std::unordered_map<int32_t, int> cbm::algo::sts::DigiQa::fmAddressMap
private

Map of address to histogram index.

Definition at line 53 of file StsDigiQa.h.

◆ fpAuxDigis [1/2]

const UnpackAux< sts::UnpackAuxData >* cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpAuxDigis
protectedinherited

Aux information on digis.

Definition at line 81 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Exec(), and RegisterAuxDigiData().

◆ fpAuxDigis [2/2]

const UnpackAux< sts::UnpackAuxData >* cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpAuxDigis
protectedinherited

Aux information on digis.

Definition at line 81 of file QaBase.h.

◆ fpReadoutSetup [1/2]

std::shared_ptr<ReadoutSetup> cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpReadoutSetup
protectedinherited

Readout config instance.

Definition at line 79 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Init(), and RegisterReadoutSetup().

◆ fpReadoutSetup [2/2]

std::shared_ptr<ReadoutSetup> cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpReadoutSetup
protectedinherited

Readout config instance.

Definition at line 79 of file QaBase.h.

◆ fpSender [1/2]

std::shared_ptr<HistogramSender> cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpSender
protectedinherited

Histogram sender.

Definition at line 78 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Exec(), cbm::algo::sts::DigiQa::Init(), IsSenderDefined(), and QaBase().

◆ fpSender [2/2]

std::shared_ptr<HistogramSender> cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpSender
protectedinherited

Histogram sender.

Definition at line 78 of file QaBase.h.

◆ fpvDigis [1/2]

const PODVector<CbmStsDigi>* cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpvDigis
protectedinherited

Digis input.

Definition at line 80 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Exec(), and RegisterDigiData().

◆ fpvDigis [2/2]

const PODVector<CbmStsDigi>* cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fpvDigis
protectedinherited

Digis input.

Definition at line 80 of file QaBase.h.

◆ fQaData [1/2]

qa::Data cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fQaData
protectedinherited

QA data.

Definition at line 77 of file QaBase.h.

Referenced by cbm::algo::sts::DigiQa::Exec(), cbm::algo::sts::DigiQa::Init(), QaBase(), and SetTimesliceIndex().

◆ fQaData [2/2]

qa::Data cbm::algo::sts::QaBase< CbmStsDigi, UnpackAux< sts::UnpackAuxData >, ReadoutSetup >::fQaData
protectedinherited

QA data.

Definition at line 77 of file QaBase.h.

◆ fvphAddressChannel

std::vector<qa::H1D*> cbm::algo::sts::DigiQa::fvphAddressChannel
private

hist: digi channel in different sensors

Definition at line 56 of file StsDigiQa.h.

◆ fvphAddressChannelCharge

std::vector<qa::H2D*> cbm::algo::sts::DigiQa::fvphAddressChannelCharge
private

hist: digi channel vs. charge in different sensors

Definition at line 58 of file StsDigiQa.h.

◆ fvphAddressChannelElink

std::vector<qa::H2D*> cbm::algo::sts::DigiQa::fvphAddressChannelElink
private

hist: digi channel (vs. eling (AUX)

Definition at line 59 of file StsDigiQa.h.

◆ fvphAddressCharge

std::vector<qa::H1D*> cbm::algo::sts::DigiQa::fvphAddressCharge
private

hist: digi charge in different sensors

Definition at line 57 of file StsDigiQa.h.

◆ fvphFebAsic

qa::H2D* cbm::algo::sts::DigiQa::fvphFebAsic = nullptr
private

hist: digi FEB vs ASIC

Definition at line 64 of file StsDigiQa.h.

◆ fvppAddressChannelMissedEvt

std::vector<qa::Prof1D*> cbm::algo::sts::DigiQa::fvppAddressChannelMissedEvt
private

prof: missed event ratio vs. channel (AUX)

Definition at line 61 of file StsDigiQa.h.

◆ fvppAddressTimeMissedEvt

std::vector<qa::Prof1D*> cbm::algo::sts::DigiQa::fvppAddressTimeMissedEvt
private

prof: missed event ratio vs. time (AUX)

Definition at line 62 of file StsDigiQa.h.


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