CbmRoot
Loading...
Searching...
No Matches
KfpV0FinderQa.h
Go to the documentation of this file.
1/* Copyright (C) 2025 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#pragma once
11
12#include "qa/QaTaskHeader.h"
13
14namespace cbm::algo
15{
16 class RecoResults;
17
18 namespace qa
19 {
20 class H1D;
21 class H2D;
22 } // namespace qa
23
24 namespace kfp
25 {
26 class V0Finder;
27 }
28} // namespace cbm::algo
29
30namespace cbm::algo::kfp
31{
34 class V0FinderQa : public qa::TaskHeader {
35 public:
39 V0FinderQa(const std::unique_ptr<qa::Manager>& pManager, std::string_view name) : qa::TaskHeader(pManager, name) {}
40
42 V0FinderQa(const V0FinderQa&) = delete;
43
46
48 V0FinderQa& operator=(const V0FinderQa&) = delete;
49
52
56 void Exec(const RecoResults& recoEvent, const V0Finder& v0Finder);
57
59 void Init();
60
61 private:
62 //* Constants
63 static constexpr int kMassB = 200;
64 static constexpr double kMassL = 1.08;
65 static constexpr double kMassU = 1.18;
66 static constexpr int kDcaB = 240;
67 static constexpr double kDcaL = 0.;
68 static constexpr double kDcaU = 12.;
69 static constexpr int kBetaB = 240;
70 static constexpr double kBetaL = 0.;
71 static constexpr double kBetaU = 1.2;
72
73 //* Histograms
75 qa::H1D* fvphMassAll{nullptr};
76 qa::H1D* fvphDcaAll{nullptr};
77 qa::H1D* fvphBetaAll{nullptr};
80 qa::H1D* fvphMomAll{nullptr};
81 qa::H1D* fvphMomPion{nullptr};
83 };
84} // namespace cbm::algo::kfp
A header for a particular QA task, must be inherited by a given QA task.
A QA-task for the V0-finding algorithm.
qa::H1D * fvphMassLambdaCand
Mass of Lambda-candidates.
V0FinderQa(const V0FinderQa &)=delete
Copy constructor.
static constexpr int kDcaB
DCA to origin: number of bins.
qa::H1D * fvphMomAll
Speed of all particles.
V0FinderQa & operator=(V0FinderQa &&)=delete
Move assignment operator.
V0FinderQa(V0FinderQa &&)=delete
Move constructor.
qa::H1D * fvphBetaAll
Speed of all particles.
V0FinderQa & operator=(const V0FinderQa &)=delete
Copy assignment operator.
static constexpr int kBetaB
Speed of particle: number of bins.
void Init()
Initialized the task.
void Exec(const RecoResults &recoEvent, const V0Finder &v0Finder)
Executes the task, fills the histograms.
static constexpr double kDcaU
DCA to origin: upper bound [cm].
static constexpr double kBetaU
Speed of particle: upper bound [c].
qa::H1D * fvphBetaPion
Speed of pion-candidates.
V0FinderQa(const std::unique_ptr< qa::Manager > &pManager, std::string_view name)
Constructor.
qa::H1D * fvphMomPion
Speed of pion-candidates.
qa::H1D * fvphDcaAll
DCA of particles to origin.
static constexpr double kDcaL
DCA to origin: lower bound [cm].
static constexpr double kMassL
Lambda-candidate mass: lower bound [GeV/c2].
qa::H1D * fvphBetaProton
Speed of proton-candidates.
qa::H1D * fvphMomProton
Speed of proton-candidates.
static constexpr double kBetaL
Speed of particle: lower bound [c].
static constexpr double kMassU
Lambda-candidate mass: upper bound [GeV/c2].
qa::H1D * fvphMassAll
Mass of all particles in the topology.
static constexpr int kMassB
Lambda-candidate mass: number of bins.
A V0-finding algorithm.
Definition KfpV0Finder.h:25
1D-histogram
An interface to the qa::Manager.
TaskHeader(const std::unique_ptr< Manager > &pManager, std::string_view name)
Constructor.