CbmRoot
Loading...
Searching...
No Matches
CbmKFV0FinderQa.cxx
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#include "CbmKFV0FinderQa.h"
11
12#include <Logger.h>
13
14#include <TFile.h>
15
17
18// ---------------------------------------------------------------------------------------------------------------------
19//
21{
22 TString n{""}; // name of histogram
23 TString t{""}; // title of histogram
24
25 n = "tof_lst_hit_time";
26 t = "Time of last TOF hit in track;t [ns];Counts";
27 fph_tof_lst_hit_time = MakeQaObject<TH1D>(n, t, 200, -100., 100.);
28
29 n = "beta_all";
30 t = "Speed of tracks (all);#beta;Counts";
31 fph_beta_all = MakeQaObject<TH1D>(n, t, 150, 0., 1.5);
32
33 {
34 n = "dca";
35 t = "DCA to the origin of the selected tracks;dca [cm];Counts";
36 fph_dca = MakeQaObject<TH1D>(n, t, 120, 0., 6.);
37
38 n = "dca2D";
39 t = "DCA to the origin of the selected tracks;dca_{x} [cm];dca_{y} [cm];Counts";
40 fph_dca2D = MakeQaObject<TH2D>(n, t, 240, -6., 6., 240, -6., 6.);
41
42 n = "dca_projectionX";
43 t = "DCA to the origin of the selected tracks;dca_{x} [cm];Counts";
44 fph_dca_projectionX = MakeQaObject<TH1D>(n, t, 240, -6., 6.);
45
46 n = "dca_projectionY";
47 t = "DCA to the origin of the selected tracks;dca_{y} [cm];Counts";
48 fph_dca_projectionY = MakeQaObject<TH1D>(n, t, 240, -6., 6.);
49
50 n = "lambda_cand_mass";
51 t = "Mass of lambda candidate;m [GeV/^{2}];Counts";
52 fph_lambda_cand_mass = MakeQaObject<TH1D>(n, t, 200, 1.05, 1.15);
53 }
54}
55
56
57// ---------------------------------------------------------------------------------------------------------------------
58//
59void V0FinderQa::WriteHistograms(const TString& fileName)
60{
61 LOG(info) << "V0FinderQa: writing histograms to file: " << fileName;
62 TFile fileOut(fileName, "RECREATE");
63 this->WriteToFile(&fileOut);
64 fileOut.Close();
65}
A simple QA for the V0 finder class (runs together with the finder task)
T * MakeQaObject(TString sName, TString sTitle, Args... args)
Definition CbmQaIO.h:261
void WriteToFile(TFile *pOutFile) const
Writes objects into file.
Definition CbmQaIO.cxx:116
A simple QA for the V0 finder.
TH1D * fph_tof_lst_hit_time
Time of tof hits, used for track momentum estimation.
TH1D * fph_dca
Track DCA to origin.
TH1D * fph_dca_projectionX
Track DCA to origin (x-component)
TH2D * fph_dca2D
Track DCA to origin (2D)
TH1D * fph_dca_projectionY
Track DCA to origin (y-component)
void WriteHistograms(const TString &)
Writes histograms into file.
TH1D * fph_beta_all
Beta of tracks.
TH1D * fph_lambda_cand_mass
Mass of lambda candidates.
void InitHistograms()
Initializes histograms.