ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/VHbbAnalysisCode/interface/IHistogramVariable.h
Revision: 1.1
Committed: Tue Feb 14 01:43:14 2012 UTC (13 years, 2 months ago) by grimes
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
Only added the directory structure in the last commit, this is now the files.

File Contents

# Content
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"