4#include "KVHistogram.h"
18 ParseHistoTitle(fHisto->GetTitle(),
exp,
sel, weight);
19 ParseExpressionString(
exp,
x,
y, z);
20 fParams.SetValue(
"VARX",
x);
21 fParams.SetValue(
"VARY",
y);
22 fParams.SetValue(
"VARZ", z);
23 fParams.SetValue(
"SELECTION",
sel);
24 fParams.SetValue(
"EXPRESSION",
exp);
25 fParams.SetValue(
"WEIGHT", weight);
26 meanrms.
Form(
"%f (%f)", fHisto->GetMean(), fHisto->GetRMS());
27 fParams.SetValue(
"MEANRMSX", meanrms);
28 meanrms.
Form(
"%f (%f)", fHisto->GetMean(2), fHisto->GetRMS(2));
29 fParams.SetValue(
"MEANRMSY", meanrms);
113 sel = tmp(ss + 1, se - ss - 1);
114 sel.Remove(TString::kBoth,
' ');
116 exp.Remove(TString::kBoth,
' ');
120 exp.Remove(TString::kBoth,
' ');
127 weight = tmp1.
Next();
128 weight.
Remove(TString::kBoth,
'[');
129 weight.
Remove(TString::kBoth,
']');
144 tmp.
Remove(TString::kBoth,
' ');
149 varX = varY = varZ =
"";
256 std::cout << std::endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
void SetLabel(const Char_t *lab)
virtual void SetType(const Char_t *str)
const Char_t * GetLabel() const
Wrapper for histograms and graphical cuts used by KVTreeAnalyzer.
const Char_t * GetHistoTitle() const
const Char_t * GetVarZ() const
static void ParseExpressionString(const Char_t *exp, KVString &varX, KVString &varY, KVString &varZ)
Parse expression strings "VARZ:VARY:VARX" or "VARY:VARX" or "VARX".
static void ParseHistoTitle(const Char_t *title, KVString &exp, KVString &sel, KVString &weight)
void SetWeight(const Char_t *)
Set weighting factor used to fill histogram.
const Char_t * GetVarY() const
const Char_t * GetMeanRMSY() const
const Char_t * GetExpression() const
KVHistogram(TH1 *h=nullptr)
Default constructor.
Double_t GetMean(Int_t axis=1) const
TH1 * fHisto
pointer to histogram
void ls(Option_t *option="") const
const Char_t * GetSelection() const
TObject * GetObject() const
In order to have context menu access to the contained histogram or cut.
const Char_t * GetWeight() const
Return weighting used for filling histogram.
const Char_t * GetMeanRMSX() const
const Char_t * GetVarX() const
virtual ~KVHistogram()
Destructor.
KVNameValueList fParams
histogram parameters
void ParseExpressionAndSelection()
TCutG * fCut
pointer to cut
void SetValue(const Char_t *name, value_type value)
const Char_t * GetStringValue(const Char_t *name) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
const char * GetVarX() const
const char * GetVarY() const
virtual Double_t GetMean(Int_t axis=1) const
virtual Double_t GetMean(Int_t axis=1) const
const char * GetName() const override
const char * GetTitle() const override
virtual void SetName(const char *name)
virtual const char * ClassName() const
static Int_t IncreaseDirLevel()
static void IndentLevel()
static Int_t DecreaseDirLevel()
Int_t CountChar(Int_t c) const
void Form(const char *fmt,...)
TString & Remove(EStripType s, char c)
TString & ReplaceAll(const char *s1, const char *s2)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
RVec< PromoteType< T > > exp(const RVec< T > &v)