PandaRoot
PndFtsHoughSpaceBinning.h
Go to the documentation of this file.
1 
10 #ifndef PndFtsHoughSpaceBinning_H
11 #define PndFtsHoughSpaceBinning_H
12 
13 #include <iostream>
14 #include "TObject.h"
15 #include <cmath>
16 #include "TMath.h"
17 #include <math.h>
18 
19 class PndFtsHoughSpaceBinning : public TObject {
20  public:
21  // Constructors/Destructors ---------
22  PndFtsHoughSpaceBinning(); // do not use this constructor
23  PndFtsHoughSpaceBinning(Int_t nBinsThetaVal,
24  Double_t thetaRadLowVal, // in rad
25  Double_t thetaRadHighVal, // in rad
26 
27  Int_t nBinsYVal, Double_t yLowVal,
28  Double_t yHighVal); // supports asymmetric boundaries for Hough spaces
29  PndFtsHoughSpaceBinning(Int_t stepsPerThetaDeg, Double_t thetaDegLowHighVal,
30 
31  Int_t nBinsYVal,
32  Double_t yLowHighVal); // only symmetric boundaries for Hough spaces
34 
35  inline void Print() const;
36 
37  Int_t getNBinsTheta() const { return fNBinsTheta; };
38  Double_t getThetaRadLow() const { return fThetaRadLow; };
39  Double_t getThetaRadHigh() const { return fThetaRadHigh; };
40 
41  Int_t getNBinsY() const { return fNBinsY; };
42  Double_t getYHigh() const { return fYHigh; };
43  Double_t getYLow() const { return fYLow; };
44 
45  private:
46  Int_t fNBinsTheta;
47  Double_t fThetaRadLow;
48  Double_t fThetaRadHigh;
49 
50  Int_t fNBinsY;
51  Double_t fYLow;
52  Double_t fYHigh;
53 
54  public:
56 };
57 
58 // inline functions
60 {
61  std::cout << "x: (" << fNBinsTheta << ", " << fThetaRadLow << ", " << fThetaRadHigh << ") -- y: (" << fNBinsY << ", " << fYLow << ", " << fYHigh << '\n';
62 }
63 
64 #endif
ClassDef(PndFtsHoughSpaceBinning, 1)
Helper class for Hough space containing binning. Created: 09.02.2015.