ATLAS Offline Software
Loading...
Searching...
No Matches
RegularFormula.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6/**********************************************************************************
7 * Class : RegularFormula *
8 * *
9 * Authors (alphabetical): *
10 * Max Baak <mbaak@cern.ch> - CERN, Switzerland *
11 **********************************************************************************/
12
13#ifndef __RegularFormula__
14#define __RegularFormula__
15
16#include "TFormula.h"
17#include "TString.h"
18#include <list>
19
20namespace Root {
21
22 class RegularFormula : public TFormula {
23
24 public:
25
27 RegularFormula(const char* name, const char* expression);
28 virtual ~RegularFormula();
29
32
33 Int_t setFormula(const char *expression);
34
35 inline unsigned int getNPars() const { return m_par.size(); }
36 const std::list<TString>& getParNames() const { return m_par; }
37
38 private:
39
40 void parseExpression(const char* expression, TString& expr) ;
41
42 TString m_expr;
43 std::list<TString> m_par;
44
45 ClassDef(RegularFormula,0)
46 };
47}
48
49#endif
50
std::list< TString > m_par
RegularFormula & operator=(const RegularFormula &other)
const std::list< TString > & getParNames() const
void parseExpression(const char *expression, TString &expr)
unsigned int getNPars() const
Int_t setFormula(const char *expression)