CbmRoot
Loading...
Searching...
No Matches
KfActiveLayer.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
5
10
11#include "KfActiveLayer.h"
12
13#include <fmt/format.h>
14
16
17// ---------------------------------------------------------------------------------------------------------------------
18//
19template<typename F>
20ActiveLayer<F>::ActiveLayer(F zRef, F xMin, F xMax, F yMin, F yMax, EFieldType fieldType, bool isTimeMeasured)
21 : fZref(zRef)
22 , fXmin(xMin)
23 , fXmax(xMax)
24 , fYmin(yMin)
25 , fYmax(yMax)
26 , fFieldType(fieldType)
27 , fTimeInfo(isTimeMeasured)
28{
29}
30
31// ---------------------------------------------------------------------------------------------------------------------
32//
33template<typename F>
34std::string ActiveLayer<F>::ToString(int indentLevel) const
35{
36 constexpr char indentCh = '\t';
37 std::string indent(indentLevel, indentCh);
38 return indent
39 + fmt::format("active layer: zRef={:9.4}cm, x=[{:9.4}, {:9.4}]cm, y=[{:9.4}, {:9.4}]cm, fieldType={}, "
40 "timeInfo={}",
44}
45
46
47namespace cbm::algo::kf
48{
49 template class ActiveLayer<float>;
50 template class ActiveLayer<double>;
51 template class ActiveLayer<fvec>;
52} // namespace cbm::algo::kf
Properties of an active surface of the layer.
friend class ActiveLayer
Properties of an active surface of the layer.
F fYmin
lower bound for active plane in y-direction [cm]
EFieldType fFieldType
Type of magnetic field near the layer.
F fXmin
lower bound for active plane in x-direction [cm]
F fXmax
upper bound for active plane in x-direction [cm]
F fZref
reference z-coordinate of the layer [cm]
F fYmax
upper bound for active plane in y-direction [cm]
std::string ToString(int indentLevel=0) const
String representation of the class.
bool fTimeInfo
If time-measurement accessible.
DataOut Cast(const DataT &val)
Converts a value of type DataT to type DataOut.
Definition KfUtils.h:212
EFieldType
Magnetic field type in different setup regions.
Definition KfDefs.h:126