CbmRoot
Loading...
Searching...
No Matches
CbmKFV0FinderQa.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// FIXME: Later move this class into a separate QA-task
11
12#pragma once
13
14#include "CbmQaIO.h"
15
16#include <TString.h>
17
18#include <array>
19#include <string>
20#include <vector>
21
22class TH1D;
23class TH2D;
24
25namespace cbm::kfp
26{
29 class V0FinderQa : public CbmQaIO {
30 public:
33 V0FinderQa(bool bUseMc) : CbmQaIO("v0Finder"), fbUseMc(bUseMc) {}
34
36 ~V0FinderQa() = default;
37
38 V0FinderQa(const V0FinderQa&) = delete;
40 V0FinderQa& operator=(const V0FinderQa&) = delete;
42
44 void InitHistograms();
45
47 void WriteHistograms(const TString&);
48
49 //* Histograms (public for easier access)
50 TH1D* fph_tof_lst_hit_time{nullptr};
51 TH1D* fph_beta_all{nullptr};
52 TH1D* fph_dca{nullptr};
53 TH2D* fph_dca2D{nullptr};
54 TH1D* fph_dca_projectionX{nullptr};
55 TH1D* fph_dca_projectionY{nullptr};
59 TH1D* fph_lambda_cand_mass{nullptr};
60
61 private:
62 bool fbUseMc{false};
63
65 };
66} // namespace cbm::kfp
Module for ROOT objects IO interface (header)
ROOT object IO interface for QA.
Definition CbmQaIO.h:44
A simple QA for the V0 finder.
TH1D * fph_tof_lst_hit_time
Time of tof hits, used for track momentum estimation.
V0FinderQa(const V0FinderQa &)=delete
TH1D * fph_dca
Track DCA to origin.
V0FinderQa & operator=(const V0FinderQa &)=delete
TH1D * fph_dca_projectionX
Track DCA to origin (x-component)
TH2D * fph_track_rapidity_vs_pt_pion
Phase space of pion candidates.
ClassDef(V0FinderQa, 0)
TH2D * fph_dca2D
Track DCA to origin (2D)
TH1D * fph_dca_projectionY
Track DCA to origin (y-component)
TH2D * fph_track_rapidity_vs_pt_proton
Phase space of proton candidates.
TH2D * fph_track_rapidity_vs_pt_all
Phase space of all accepted tracks.
void WriteHistograms(const TString &)
Writes histograms into file.
V0FinderQa & operator=(V0FinderQa &&)=delete
TH1D * fph_beta_all
Beta of tracks.
TH1D * fph_lambda_cand_mass
Mass of lambda candidates.
V0FinderQa(V0FinderQa &&)=delete
~V0FinderQa()=default
Destructor.
void InitHistograms()
Initializes histograms.
V0FinderQa(bool bUseMc)
Constructor from parameters.