1 #ifndef __KVEVENTCLASSIFIER_H
2 #define __KVEVENTCLASSIFIER_H
194 Error(
"AddCut",
"You cannot mix cuts & bins (and you already defined some bins)");
221 Error(
"AddBin",
"You cannot mix cuts & bins (and you already defined some cuts)");
#define ClassDef(name, id)
char * Form(const char *fmt,...)
Simple class for sorting events according to global variables.
bool fBcuts
true if cuts are to be used
std::unique_ptr< TFormula > fFormula
in case a combination of values is used
void AddBin(double xmin, double xmax)
virtual ~KVEventClassifier()
Bool_t IsGlobalVariable() const
int GetMaxEventClassNumber() const
bool fWithExpression
true if an expression using several values is used
std::vector< double > fCuts
cuts in variable to define event classes
KVEventClassifier(KVVarGlob *b, const TString &value="")
std::vector< std::string > fValues
indices of values in parsed expression
int GetEventClassification() const
bool fBins
true if separate bins are to be used
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
void Copy(TObject &other) const
Make a copy of this object.
TString fVal
optional name of value calculated by variable to use
Abstract base class for global variables which calculate a single value.
void SetValue(Double_t val)
void Copy(TObject &obj) const
Make a copy of this object.
Base class for all global variable implementations.
virtual const char * GetName() const
virtual void Error(const char *method, const char *msgfmt,...) const