Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TFoamMaxwt.h
Go to the documentation of this file.
1 // @(#)root/foam:$Id$
2 // Author: S. Jadach <mailto:Stanislaw.jadach@ifj.edu.pl>, P.Sawicki <mailto:Pawel.Sawicki@ifj.edu.pl>
3 
4 #ifndef ROOT_TFoamMaxwt
5 #define ROOT_TFoamMaxwt
6 
7 #include "TObject.h"
8 
9 class TH1D;
10 
11 
12 class TFoamMaxwt : public TObject {
13 private:
14  Double_t fNent; ///< No. of MC events
15  Int_t fnBin; ///< No. of bins on the weight distribution
16  Double_t fwmax; ///< Maximum analyzed weight
17 public:
18  TH1D *fWtHst1; ///< Histogram of the weight wt
19  TH1D *fWtHst2; ///< Histogram of wt filled with wt
20 
21 public:
22  TFoamMaxwt(); // NOT IMPLEMENTED (NEVER USED)
23  TFoamMaxwt(Double_t, Int_t); // Principal Constructor
24  TFoamMaxwt(TFoamMaxwt &From); // Copy constructor
25  virtual ~TFoamMaxwt(); // Destructor
26  void Reset(); // Reset
27  TFoamMaxwt& operator=(const TFoamMaxwt &); // operator =
28  void Fill(Double_t);
29  void Make(Double_t, Double_t&);
30  void GetMCeff(Double_t, Double_t&, Double_t&); // get MC efficiency= <w>/wmax
31 
32  ClassDef(TFoamMaxwt,1); //Controlling of the MC weight (maximum weight)
33 };
34 #endif