thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
AIAxis.h
1// -*- C++ -*-
2//
3// AIAxis.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef LWH_AIAxis_H
10#define LWH_AIAxis_H
11
12
13
16namespace AIDA {
17
18class IAxis {
19
20public:
21
22 virtual ~IAxis() {}
23
24 virtual bool isFixedBinning() const = 0;
25 virtual double lowerEdge() const = 0;
26 virtual double upperEdge() const = 0;
27 virtual int bins() const = 0;
28 virtual double binLowerEdge(int index) const = 0;
29 virtual double binUpperEdge(int index) const = 0;
30 virtual double binWidth(int) const = 0;
31 virtual int coordToIndex(double coord) const = 0;
32
33 enum { UNDERFLOW_BIN = -2, OVERFLOW_BIN = -1 };
34
35};
36
37}
38
45#endif /* LWH_AIAxis_H */