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
13
14
15namespace cbm::algo
16{
17 class RecoResults;
18
19 namespace qa
20 {
21 class H1D;
22 class H2D;
23 } // namespace qa
24
25 namespace kfp
26 {
27 class V0Finder;
28 }
29} // namespace cbm::algo
30
31namespace cbm::algo::kfp
32{
35 class V0FinderQa : public qa::TaskHeader {
36 public:
40 V0FinderQa(const std::unique_ptr<qa::Manager>& pManager, std::string_view name) : qa::TaskHeader(pManager, name) {}
41
43 V0FinderQa(const V0FinderQa&) = delete;
44
47
49 V0FinderQa& operator=(const V0FinderQa&) = delete;
50
53
57 void Exec(const RecoResults& recoEvent, const V0Finder& v0Finder);
58
60 void Init();
61
62 private:
63 //* Constants
64 static constexpr int kMassB = 50;
65 static constexpr double kMassL = 1.08;
66 static constexpr double kMassU = 1.28;
67 static constexpr int kDcaB = 240;
68 static constexpr double kDcaL = 0.;
69 static constexpr double kDcaU = 12.;
70 static constexpr int kBetaB = 240;
71 static constexpr double kBetaL = 0.;
72 static constexpr double kBetaU = 1.2;
73
74 //* Histograms
76 qa::H1D* fvphMassAll{nullptr};
77 qa::H1D* fvphDcaAll{nullptr};
78 qa::H1D* fvphBetaAll{nullptr};
81 qa::H1D* fvphMomAll{nullptr};
82 qa::H1D* fvphMomPion{nullptr};
84 };
85} // namespace cbm::algo::kfp
A header for a particular QA task, must be inherited by a given QA task.
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
Definition Histogram.h:442
2D-histogram
Definition Histogram.h:511
An interface to the qa::Manager.
TaskHeader(const std::unique_ptr< Manager > &pManager, std::string_view name)
Constructor.