CbmRoot
Loading...
Searching...
No Matches
CaSearchWindowMap.cxx
Go to the documentation of this file.
1/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergey Gorbunov [committer] */
4
5#include "CaSearchWindowMap.h"
6
7#include <cassert>
8#include <iomanip>
9#include <sstream>
10
12
14{
15 using std::setw;
16 std::stringstream msg;
17 msg << "x: " << setw(6) << xMin << " .. " << setw(6) << xMax << ", y: " << setw(6) << yMin << " .. " << setw(6)
18 << yMax;
19 return msg.str();
20}
21
22// ---------------------------------------------------------------------------------------------------------------------
23//
24std::string SearchWindowMap::ToString() const
25{
26 using std::setw;
27 std::stringstream msg;
28 msg << "----- CA doublet search SearchWindow: \n";
29 msg << "\tmap range x: " << fXmin << " .. " << fXmax << ", bins " << fXnBins << "; y: " << fYmin << " .. "
30 << fYmax << ", bins " << fYnBins << '\n';
31 msg << "\tSearchWindow sizes: " << '\n';
32 for (int i = 0; i < fXnBins; ++i) {
33 for (int j = 0; j < fYnBins; ++j) {
34 int bin = i * fYnBins + j;
35 msg << "\t\tbin " << i << ", " << j << ": dx = " << fBins[bin].dx << ", dy = " << fBins[bin].dy << '\n';
36 }
37 }
38 return msg.str();
39}
Provides parameterisation for hit search windows in the CA tracking.
Class SearchWindowMap parameterisation for hit search windows in the CA tracking.
int fYnBins
Number of bins in Y.
int fXnBins
Number of bins in X.
std::vector< BinData > fBins
Bin data.
std::string ToString() const
String representation of the contents.
std::string ToString() const
String representation of the contents.