Logo ROOT   6.08/07
Reference Guide
Roo1DMomentMorphFunction.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * author: Max Baak (mbaak@cern.ch) *
4  *****************************************************************************/
5 
6 #ifndef ROO1DMOMENTMORPHFUNC
7 #define ROO1DMOMENTMORPHFUNC
8 
9 #include "RooAbsReal.h"
10 #include "RooRealProxy.h"
11 #include "RooCategoryProxy.h"
12 #include "RooAbsReal.h"
13 #include "RooAbsCategory.h"
14 #include "RooSetProxy.h"
15 #include "RooArgList.h"
16 #include "TMatrixD.h"
17 #include "TVectorD.h"
18 
19 #include <vector>
20 #include <string>
21 class RooChangeTracker ;
22 
24 public:
25 
27 
29 
30  Roo1DMomentMorphFunction(const char *name, const char *title, RooAbsReal& _m, const RooArgList& varList,
31  const TVectorD& mrefpoints, const Setting& setting = Linear );
32  Roo1DMomentMorphFunction(const Roo1DMomentMorphFunction& other, const char* name=0) ;
33 
34  virtual TObject* clone(const char* newname) const { return new Roo1DMomentMorphFunction(*this,newname); }
35  virtual ~Roo1DMomentMorphFunction();
36 
37  void setMode(const Setting& setting) { _setting = setting; }
38 
39 protected:
40 
41  Double_t evaluate() const ;
42 
43  void calculateFractions() const;
44 
45  void initialize();
46 
47  inline Int_t ij(const Int_t& i, const Int_t& j) const { return (i*_varList.getSize()+j); }
48  int idxmin(const double& m) const;
49  int idxmax(const double& m) const;
50 
53  mutable TVectorD* _mref;
54  mutable TVectorD* _frac;
55 
56  TIterator* _varItr ; //! do not persist
57  mutable TMatrixD* _M;
58 
60 
61  ClassDef(Roo1DMomentMorphFunction,1) // Your description goes here...
62 };
63 
64 #endif
65 
66 
TMatrixD * _M
do not persist
int idxmin(const double &m) const
virtual ~Roo1DMomentMorphFunction()
Destructor.
int Int_t
Definition: RtypesCore.h:41
Iterator abstract base class.
Definition: TIterator.h:32
TMatrixT.
Definition: TMatrixDfwd.h:24
#define ClassDef(name, id)
Definition: Rtypes.h:254
int idxmax(const double &m) const
virtual TObject * clone(const char *newname) const
Roo1DMomentMorphFunction()
Default constructor.
void setMode(const Setting &setting)
Int_t getSize() const
1-dimensional morph function between a list of input functions (varlist) as a function of one input p...
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
Int_t ij(const Int_t &i, const Int_t &j) const
RooChangeTracker is a meta object that tracks value changes in a given set of RooAbsArgs by registeri...
Mother of all ROOT objects.
Definition: TObject.h:37
RooSetProxy is the concrete proxy for RooArgSet objects.
Definition: RooSetProxy.h:25
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
char name[80]
Definition: TGX11.cxx:109