ATLAS Offline Software
Loading...
Searching...
No Matches
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 //
34
35namespace MuonCalib {
36
38
39public:
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
64private:
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
const std::vector< DataBin * > & getBins() const
get the bins determined by the method "binDataPoints"
ConstantContentBinMaker(const std::vector< DataPoint > &points, const double epsilon)
Constructor.
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,...
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.