ATLAS Offline Software
ConstantContentBinMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 // 08.06.2008, AUTHOR: OLIVER KORTNER
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 
9 #ifndef MuonCalib_ConstantContentBinMakerH
10 #define MuonCalib_ConstantContentBinMakerH
11 
12 //:::::::::::::::::::::::::::::::::::
13 //:: CLASS ConstantContentBinMaker ::
14 //:::::::::::::::::::::::::::::::::::
15 
24 
25 //::::::::::::::::::
26 //:: HEADER FILES ::
27 //::::::::::::::::::
28 
29 // STL //
30 #include <vector>
31 
32 // MuonCalib //
33 #include "MuonCalibMath/DataBin.h"
34 
35 namespace MuonCalib {
36 
38 
39 public:
40 // Constructor //
41  ConstantContentBinMaker(const std::vector<DataPoint> & points,
42  const double epsilon);
49 // Methods //
50  bool binDataPoints(const unsigned int & bin_content,
51  std::vector<unsigned int> & ref_coord);
60  const std::vector<DataBin *> & getBins() const;
63 
64 private:
65  std::vector<DataPoint> m_points; // data points
66  std::vector<DataBin *> m_bins; // bins containing the data points
67  double m_epsilon; // the same as epsilon in constructor
68 
69 };
70 
71 }
72 
73 #endif
MuonCalib::ConstantContentBinMaker
Definition: ConstantContentBinMaker.h:37
MuonCalib::ConstantContentBinMaker::m_points
std::vector< DataPoint > m_points
Definition: ConstantContentBinMaker.h:65
MuonCalib::ConstantContentBinMaker::binDataPoints
bool binDataPoints(const unsigned int &bin_content, std::vector< unsigned int > &ref_coord)
group the data points into bins of equal content "bin_content"; returns true in case of success,...
Definition: ConstantContentBinMaker.cxx:46
MuonCalib::ConstantContentBinMaker::m_epsilon
double m_epsilon
Definition: ConstantContentBinMaker.h:67
MuonCalib::ConstantContentBinMaker::~ConstantContentBinMaker
~ConstantContentBinMaker()
Definition: ConstantContentBinMaker.cxx:32
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::ConstantContentBinMaker::getBins
const std::vector< DataBin * > & getBins() const
get the bins determined by the method "binDataPoints"
Definition: ConstantContentBinMaker.cxx:120
MuonCalib::ConstantContentBinMaker::ConstantContentBinMaker
ConstantContentBinMaker(const std::vector< DataPoint > &points, const double epsilon)
Constructor.
Definition: ConstantContentBinMaker.cxx:23
MuonCalib::ConstantContentBinMaker::m_bins
std::vector< DataBin * > m_bins
Definition: ConstantContentBinMaker.h:66
jobOptions.points
points
Definition: jobOptions.GenevaPy8_Zmumu.py:97
DataBin.h