00001 #ifndef ATLFAST_BINID_H
00002 #define ATLFAST_BINID_H
00003
00004 #include <vector>
00005
00006 namespace Atlfast{
00007
00008 class BinID{
00009
00010 public:
00011 BinID(): m_int(0),m_lowEdge(1, 0.),m_highEdge(1, 0.){}
00012 BinID(int intID, double low1, double high1);
00013 BinID(int intID, double low1, double high1, double low2,double high2);
00014 BinID(int intID, vector<double> low, vector<double> high);
00015 double low(int n=0) const;
00016 double high(int n=0) const;
00017
00018 bool isInBin(const double& var) const;
00019 bool isInBin(const vector<double>& var) const;
00020 bool operator<(const BinID& other) const;
00021 private:
00022 int m_int;
00023 vector<double> m_lowEdge;
00024 vector<double> m_highEdge;
00025 };
00026 }
00027 #endif
00028
00029
00030
00031
00032
00033