26 #include "BCHistogramBase.h" 82 BCH2D(
const TH2*
const h = 0);
172 { std::vector<double> m(1, x); m.push_back(y);
SetGlobalMode(m); }
181 { std::vector<double> m(1, x); m.push_back(y);
SetLocalMode(m); }
253 virtual void DrawBands(
const std::string& options =
"same");
bool fDrawProfileX
flag for drawing x profile.
BCH2DProfileType GetProfileXType()
int fProfileYLineColor
color of y profile.
void SetDrawProfileY(bool flag=true)
Set drawing of y profile.
BCH2DProfileType fProfileXType
profile type of x profile.
bool fLogz
flag for drawing log z.
virtual void DrawBands(const std::string &options="same")
Draw band, or if band type set to no bands, histogram.
virtual std::vector< double > DefaultIntervals(int nbands=-1)
Return default intervals.
BCH2DProfileAxis
Enum for axis to profile.
void SetGlobalMode(std::vector< double > gm)
Set global mode.
A class for handling 2D distributions.
virtual void CheckIntervals(std::vector< double > &intervals, int sort)
Check intervals: remove values below 0 or above 1.
TH2 * GetHistogram()
Return the TH2 histogram.
void SetLogz(bool flag=true)
Sets drawing of z axis in log.
void SetProfileYType(BCH2DProfileType pt)
Set profile type of y profile.
virtual void CopyOptions(const BCHistogramBase &other)
Copy options from.
virtual void DrawMarkers()
Draw Markers: global mode, local mode, etc.
BCH2DProfileType GetProfileYType()
TH1 * fHistogram
The histogram.
BCH2D(const TH2 *const h=0)
The complete constructor.
virtual ~BCH2D()
The default destructor.
BCH2DProfileType
Enum for type of profile.
A base class for drawing histograms in BAT style.
BCH2DProfileType fProfileYType
profile type of y profile.
smallest intervals containing probability mass
void SetLocalMode(double x, double y)
Set local mode.
void SetProfileYLineStyle(int s)
Set line style of y profile.
BCH2DBandType fBandType
band type.
void SetProfileXLineStyle(int s)
Set line style of x profile.
int GetProfileYLineColor()
int fProfileXLineStyle
line style of x profile.
virtual void CheckIntervals(std::vector< double > &intervals)
Check intervals: remove values below 0 or above 1, and sort to proper order band type.
void CopyOptions(const BCH2D &other)
copy options from
void SetLocalMode(std::vector< double > lm)
Set local mode.
int fProfileXLineColor
color of x profile.
void SetProfileXLineColor(int c)
Set line color of x profile.
int GetProfileXLineColor()
bool fDrawProfileY
flag for drawing y profile.
BCH2DBandType
Enum for type of bands to draw on plot.
BCH2DBandType GetBandType()
void DrawProfileGraphs()
Draw the profiles along x and y.
int fProfileYLineStyle
line style of y profile.
int GetProfileXLineStyle()
void SetBandType(BCH2DBandType bt)
Set band type.
void SetProfileYLineColor(int c)
Set line color of y profile.
void SetGlobalMode(double x, double y)
Set global mode.
void SetDrawProfileX(bool flag=true)
Set drawing of x profile.
int GetProfileYLineStyle()
void SetProfileXType(BCH2DProfileType pt)
Set profile type of x profile.
TGraph * CalculateProfileGraph(BCH2DProfileAxis axis, BCH2DProfileType pt=kProfileMean)
Return a graph of the profile along x or y.