CbmRoot
Loading...
Searching...
No Matches
cbm::algo::bmon::HitfindQa Class Reference

A QA module for the BMON hit-finder. More...

#include <BmonHitfindQa.h>

Inheritance diagram for cbm::algo::bmon::HitfindQa:
[legend]
Collaboration diagram for cbm::algo::bmon::HitfindQa:
[legend]

Public Member Functions

 HitfindQa (const std::unique_ptr< qa::Manager > &pManager, std::string_view name)
 Constructor.
 
 HitfindQa ()=default
 Constructor from the configuration object.
 
 HitfindQa (const HitfindQa &)=delete
 Copy constructor.
 
 HitfindQa (HitfindQa &&)=delete
 Move constructor.
 
 ~HitfindQa ()=default
 Destructor.
 
HitfindQaoperator= (const HitfindQa &)=delete
 Copy assignment operator.
 
HitfindQaoperator= (HitfindQa &&)=delete
 Move assignment operator.
 
void Exec ()
 Executes the task, fills the histograms.
 
void Init ()
 Initialized the task.
 
void InitParameters (const CalibrateSetup &calSetup, const HitfindSetup &hitSetup)
 Initialisation of the parameters.
 
void RegisterDigis (const std::vector< CbmBmonDigi > *pDigis)
 Registers a sample of digis.
 
void RegisterHits (const PartitionedVector< bmon::Hit > *pHits)
 Registers a sample of hits.
 
void RegisterDigiIndices (const PODVector< int32_t > *pDigiIndices)
 Registers a sample of digi indices, used by hits.
 
bool IsActive () const
 Checks, if the task is active.
 
const std::string & GetTaskName ()
 Gets name of the task.
 

Protected Member Functions

void AddCanvasConfig (const CanvasConfig &canvas)
 Adds a canvas configuration.
 
template<class Obj , typename... Args>
Obj * MakeObj (Args... args)
 Creates a QA-object and returns the pointer to it.
 

Private Attributes

HitfindQaParameters fParameters
 Parameters of the hit finder QA.
 
const std::vector< CbmBmonDigi > * fpDigis {nullptr}
 Pointer to BMON digi sample.
 
const PartitionedVector< bmon::Hit > * fpHits {nullptr}
 Pointer to BMON hit sample.
 
const PODVector< int32_t > * fpDigiIndices {nullptr}
 Pointer to BMON digi indices, used by hits.
 
std::vector< qa::H1D * > fvphDigiOccupVsChan
 Digi occupancy vs. channel [diamond].
 
std::vector< qa::H2D * > fvphDigiChargeVsChan
 Digi charge vs channel [diamond].
 
std::vector< qa::H1D * > fvphHitNofChan
 Hit number of channels [diamond].
 
std::vector< qa::H1D * > fvphHitTimeDiff
 Time difference of two digis in a hit [diamond].
 
std::string fsName {}
 Name of the task.
 
std::shared_ptr< Data > fpData {nullptr}
 An instance of the QA data (shared between different tasks)
 

Static Private Attributes

static constexpr int kChrgB = 150
 charge scale: number of bins
 
static constexpr double kChrgL = 0.
 charge scale: lower bound
 
static constexpr double kChrgU = 150.
 charge scale: upper bound
 
static constexpr int kDtimeB = 40
 digi time difference: number of bins
 
static constexpr double kDtimeL = 0.
 digi time difference: lower bound [ns]
 
static constexpr double kDtimeU = 2.0
 digi time difference: upper bound [ns]
 

Detailed Description

A QA module for the BMON hit-finder.

Definition at line 37 of file BmonHitfindQa.h.

Constructor & Destructor Documentation

◆ HitfindQa() [1/4]

cbm::algo::bmon::HitfindQa::HitfindQa ( const std::unique_ptr< qa::Manager > & pManager,
std::string_view name )
inline

Constructor.

Parameters
pManagerPointer to the QA manager
nameName of the QA (directory)

Definition at line 42 of file BmonHitfindQa.h.

◆ HitfindQa() [2/4]

cbm::algo::bmon::HitfindQa::HitfindQa ( )
default

Constructor from the configuration object.

◆ HitfindQa() [3/4]

cbm::algo::bmon::HitfindQa::HitfindQa ( const HitfindQa & )
delete

Copy constructor.

◆ HitfindQa() [4/4]

cbm::algo::bmon::HitfindQa::HitfindQa ( HitfindQa && )
delete

Move constructor.

◆ ~HitfindQa()

cbm::algo::bmon::HitfindQa::~HitfindQa ( )
default

Destructor.

Member Function Documentation

◆ AddCanvasConfig()

void cbm::algo::qa::TaskHeader::AddCanvasConfig ( const CanvasConfig & canvas)
inlineprotectedinherited

◆ Exec()

◆ GetTaskName()

const std::string & cbm::algo::qa::TaskHeader::GetTaskName ( )
inlineinherited

◆ Init()

◆ InitParameters()

void cbm::algo::bmon::HitfindQa::InitParameters ( const CalibrateSetup & calSetup,
const HitfindSetup & hitSetup )
inline

Initialisation of the parameters.

Definition at line 69 of file BmonHitfindQa.h.

References fParameters.

◆ IsActive()

bool cbm::algo::qa::TaskHeader::IsActive ( ) const
inlineinherited

Checks, if the task is active.

The task can be inactive, if a nullptr qa::Manager was passed to the constructor. If it is the case, the fpData instance is not defined, and no actions on the task should be performed

Definition at line 54 of file QaTaskHeader.h.

References cbm::algo::qa::TaskHeader::fpData.

Referenced by Exec(), cbm::algo::ca::Qa::Exec(), cbm::algo::tof::HitfindQa::Exec(), Init(), cbm::algo::ca::Qa::Init(), cbm::algo::tof::HitfindQa::Init(), cbm::algo::TrackingChain::Init(), and cbm::algo::TrackingChain::PrepareOutput().

◆ MakeObj()

template<class Obj , typename... Args>
Obj * cbm::algo::qa::TaskHeader::MakeObj ( Args... args)
inlineprotectedinherited

Creates a QA-object and returns the pointer to it.

Template Parameters
ObjA type of the histogram (H1D, H2D, Prof1D, Prof2D)
Args...A signature of the histogram constructor
Parameters
argsParameters, passed to a histogram constructor

Definition at line 69 of file QaTaskHeader.h.

References cbm::algo::qa::TaskHeader::fpData.

Referenced by Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and cbm::algo::tof::HitfindQa::Init().

◆ operator=() [1/2]

HitfindQa & cbm::algo::bmon::HitfindQa::operator= ( const HitfindQa & )
delete

Copy assignment operator.

◆ operator=() [2/2]

HitfindQa & cbm::algo::bmon::HitfindQa::operator= ( HitfindQa && )
delete

Move assignment operator.

◆ RegisterDigiIndices()

void cbm::algo::bmon::HitfindQa::RegisterDigiIndices ( const PODVector< int32_t > * pDigiIndices)
inline

Registers a sample of digi indices, used by hits.

Parameters
pDigiIndicesA pointer to a vector of digi indices

Definition at line 84 of file BmonHitfindQa.h.

References fpDigiIndices.

◆ RegisterDigis()

void cbm::algo::bmon::HitfindQa::RegisterDigis ( const std::vector< CbmBmonDigi > * pDigis)
inline

Registers a sample of digis.

Parameters
pDigisA pointer to a vector of digis

Definition at line 76 of file BmonHitfindQa.h.

References fpDigis.

◆ RegisterHits()

void cbm::algo::bmon::HitfindQa::RegisterHits ( const PartitionedVector< bmon::Hit > * pHits)
inline

Registers a sample of hits.

Parameters
pHitsA pointer to a vector of hits

Definition at line 80 of file BmonHitfindQa.h.

References fpHits.

Member Data Documentation

◆ fParameters

HitfindQaParameters cbm::algo::bmon::HitfindQa::fParameters
private

Parameters of the hit finder QA.

Definition at line 96 of file BmonHitfindQa.h.

Referenced by Exec(), Init(), and InitParameters().

◆ fpData

std::shared_ptr<Data> cbm::algo::qa::TaskHeader::fpData {nullptr}
privateinherited

An instance of the QA data (shared between different tasks)

Definition at line 76 of file QaTaskHeader.h.

Referenced by cbm::algo::qa::TaskHeader::AddCanvasConfig(), cbm::algo::qa::TaskHeader::IsActive(), cbm::algo::qa::TaskHeader::MakeObj(), and cbm::algo::qa::TaskHeader::TaskHeader().

◆ fpDigiIndices

const PODVector<int32_t>* cbm::algo::bmon::HitfindQa::fpDigiIndices {nullptr}
private

Pointer to BMON digi indices, used by hits.

Definition at line 101 of file BmonHitfindQa.h.

Referenced by RegisterDigiIndices().

◆ fpDigis

const std::vector<CbmBmonDigi>* cbm::algo::bmon::HitfindQa::fpDigis {nullptr}
private

Pointer to BMON digi sample.

Definition at line 99 of file BmonHitfindQa.h.

Referenced by Exec(), and RegisterDigis().

◆ fpHits

const PartitionedVector<bmon::Hit>* cbm::algo::bmon::HitfindQa::fpHits {nullptr}
private

Pointer to BMON hit sample.

Definition at line 100 of file BmonHitfindQa.h.

Referenced by Exec(), and RegisterHits().

◆ fsName

std::string cbm::algo::qa::TaskHeader::fsName {}
privateinherited

Name of the task.

Definition at line 75 of file QaTaskHeader.h.

Referenced by cbm::algo::qa::TaskHeader::GetTaskName().

◆ fvphDigiChargeVsChan

std::vector<qa::H2D*> cbm::algo::bmon::HitfindQa::fvphDigiChargeVsChan
private

Digi charge vs channel [diamond].

Definition at line 105 of file BmonHitfindQa.h.

Referenced by Exec(), and Init().

◆ fvphDigiOccupVsChan

std::vector<qa::H1D*> cbm::algo::bmon::HitfindQa::fvphDigiOccupVsChan
private

Digi occupancy vs. channel [diamond].

Definition at line 104 of file BmonHitfindQa.h.

Referenced by Exec(), and Init().

◆ fvphHitNofChan

std::vector<qa::H1D*> cbm::algo::bmon::HitfindQa::fvphHitNofChan
private

Hit number of channels [diamond].

Definition at line 106 of file BmonHitfindQa.h.

Referenced by Exec(), and Init().

◆ fvphHitTimeDiff

std::vector<qa::H1D*> cbm::algo::bmon::HitfindQa::fvphHitTimeDiff
private

Time difference of two digis in a hit [diamond].

Definition at line 107 of file BmonHitfindQa.h.

Referenced by Exec(), and Init().

◆ kChrgB

int cbm::algo::bmon::HitfindQa::kChrgB = 150
staticconstexprprivate

charge scale: number of bins

Definition at line 88 of file BmonHitfindQa.h.

Referenced by Init().

◆ kChrgL

double cbm::algo::bmon::HitfindQa::kChrgL = 0.
staticconstexprprivate

charge scale: lower bound

Definition at line 89 of file BmonHitfindQa.h.

Referenced by Init().

◆ kChrgU

double cbm::algo::bmon::HitfindQa::kChrgU = 150.
staticconstexprprivate

charge scale: upper bound

Definition at line 90 of file BmonHitfindQa.h.

Referenced by Init().

◆ kDtimeB

int cbm::algo::bmon::HitfindQa::kDtimeB = 40
staticconstexprprivate

digi time difference: number of bins

Definition at line 91 of file BmonHitfindQa.h.

Referenced by Init().

◆ kDtimeL

double cbm::algo::bmon::HitfindQa::kDtimeL = 0.
staticconstexprprivate

digi time difference: lower bound [ns]

Definition at line 92 of file BmonHitfindQa.h.

Referenced by Init().

◆ kDtimeU

double cbm::algo::bmon::HitfindQa::kDtimeU = 2.0
staticconstexprprivate

digi time difference: upper bound [ns]

Definition at line 93 of file BmonHitfindQa.h.

Referenced by Init().


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