1 #ifndef __KVEVENTCLASSIFIER_H
2 #define __KVEVENTCLASSIFIER_H
4 #include "KVVarGlob1.h"
195 Error(
"AddCut",
"You cannot mix cuts & bins (and you already defined some bins)");
222 Error(
"AddBin",
"You cannot mix cuts & bins (and you already defined some cuts)");
230 void Init()
override;
#define ClassDefOverride(name, id)
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 b
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
char * Form(const char *fmt,...)
Simple class for sorting events according to global variables.
Bool_t IsGlobalVariable() const override
bool fBcuts
true if cuts are to be used
void Copy(TObject &other) const override
std::unique_ptr< TFormula > fFormula
in case a combination of values is used
void AddBin(double xmin, double xmax)
virtual ~KVEventClassifier()
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
void Calculate() override
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
Abstract base class for global variables which calculate a single value.
void Copy(TObject &obj) const override
void SetValue(Double_t val)
Base class for all global variable implementations.
const char * GetName() const override
virtual void Error(const char *method, const char *msgfmt,...) const