CbmRoot
Loading...
Searching...
No Matches
KfRootUtils.h
Go to the documentation of this file.
1/* Copyright (C) 2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#pragma once
11
12namespace cbm::algo::kf
13{
14 class MaterialMap;
15}
16
17class TH2F;
18class TString;
19
20namespace kf::tools
21{
24 struct RootUtils {
29 static TH2F* ToHistogram(const cbm::algo::kf::MaterialMap& material, const TString& name, const TString& title);
30
31 // TODO: similar methods for fields etc. go here as well
32 // static TH2D* ToHistogram(const FieldSlice<T>& fieldSlice);
33 };
34}; // namespace kf::tools
A map of station thickness in units of radiation length (X0) to the specific point in XY plane.
static TH2F * ToHistogram(const cbm::algo::kf::MaterialMap &material, const TString &name, const TString &title)
Converts a material budget map into a TH2D histogram.