PandaRoot
PndFtsHoughSpaceBinning.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
22 #ifndef PndFtsHoughSpaceBinning_H
23 #define PndFtsHoughSpaceBinning_H
24 
25 #include <iostream>
26 #include "TObject.h"
27 #include <cmath>
28 #include "TMath.h"
29 #include <math.h>
30 
31 class PndFtsHoughSpaceBinning : public TObject {
32  public:
33  // Constructors/Destructors ---------
34  PndFtsHoughSpaceBinning(); // do not use this constructor
35  PndFtsHoughSpaceBinning(Int_t nBinsThetaVal,
36  Double_t thetaRadLowVal, // in rad
37  Double_t thetaRadHighVal, // in rad
38 
39  Int_t nBinsYVal, Double_t yLowVal,
40  Double_t yHighVal); // supports asymmetric boundaries for Hough spaces
41  PndFtsHoughSpaceBinning(Int_t stepsPerThetaDeg, Double_t thetaDegLowHighVal,
42 
43  Int_t nBinsYVal,
44  Double_t yLowHighVal); // only symmetric boundaries for Hough spaces
46 
47  inline void Print() const;
48 
49  Int_t getNBinsTheta() const { return fNBinsTheta; };
50  Double_t getThetaRadLow() const { return fThetaRadLow; };
51  Double_t getThetaRadHigh() const { return fThetaRadHigh; };
52 
53  Int_t getNBinsY() const { return fNBinsY; };
54  Double_t getYHigh() const { return fYHigh; };
55  Double_t getYLow() const { return fYLow; };
56 
57  private:
58  Int_t fNBinsTheta;
59  Double_t fThetaRadLow;
60  Double_t fThetaRadHigh;
61 
62  Int_t fNBinsY;
63  Double_t fYLow;
64  Double_t fYHigh;
65 
66  public:
68 };
69 
70 // inline functions
72 {
73  std::cout << "x: (" << fNBinsTheta << ", " << fThetaRadLow << ", " << fThetaRadHigh << ") -- y: (" << fNBinsY << ", " << fYLow << ", " << fYHigh << '\n';
74 }
75 
76 #endif
ClassDef(PndFtsHoughSpaceBinning, 1)
Helper class for Hough space containing binning. Created: 09.02.2015.