1 |
#ifndef trkupgradeanalysis_IHistogramVariable_h
|
2 |
#define trkupgradeanalysis_IHistogramVariable_h
|
3 |
|
4 |
#include <string>
|
5 |
|
6 |
namespace trkupgradeanalysis
|
7 |
{
|
8 |
/** @brief Abstract base class for cuts that return true if a given VHbbCandidate passes, false otherwise.
|
9 |
*
|
10 |
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
11 |
* @date 24/Nov/2011
|
12 |
*/
|
13 |
class IHistogramVariable
|
14 |
{
|
15 |
public:
|
16 |
virtual ~IHistogramVariable() {}
|
17 |
|
18 |
//* @brief The name of the variable
|
19 |
virtual std::string variableName() const = 0;
|
20 |
|
21 |
//* @brief Returns the current value of the variable.
|
22 |
virtual double histogrammableValue() const = 0;
|
23 |
|
24 |
//* @brief The suggested number of histogram bins to use when plotting this cut variable. Not always implemented by the sub class.
|
25 |
virtual size_t suggestedNumberOfBins() const { return 1; }
|
26 |
|
27 |
//* @brief The suggested lower histogram edge to use when plotting this cut variable. Not always implemented by the sub class.
|
28 |
virtual double suggestedLowerEdge() const { return -0.5; }
|
29 |
|
30 |
//* @brief The suggested upper histogram edge to use when plotting this cut variable. Not always implemented by the sub class.
|
31 |
virtual double suggestedUpperEdge() const { return 0.5; }
|
32 |
};
|
33 |
|
34 |
|
35 |
} // end of namespace trkupgradeanalysis
|
36 |
|
37 |
|
38 |
#endif // end of "#ifndef trkupgradeanalysis_IHistogramVariable_h"
|