00001 // @(#)root/foam:$Id: TFoamMaxwt.h 22726 2008-03-19 09:53:41Z pcanal $ 00002 // Author: S. Jadach <mailto:Stanislaw.jadach@ifj.edu.pl>, P.Sawicki <mailto:Pawel.Sawicki@ifj.edu.pl> 00003 00004 #ifndef ROOT_TFoamMaxwt 00005 #define ROOT_TFoamMaxwt 00006 00007 ////////////////////////////////////////////////////////////////// 00008 // // 00009 // Small auxiliary class for controlling MC weight. // 00010 // // 00011 ////////////////////////////////////////////////////////////////// 00012 00013 #ifndef ROOT_TObject 00014 #include "TObject.h" 00015 #endif 00016 00017 class TH1D; 00018 00019 00020 class TFoamMaxwt : public TObject { 00021 private: 00022 Double_t fNent; // No. of MC events 00023 Int_t fnBin; // No. of bins on the weight distribution 00024 Double_t fwmax; // Maximum analyzed weight 00025 public: 00026 TH1D *fWtHst1; // Histogram of the weight wt 00027 TH1D *fWtHst2; // Histogram of wt filled with wt 00028 00029 public: 00030 TFoamMaxwt(); // NOT IMPLEMENTED (NEVER USED) 00031 TFoamMaxwt(Double_t, Int_t); // Principal Constructor 00032 TFoamMaxwt(TFoamMaxwt &From); // Copy constructor 00033 virtual ~TFoamMaxwt(); // Destructor 00034 void Reset(); // Reset 00035 TFoamMaxwt& operator=(const TFoamMaxwt &); // operator = 00036 void Fill(Double_t); 00037 void Make(Double_t, Double_t&); 00038 void GetMCeff(Double_t, Double_t&, Double_t&); // get MC efficiency= <w>/wmax 00039 00040 ClassDef(TFoamMaxwt,1); //Controlling of the MC weight (maximum weight) 00041 }; 00042 #endif