CbmRoot
|
A QA module for the BMON hit-finder. More...
#include <BmonHitfindQa.h>
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. | |
HitfindQa & | operator= (const HitfindQa &)=delete |
Copy assignment operator. | |
HitfindQa & | operator= (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] | |
A QA module for the BMON hit-finder.
Definition at line 37 of file BmonHitfindQa.h.
|
inline |
Constructor.
pManager | Pointer to the QA manager |
name | Name of the QA (directory) |
Definition at line 42 of file BmonHitfindQa.h.
|
default |
Constructor from the configuration object.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
default |
Destructor.
|
inlineprotectedinherited |
Adds a canvas configuration.
canvas | A CanvasConfig object |
Definition at line 62 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().
void HitfindQa::Exec | ( | ) |
Executes the task, fills the histograms.
Definition at line 84 of file BmonHitfindQa.cxx.
References fParameters, fpDigis, fpHits, fvphDigiChargeVsChan, fvphDigiOccupVsChan, fvphHitNofChan, fvphHitTimeDiff, cbm::algo::bmon::HitfindQaParameters::GetDiamondIndex(), hits, and cbm::algo::qa::TaskHeader::IsActive().
|
inlineinherited |
Gets name of the task.
Definition at line 57 of file QaTaskHeader.h.
References cbm::algo::qa::TaskHeader::fsName.
Referenced by Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), and cbm::algo::tof::HitfindQa::Init().
void HitfindQa::Init | ( | ) |
Initialized the task.
Definition at line 23 of file BmonHitfindQa.cxx.
References cbm::algo::qa::TaskHeader::AddCanvasConfig(), cbm::algo::bmon::HitfindQaParameters::diamonds, fParameters, fvphDigiChargeVsChan, fvphDigiOccupVsChan, fvphHitNofChan, fvphHitTimeDiff, cbm::algo::qa::TaskHeader::GetTaskName(), cbm::algo::qa::TaskHeader::IsActive(), kChrgB, kChrgL, kChrgU, kDtimeB, kDtimeL, kDtimeU, and cbm::algo::qa::TaskHeader::MakeObj().
|
inline |
Initialisation of the parameters.
Definition at line 69 of file BmonHitfindQa.h.
References fParameters.
|
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().
|
inlineprotectedinherited |
Creates a QA-object and returns the pointer to it.
Obj | A type of the histogram (H1D, H2D, Prof1D, Prof2D) |
Args... | A signature of the histogram constructor |
args | Parameters, 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().
Copy assignment operator.
|
inline |
Registers a sample of digi indices, used by hits.
pDigiIndices | A pointer to a vector of digi indices |
Definition at line 84 of file BmonHitfindQa.h.
References fpDigiIndices.
|
inline |
Registers a sample of digis.
pDigis | A pointer to a vector of digis |
Definition at line 76 of file BmonHitfindQa.h.
References fpDigis.
|
inline |
Registers a sample of hits.
pHits | A pointer to a vector of hits |
Definition at line 80 of file BmonHitfindQa.h.
References fpHits.
|
private |
Parameters of the hit finder QA.
Definition at line 96 of file BmonHitfindQa.h.
Referenced by Exec(), Init(), and InitParameters().
|
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().
|
private |
Pointer to BMON digi indices, used by hits.
Definition at line 101 of file BmonHitfindQa.h.
Referenced by RegisterDigiIndices().
|
private |
Pointer to BMON digi sample.
Definition at line 99 of file BmonHitfindQa.h.
Referenced by Exec(), and RegisterDigis().
|
private |
Pointer to BMON hit sample.
Definition at line 100 of file BmonHitfindQa.h.
Referenced by Exec(), and RegisterHits().
|
privateinherited |
Name of the task.
Definition at line 75 of file QaTaskHeader.h.
Referenced by cbm::algo::qa::TaskHeader::GetTaskName().
|
private |
Digi charge vs channel [diamond].
Definition at line 105 of file BmonHitfindQa.h.
|
private |
Digi occupancy vs. channel [diamond].
Definition at line 104 of file BmonHitfindQa.h.
|
private |
Hit number of channels [diamond].
Definition at line 106 of file BmonHitfindQa.h.
|
private |
Time difference of two digis in a hit [diamond].
Definition at line 107 of file BmonHitfindQa.h.
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
digi time difference: number of bins
Definition at line 91 of file BmonHitfindQa.h.
Referenced by Init().
|
staticconstexprprivate |
digi time difference: lower bound [ns]
Definition at line 92 of file BmonHitfindQa.h.
Referenced by Init().
|
staticconstexprprivate |
digi time difference: upper bound [ns]
Definition at line 93 of file BmonHitfindQa.h.
Referenced by Init().