Hall C ROOT/C++ Analyzer (hcana)
|
Enhanced THaFormula for use in report files. More...
#include <THcFormula.h>
Public Member Functions | |
virtual Int_t | DefinedCut (TString &variable) |
virtual Int_t | DefinedGlobalVariable (TString &variable) |
THcFormula & | operator= (const THcFormula &rhs) |
THcFormula (const char *name, const char *formula, const THcParmList *, const THaVarList *, const THaCutList *clst) | |
THcFormula (const THcFormula &rhs) | |
virtual | ~THcFormula () |
Public Member Functions inherited from THaFormula | |
virtual Int_t | Compile (const char *expression="") |
virtual Int_t | DefinedGlobalVariableExtraList (TString &variable, const THaVarList *extralist) |
virtual Int_t | DefinedSpecialFunction (TString &name) |
virtual char * | DefinedString (Int_t i) |
virtual Double_t | DefinedValue (Int_t i) |
virtual Int_t | DefinedVariable (TString &variable, Int_t &action) |
virtual Double_t | Eval () |
virtual Double_t | Eval (Double_t, Double_t=0.0, Double_t=0.0, Double_t=0.0) const |
virtual Double_t | EvalInstance (Int_t instance) |
virtual Int_t | GetNdata () const |
virtual Bool_t | IsArray () const |
Bool_t | IsError () const |
Bool_t | IsInvalid () const |
virtual Bool_t | IsVarArray () const |
THaFormula & | operator= (const THaFormula &rhs) |
virtual void | Print (Option_t *option="") const |
void | SetCutList (const THaCutList *lst) |
void | SetList (const THaVarList *lst) |
THaFormula () | |
THaFormula (const char *name, const char *formula, Bool_t do_register=true, const THaVarList *vlst=gHaVars, const THaCutList *clst=gHaCuts) | |
THaFormula (const THaFormula &rhs) | |
virtual | ~THaFormula () |
Public Member Functions inherited from ROOT::v5::TFormula | |
virtual void | Analyze (const char *schain, Int_t &err, Int_t offset=0) |
virtual Bool_t | AnalyzeFunction (TString &chaine, Int_t &err, Int_t offset=0) |
void | Clear (Option_t *option="") override |
void | Copy (TObject &formula) const override |
virtual Double_t | EvalPar (const Double_t *x, const Double_t *params=nullptr) |
virtual Double_t | EvalParOld (const Double_t *x, const Double_t *params=nullptr) |
virtual TString | GetExpFormula (Option_t *option="") const |
virtual const TObject * | GetLinearPart (Int_t i) |
virtual Int_t | GetNdim () const |
virtual Int_t | GetNpar () const |
virtual Int_t | GetNumber () const |
Double_t | GetParameter (const char *name) const |
Double_t | GetParameter (Int_t ipar) const |
virtual Double_t * | GetParameters () const |
virtual void | GetParameters (Double_t *params) |
virtual const char * | GetParName (Int_t ipar) const |
virtual Int_t | GetParNumber (const char *name) const |
TClass * | IsA () const override |
virtual Bool_t | IsLinear () const |
virtual Bool_t | IsNormalized () const |
TFormula & | operator= (const TFormula &rhs) |
void | Optimize () |
virtual void | ProcessLinear (TString &replaceformula) |
virtual void | SetNumber (Int_t number) |
virtual void | SetParameter (const char *name, Double_t parvalue) |
virtual void | SetParameter (Int_t ipar, Double_t parvalue) |
virtual void | SetParameters (const Double_t *params) |
virtual void | SetParameters (Double_t p0, Double_t p1, Double_t p2=0, Double_t p3=0, Double_t p4=0, Double_t p5=0, Double_t p6=0, Double_t p7=0, Double_t p8=0, Double_t p9=0, Double_t p10=0) |
virtual void | SetParName (Int_t ipar, const char *name) |
virtual void | SetParNames (const char *name0="p0", const char *name1="p1", const char *name2="p2", const char *name3="p3", const char *name4="p4", const char *name5="p5", const char *name6="p6", const char *name7="p7", const char *name8="p8", const char *name9="p9", const char *name10="p10") |
void | Streamer (TBuffer &) override |
void | Streamer (TBuffer &b, const TClass *onfile_class) |
void | Streamer (TBuffer &b, Int_t version, UInt_t start, UInt_t count, const TClass *onfile_class=nullptr) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
TFormula () | |
TFormula (const char *name, const char *formula) | |
TFormula (const TFormula &formula) | |
virtual void | Update () |
~TFormula () override | |
Public Member Functions inherited from TNamed | |
void | Clear (Option_t *option="") override |
TObject * | Clone (const char *newname="") const override |
Int_t | Compare (const TObject *obj) const override |
void | Copy (TObject &named) const override |
virtual void | FillBuffer (char *&buffer) |
const char * | GetName () const override |
const char * | GetTitle () const override |
ULong_t | Hash () const override |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
TNamed & | operator= (const TNamed &rhs) |
void | Print (Option_t *option="") const override |
virtual void | SetName (const char *name) |
virtual void | SetNameTitle (const char *name, const char *title) |
virtual void | SetTitle (const char *title="") |
virtual Int_t | Sizeof () const |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
Public Member Functions inherited from TObject | |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
virtual void | Browse (TBrowser *b) |
ULong_t | CheckedHash () |
virtual const char * | ClassName () const |
virtual void | Delete (Option_t *option="") |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawClass () const |
virtual TObject * | DrawClone (Option_t *option="") const |
virtual void | Dump () const |
virtual void | Error (const char *method, const char *msgfmt,...) const |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
virtual TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
virtual Bool_t | HandleTimer (TTimer *timer) |
Bool_t | HasInconsistentHash () const |
virtual void | Info (const char *method, const char *msgfmt,...) const |
virtual Bool_t | InheritsFrom (const char *classname) const |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
virtual void | Inspect () const |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
virtual Bool_t | IsEqual (const TObject *obj) const |
virtual Bool_t | IsFolder () const |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
virtual Bool_t | Notify () |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
virtual void | SetDrawOption (Option_t *option="") |
virtual void | SetUniqueID (UInt_t uid) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
TObject () | |
TObject (const TObject &object) | |
virtual void | UseCurrentStyle () |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
virtual | ~TObject () |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from ROOT::v5::TFormula | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static void | GetMaxima (Int_t &maxop, Int_t &maxpar, Int_t &maxconst) |
static void | SetMaxima (Int_t maxop=1000, Int_t maxpar=1000, Int_t maxconst=1000) |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Public Attributes inherited from ROOT::v5::TFormula | |
kLinear | |
kNormalized | |
kNotGlobal | |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
Static Public Attributes inherited from THaFormula | |
static const Option_t *const | kPRINTBRIEF |
static const Option_t *const | kPRINTFULL |
Protected Types inherited from THaFormula | |
enum | EVariableType |
Protected Types inherited from ROOT::v5::TFormula | |
typedef Double_t(TObject::* | TFuncG) (const Double_t *, const Double_t *) const |
Protected Member Functions inherited from THaFormula | |
virtual Int_t | DefinedCutWithType (TString &variable, EVariableType type) |
Double_t | EvalInstanceUnchecked (Int_t instance) |
Int_t | GetNdataUnchecked () const |
Int_t | Init (const char *name, const char *expression) |
virtual Bool_t | IsString (Int_t oper) const |
virtual void | RegisterFormula (Bool_t add=true) |
Protected Member Functions inherited from ROOT::v5::TFormula | |
virtual Bool_t | CheckOperands (Int_t leftoperand, Int_t rightoperartion, Int_t &err) |
virtual Bool_t | CheckOperands (Int_t operation, Int_t &err) |
void | ClearFormula (Option_t *option="") |
virtual void | Convert (UInt_t fromVersion) |
Double_t | EvalParFast (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive0 (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive1 (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive2 (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive3 (const Double_t *x, const Double_t *params) |
Double_t | EvalPrimitive4 (const Double_t *x, const Double_t *params) |
Short_t | GetAction (Int_t code) const |
Short_t | GetActionOptimized (Int_t code) const |
Int_t | GetActionParam (Int_t code) const |
Int_t | GetActionParamOptimized (Int_t code) const |
Int_t * | GetOper () const |
Int_t * | GetOperOptimized () const |
void | MakePrimitive (const char *expr, Int_t pos) |
Int_t | PreCompile () |
void | SetAction (Int_t code, Int_t value, Int_t param=0) |
void | SetActionOptimized (Int_t code, Int_t value, Int_t param=0) |
virtual Bool_t | StringToNumber (Int_t code) |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Enhanced THaFormula for use in report files.
In addition to global variables (gHaVars) and cuts (gHaCuts), THcFormula expressions have access hcana parameters (gHcParms).
The number of times a cut has been try, as well as the number of times that the cut has been tested can be accessed with cutname.scaler
(or .npassed
) and cutname.ncalled
.
Definition at line 15 of file THcFormula.h.
THcFormula::THcFormula | ( | const char * | name, |
const char * | formula, | ||
const THcParmList * | plst, | ||
const THaVarList * | vlst, | ||
const THaCutList * | clst | ||
) |
Definition at line 39 of file THcFormula.cxx.
THcFormula::THcFormula | ( | const THcFormula & | rhs | ) |
Definition at line 74 of file THcFormula.cxx.
|
virtual |
Definition at line 81 of file THcFormula.cxx.
Reimplemented from THaFormula.
Definition at line 87 of file THcFormula.cxx.
Reimplemented from THaFormula.
Definition at line 113 of file THcFormula.cxx.
THcFormula & THcFormula::operator= | ( | const THcFormula & | rhs | ) |
Definition at line 64 of file THcFormula.cxx.
|
protected |
Definition at line 31 of file THcFormula.h.