GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GEfficiency.h
Go to the documentation of this file.
1 #ifndef GEFFICIENCY_H
2 #define GEFFICIENCY_H
3 
4 #include <TF1.h>
5 
6 #include <string>
7 #include <algorithm>
8 
9 class GEfficiency : public TF1 {
10  public:
11  GEfficiency(Double_t zeroth,Double_t first,Double_t second, Double_t inverse); // done
12  GEfficiency(const GEfficiency&); // done
13  GEfficiency(); //done
14  virtual ~GEfficiency(); // done
15 
16  void Copy(TObject&) const; // done
17  void Print(Option_t *opt="") const; // done
18  void Clear(Option_t *opt=""); // done
19 
20  void InitNames(); // done
21  bool InitParams(); // done
22  bool Fit(TH1*, Option_t *opt="");
23  void DrawResids(TH1*) const;
24 
25  private:
26  double fchi2;
27  double fNdf;
28 
29  bool IsInitialized() const { return init_flag; }
30  void SetInitialized(bool flag = true) {init_flag = flag;}
31  bool init_flag;
32 
34 };
35 
36 #endif