Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Fitter.h

Go to the documentation of this file.
00001 
00008 #ifndef __FITTER_H
00009 #define __FITTER_H
00010 
00011 #include "jbltools/sfh/HVisitor.h"
00012 //root
00013 #include <TH1.h>
00014 
00016 class Fitter: public ConstHVisitor {
00017   public: 
00019     Fitter (TF1 *f1_,              
00020             Option_t* option_,     
00021             Option_t* goption_,    
00022             Axis_t xmin_ = 0,      
00023             Axis_t xmax_ = 0       
00024            ) 
00025     : f1 (f1_), option (option_), goption (goption_),
00026       xmin (xmin_), xmax (xmax_) {};
00028     virtual void visit (RegO& h     
00029                        ) const {
00030       if (TH1 *th1 = dynamic_cast<TH1 *>(&h))
00031         th1->Fit (f1, option, goption, xmin, xmax);
00032     };
00033     
00034   private:
00035     TF1 *f1;                 
00036     Option_t* option;        
00037     Option_t* goption;       
00038     Axis_t xmin;             
00039     Axis_t xmax;             
00040 };
00041 
00042 
00043 #endif  /* #ifndef __FITTER_H */

Generated on Thu Oct 26 12:52:55 2006 for SFH by doxygen 1.3.2