FunctionRep.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _FunctionRep_H_
15 #define _FunctionRep_H_
16 
17 #include "DataRep.h"
18 
19 namespace hippodraw {
20 
21 class Fitter;
22 class FunctionBase;
23 class FunctionParameter;
24 
35  : public hippodraw::DataRep
36 {
37 
38 private:
39 
44 
45 protected:
46 
52 
55  FunctionRep ( FunctionBase * function, DataRep * rep );
56 
59  FunctionRep ( const FunctionRep & );
60 
61 public:
62 
66  virtual ~FunctionRep ();
67 
70  virtual DataRep * clone ();
71 
74  void initializeWith ( DataRep * );
75 
78  virtual bool hasNTupleBindings () const;
79 
83  bool isComposite () const;
84 
87  bool isInComposite () const;
88 
91  void setInComposite ( bool yes );
92 
94  FunctionBase * getFunction () const;
95 
97  DataRep * getTarget () const;
98 
101  void setTarget ( DataRep * rep );
102 
106  bool setFitter ( Fitter * fitter );
107 
109  Fitter * getFitter ( ) const;
110 
112  const std::string & getFitterName () const;
113 
116  bool fitFunction ( );
117 
120  double objectiveValue () const;
121 
125  const std::vector < std::vector < double > > & covarianceMatrix () const;
126 
130  int degreesOfFreedom () const;
131 
134  const std::vector < std::string > & parmNames () const;
135 
139  const std::vector < int > & getFixedFlags () const;
140 
142  const std::vector < double > & parameters () const;
143 
145  const std::vector< double > & principleErrors() const;
146 
149  void setPrincipleErrors ( std::vector < double >::const_iterator begin,
150  std::vector < double >::const_iterator end );
151 
153  void saveParameters ();
154 
156  void restoreParameters ();
157 
159  void setParameters ( const std::vector<double> & params );
160 
163  virtual void setFixedFlags ( const std::vector < int > & flags );
164 
167  void willDelete ( const Observable * observed );
168 
172  virtual bool isTargetable () const;
173 
176  void setCutRange ( const Range & );
177 
180  void setTupleCut ();
181 
184  void removeCut ();
185 
188  void setCutRange ( bool yes = true );
189 
193  bool hasZoomY () const;
194 
197  void setIgnoreError(bool ignore);
198 
203  bool getIgnoreErrors() const;
204 
208  virtual
209  void fillFunctionParameters ( std::vector < FunctionParameter > & ) const;
210 
214  virtual void addToComposite ( FunctionRep * frep );
215 
219  virtual void removeFromComposite ( FunctionRep * frep );
220 
223  const std::string & functionName () const;
224 
225 };
226 
227 } // namespace hippodraw
228 
229 #endif // _FunctionRep_H_

Generated for HippoDraw Class Library by doxygen