|
CbmRoot
|
#include <CaQa.h>
Public Member Functions | |
| Qa (const std::unique_ptr< qa::Manager > &pManager, std::string_view name) | |
| Constructor. | |
| Qa ()=default | |
| Constructor from the configuration object. | |
| Qa (const Qa &)=delete | |
| Copy constructor. | |
| Qa (Qa &&)=delete | |
| Move constructor. | |
| ~Qa ()=default | |
| Destructor. | |
| Qa & | operator= (const Qa &)=delete |
| Copy assignment operator. | |
| Qa & | operator= (Qa &&)=delete |
| Move assignment operator. | |
| void | Exec () |
| QA execution function. | |
| void | Init () |
| Initializes the QA. | |
| bool | CheckInit () const |
| Check initialization. | |
| void | RegisterInputData (const InputData *pInputData) |
| Registers tracking input data object. | |
| void | RegisterTracks (const Vector< Track > *pvTracks) |
| Registers track vector. | |
| void | RegisterRecoHitIndices (const Vector< HitIndex_t > *pvRecoHits) |
| Registers reco hits indices vector. | |
| void | RegisterParameters (const Parameters< fvec > *pParameters) |
| Registers tracking parameters object. | |
| 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 Types | |
| enum class | EHitSet { Input , Used , END } |
| Hit set entries. More... | |
| template<typename T> | |
| using | HitSetArray_t = EnumArray<EHitSet, T> |
| Definition of enum array over EHitSet entries. | |
| using | OccupHistContainer_t = std::vector<HitSetArray_t<qa::H2D*>> |
Private Member Functions | |
| void | FillHitDistributionsForHitSet (EHitSet hitSet, const ca::Hit &hit) |
| Fills hit distributions. | |
Private Attributes | |
| double | fMinHitTime = std::numeric_limits<double>::max() |
| double | fMaxHitTime = std::numeric_limits<double>::lowest() |
| const Parameters< fvec > * | fpParameters = nullptr |
| Pointer to tracking parameters. | |
| const InputData * | fpInputData = nullptr |
| Pointer to input data. | |
| const Vector< Track > * | fpvTracks = nullptr |
| Pointer to tracks vector. | |
| const Vector< HitIndex_t > * | fpvRecoHits = nullptr |
| Pointer to reco hit indices. | |
| OccupHistContainer_t | fvphHitOccupXY |
| hist: Hit occupancy in different stations in XY plane | |
| OccupHistContainer_t | fvphHitOccupZX |
| hist: Hit occupancy in different stations in ZX plane | |
| OccupHistContainer_t | fvphHitOccupZY |
| hist: Hit occupancy in different stations in ZY plane | |
| std::vector< qa::Prof2D * > | fvphHitUsageXY |
| prof: Hit usage in different stations in XY plane | |
| HitSetArray_t< qa::H1D * > | fvphHitFrontKeyIndex = {nullptr, nullptr} |
| Indices of front hit keys. | |
| HitSetArray_t< qa::H1D * > | fvphHitBackKeyIndex = {nullptr, nullptr} |
| Indices of back hit keys. | |
| std::vector< HitSetArray_t< qa::H1D * > > | fvphHitTime |
| Time distribution of hits. | |
| std::array< qa::H1D *, knTrkParPoints > | fvphTrkTheta = {{0}} |
| hist: theta at first/last hit | |
| std::array< qa::H1D *, knTrkParPoints > | fvphTrkPhi = {{0}} |
| hist: phi at first/last hit | |
| std::array< qa::H1D *, knTrkParPoints > | fvphTrkChi2Ndf = {{0}} |
| hist: chi2/NDF at first/last hit | |
| std::array< qa::H2D *, knTrkParPoints > | fvphTrkPhiTheta = {{0}} |
| hist: theta vs. phi at first/last hit | |
| qa::H2D * | fphTrkOriginXY = nullptr |
| hist: origin of tracks in x-y plane [cm] | |
| qa::H2D * | fphTrkFstLstSta = nullptr |
| hist: fst vs lst station index | |
| qa::H1D * | fphTrkNofHits = nullptr |
| hist: number of hits in track | |
| 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 HitSetArray_t< EHitSet > | kHitSets = {EHitSet::Input, EHitSet::Used} |
| Array of EHitSet entries for iteration. | |
| static constexpr double | kXYZMargin = 0.05 |
| Margin for occupancy distributions in XY plane. | |
| static constexpr int | knHitSets = 2 |
| Number of hit sets: input/used. | |
| static constexpr int | knTrkParPoints = 2 |
| Number of track points to build par distributions. | |
| static constexpr int | knStaMax = 16 |
| Max number of stations (histogram binning) | |
| static constexpr bool | kDebug = false |
| Additional histograms. | |
| static constexpr int | kOriginB = 400 |
| Track X(Y) at origin: n bins. | |
| static constexpr double | kOriginL = -1. |
| Track X(Y) at origin: lower bound [cm]. | |
| static constexpr double | kOriginU = +1. |
| Track X(Y) at origin: upper bound [cm]. | |
|
private |
|
private |
|
strongprivate |
|
inline |
|
default |
Constructor from the configuration object.
| config | QA 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 fpData.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and cbm::algo::tof::HitfindQa::Init().
| bool Qa::CheckInit | ( | ) | const |
|
private |
|
inlineinherited |
Gets name of the task.
Definition at line 57 of file QaTaskHeader.h.
References fsName.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
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 fpData.
Referenced by cbm::algo::bmon::HitfindQa::Exec(), cbm::algo::ca::Qa::Exec(), cbm::algo::tof::HitfindQa::Exec(), cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
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 fpData.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
privateinherited |
An instance of the QA data (shared between different tasks)
Definition at line 76 of file QaTaskHeader.h.
Referenced by AddCanvasConfig(), IsActive(), MakeObj(), and TaskHeader().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
privateinherited |
Name of the task.
Definition at line 75 of file QaTaskHeader.h.
Referenced by GetTaskName(), and TaskHeader().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |