MINT2
CyclicPhaseBins.h
Go to the documentation of this file.
1 #ifndef CYCLIC_PHASE_BINS_HH
2 #define CYCLIC_PHASE_BINS_HH
3 
4 // HyperPlot includes
5 #include "Mint/MessageService.h"
6 
7 #include "TMath.h"
8 
9 
21 
22  std::vector<double> _binEdges;
23 
24  public:
25 
26  CyclicPhaseBins(std::vector<double> binEdges);
34  void setUniformCiSiBins(int nBinPairs );
37  void setBinEdges (std::vector<double> binEdges);
40  int getBinNumber(double phase) const;
44  double getLowBinBoundary (int bin) const;
47  double getHighBinBoundary(int bin) const;
50  double getLowBinBoundary (double phase) const;
54  double getHighBinBoundary(double phase) const;
58  int getNumBins() const;
64 };
65 
66 
67 #endif
68 
int getNumBins() const
void setBinEdges(std::vector< double > binEdges)
double getHighBinBoundary(int bin) const
double getLowBinBoundary(int bin) const
int getBinNumber(double phase) const
std::vector< double > _binEdges
void setUniformCiSiBins(int nBinPairs)