Go to the documentation of this file.00001 #ifndef FORIA_MINBIAS_PHIGRID_CORRECTIONS_HH
00002 #define FORIA_MINBIAS_PHIGRID_CORRECTIONS_HH
00003
00004 #include <vector>
00005
00006 #include <gsl/gsl_rng.h>
00007
00008 class TH2F;
00009
00010 namespace ForIA{
00011
00012 using std::vector;
00013
00014 class MinBiasPhiGridCorrections{
00015
00016 public:
00017
00018 MinBiasPhiGridCorrections();
00019
00020 ~MinBiasPhiGridCorrections();
00021
00022 bool setGrid(const vector<double> &grid);
00023
00024 const vector<double> &correctedGrid();
00025
00026
00027
00028 private:
00029
00030 void initialise();
00031
00032 double getDelta(const TH2F *qPlot, double pT);
00033
00034 int m_segments;
00035
00036 bool m_doInitialise;
00037
00038 vector<double> m_input;
00039
00040 vector<double> m_corrected;
00041
00042 vector<bool> m_gotSegment;
00043 bool m_gotGrid;
00044
00045 TH2F * m_quantilePlot;
00046
00050 double m_minPT;
00051
00052
00053
00054
00055
00056 gsl_rng *m_randomGenerator;
00057
00058 };
00059 }
00060
00061 #endif
00062