26 :
THaFormula(), fLastResult(false), fNCalled(0), fNPassed(0), fMode(kAND)
34 :
THaFormula(), fLastResult(false), fBlockname(block), fNCalled(0),
35 fNPassed(0), fMode(kAND)
125 for(
Int_t i=1; ntrue != 2 && i<ndata; ++i ) {
160 const char*
const here =
"THaCut";
167 const vector<ModeDef_t> mode_defs = {
168 {
"OR",
kOR }, {
"ANY",
kOR }, {
"AND",
kAND },
178 for(
const auto& def : mode_defs ) {
180 static_cast<Ssiz_t>(strlen(def.prefix)) == colon ) {
181 expr.
Remove(0, colon + 1);
188 TString prefix = expr(0, colon);
190 }
else if( expr.
Length() == 0 ) {
191 Error(
here,
"expression may not be empty");
217 ios_base::fmtflags fmt = cout.flags();
218 streamsize prec = cout.precision();
221 cout.flags( ios::left );
222 cout << setw(nn) <<
GetName() <<
" "
230 cout << setprecision(3);
240 cout.flags( ios::right );
242 cout <<
"Curval: " << setw(9) << (bool)
fLastResult <<
" "
244 cout <<
"Called: " << setw(9) <<
fNCalled <<
" "
245 <<
"Passed: " << setw(9) <<
fNPassed;
247 cout << setprecision(3)
254 cout.precision(prec);
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 np
Option_t Option_t TPoint TPoint const char mode
Option_t *const kPRINTLINE
static const char *const here
virtual void SetBlockname(const Text_t *name)
virtual void SetNameTitle(const Text_t *name, const Text_t *title)
EvalMode ParsePrefix(TString &expr)
virtual void Print(Option_t *opt="") const
virtual void SetName(const Text_t *name)
Bool_t EvalElement(Int_t instance)
virtual Int_t DefinedVariable(TString &variable, Int_t &action)
const char * GetOption(Int_t i=0) const
Int_t GetValue(Int_t i=0) const
const char * GetName() const override
const char * GetTitle() const override
virtual void SetName(const char *name)
virtual void SetNameTitle(const char *name, const char *title)
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Error(const char *method, const char *msgfmt,...) const
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Remove(EStripType s, char c)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
double max(double x, double y)