1#include "KVEventClassifier.h"
26 std::vector<double>::const_iterator
result = std::find_if(
fCuts.begin(),
fCuts.end(),
27 [value_to_test](
double x) {
28 return x > value_to_test;
65 Error(
"Init()",
"Tried to make event classifier for variable %s using expression: %s",
fVar->
GetName(),
fVal.
Data());
winID h TVirtualViewer3D TVirtualGLPainter p
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 result
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Simple class for sorting events according to global variables.
std::unique_ptr< TFormula > fFormula
in case a combination of values is used
bool fWithExpression
true if an expression using several values is used
std::vector< double > fCuts
cuts in variable to define event classes
std::vector< std::string > fValues
indices of values in parsed expression
bool fWithVal
true if named value given
bool fIntegerVariable
true if global variable used for cuts has integer values
KVVarGlob * fVar
variable used for event classification
TString fVal
optional name of value calculated by variable to use
Double_t GetValue(void) const
Bool_t HasValue(const Char_t *name) const
Int_t GetNameIndex(const Char_t *name) const
const KVNameValueList & GetValueNameList() const
virtual Char_t GetValueType(Int_t) const
const char * GetName() const override
virtual const char * GetName() const
virtual void Error(const char *method, const char *msgfmt,...) const
virtual Double_t Uniform(Double_t x1, Double_t x2)
const char * Data() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TString & ReplaceAll(const char *s1, const char *s2)