CbmRoot
|
A QA-task for the V0-finding algorithm. More...
#include <KfpV0FinderQa.h>
Public Member Functions | |
V0FinderQa (const std::unique_ptr< qa::Manager > &pManager, std::string_view name) | |
Constructor. | |
V0FinderQa (const V0FinderQa &)=delete | |
Copy constructor. | |
V0FinderQa (V0FinderQa &&)=delete | |
Move constructor. | |
V0FinderQa & | operator= (const V0FinderQa &)=delete |
Copy assignment operator. | |
V0FinderQa & | operator= (V0FinderQa &&)=delete |
Move assignment operator. | |
void | Exec (const RecoResults &recoEvent, const V0Finder &v0Finder) |
Executes the task, fills the histograms. | |
void | Init () |
Initialized the task. | |
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 | |
qa::H1D * | fvphMassLambdaCand {nullptr} |
Mass of Lambda-candidates. | |
qa::H1D * | fvphMassAll {nullptr} |
Mass of all particles in the topology. | |
qa::H1D * | fvphDcaAll {nullptr} |
DCA of particles to origin. | |
qa::H1D * | fvphBetaAll {nullptr} |
Speed of all particles. | |
qa::H1D * | fvphBetaPion {nullptr} |
Speed of pion-candidates. | |
qa::H1D * | fvphBetaProton {nullptr} |
Speed of proton-candidates. | |
qa::H1D * | fvphMomAll {nullptr} |
Speed of all particles. | |
qa::H1D * | fvphMomPion {nullptr} |
Speed of pion-candidates. | |
qa::H1D * | fvphMomProton {nullptr} |
Speed of proton-candidates. | |
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 | kMassB = 200 |
Lambda-candidate mass: number of bins. | |
static constexpr double | kMassL = 1.08 |
Lambda-candidate mass: lower bound [GeV/c2]. | |
static constexpr double | kMassU = 1.18 |
Lambda-candidate mass: upper bound [GeV/c2]. | |
static constexpr int | kDcaB = 240 |
DCA to origin: number of bins. | |
static constexpr double | kDcaL = 0. |
DCA to origin: lower bound [cm]. | |
static constexpr double | kDcaU = 12. |
DCA to origin: upper bound [cm]. | |
static constexpr int | kBetaB = 240 |
Speed of particle: number of bins. | |
static constexpr double | kBetaL = 0. |
Speed of particle: lower bound [c]. | |
static constexpr double | kBetaU = 1.2 |
Speed of particle: upper bound [c]. | |
A QA-task for the V0-finding algorithm.
Definition at line 34 of file KfpV0FinderQa.h.
|
inline |
Constructor.
pManager | Pointer to the QA manager |
name | Name of the QA |
Definition at line 39 of file KfpV0FinderQa.h.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
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 cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), Init(), and cbm::algo::tof::HitfindQa::Init().
void V0FinderQa::Exec | ( | const RecoResults & | recoEvent, |
const V0Finder & | v0Finder ) |
Executes the task, fills the histograms.
recoEvent | A reconstructed event instance |
v0Finder | A V0-finder instance |
Definition at line 51 of file KfpV0FinderQa.cxx.
References cbm::algo::qa::H1D::Fill(), fvphBetaAll, fvphBetaPion, fvphBetaProton, fvphDcaAll, fvphMassAll, fvphMassLambdaCand, fvphMomPion, fvphMomProton, cbm::algo::kfp::V0Finder::GetParticleInfo(), cbm::algo::kfp::V0Finder::GetT0s(), cbm::algo::kfp::V0Finder::GetTopoReconstructor(), cbm::algo::kfp::V0Finder::GetTrackAssignedParams(), cbm::algo::kfp::V0Finder::kUndefPdg, cbm::algo::RecoResults::tracks, and tracks.
|
inlineinherited |
Gets name of the task.
Definition at line 57 of file QaTaskHeader.h.
References cbm::algo::qa::TaskHeader::fsName.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), and cbm::algo::tof::HitfindQa::Init().
void V0FinderQa::Init | ( | ) |
Initialized the task.
Definition at line 20 of file KfpV0FinderQa.cxx.
References cbm::algo::qa::TaskHeader::AddCanvasConfig(), fvphBetaAll, fvphBetaPion, fvphBetaProton, fvphDcaAll, fvphMassAll, fvphMassLambdaCand, fvphMomAll, fvphMomPion, fvphMomProton, kBetaB, kBetaL, kBetaU, kDcaB, kDcaL, kDcaU, kMassB, kMassL, kMassU, and cbm::algo::qa::TaskHeader::MakeObj().
|
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 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(), 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 cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), Init(), and cbm::algo::tof::HitfindQa::Init().
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
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().
|
privateinherited |
Name of the task.
Definition at line 75 of file QaTaskHeader.h.
Referenced by cbm::algo::qa::TaskHeader::GetTaskName().
|
private |
Speed of all particles.
Definition at line 77 of file KfpV0FinderQa.h.
|
private |
Speed of pion-candidates.
Definition at line 78 of file KfpV0FinderQa.h.
|
private |
Speed of proton-candidates.
Definition at line 79 of file KfpV0FinderQa.h.
|
private |
DCA of particles to origin.
Definition at line 76 of file KfpV0FinderQa.h.
|
private |
Mass of all particles in the topology.
Definition at line 75 of file KfpV0FinderQa.h.
|
private |
Mass of Lambda-candidates.
Definition at line 74 of file KfpV0FinderQa.h.
|
private |
|
private |
Speed of pion-candidates.
Definition at line 81 of file KfpV0FinderQa.h.
|
private |
Speed of proton-candidates.
Definition at line 82 of file KfpV0FinderQa.h.
|
staticconstexprprivate |
Speed of particle: number of bins.
Definition at line 69 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
Speed of particle: lower bound [c].
Definition at line 70 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
Speed of particle: upper bound [c].
Definition at line 71 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
|
staticconstexprprivate |
DCA to origin: lower bound [cm].
Definition at line 67 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
DCA to origin: upper bound [cm].
Definition at line 68 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
Lambda-candidate mass: number of bins.
Definition at line 63 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
Lambda-candidate mass: lower bound [GeV/c2].
Definition at line 64 of file KfpV0FinderQa.h.
Referenced by Init().
|
staticconstexprprivate |
Lambda-candidate mass: upper bound [GeV/c2].
Definition at line 65 of file KfpV0FinderQa.h.
Referenced by Init().