Fork me on GitHub

source: svn/trunk/classes/DelphesFormula.h@ 1110

Last change on this file since 1110 was 1080, checked in by Pavel Demin, 12 years ago

add exception for unrecognized formula

File size: 451 bytes
Line 
1#ifndef DelphesFormula_h
2#define DelphesFormula_h
3
4#include "TFormula.h"
5
6class DelphesFormula: public TFormula
7{
8public:
9
10 DelphesFormula();
11
12 DelphesFormula(const char *name, const char *expression);
13
14 ~DelphesFormula();
15
16 Int_t Compile(const char *expression);
17
18 Double_t Eval(Double_t pt, Double_t eta = 0, Double_t phi = 0, Double_t energy = 0);
19
20 Int_t DefinedVariable(TString &variable, Int_t &action);
21};
22
23#endif /* DelphesFormula_h */
24
Note: See TracBrowser for help on using the repository browser.