ROOT logo
// @(#)root/foam:$Id: TFoamMaxwt.h 22726 2008-03-19 09:53:41Z pcanal $
// Author: S. Jadach <mailto:Stanislaw.jadach@ifj.edu.pl>, P.Sawicki <mailto:Pawel.Sawicki@ifj.edu.pl>

#ifndef ROOT_TFoamMaxwt
#define ROOT_TFoamMaxwt

//////////////////////////////////////////////////////////////////
//                                                              //
// Small auxiliary class for controlling MC weight.             //
//                                                              //
//////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif

class TH1D;


class TFoamMaxwt : public TObject {
private:
   Double_t  fNent;      // No. of MC events
   Int_t     fnBin;      // No. of bins on the weight distribution
   Double_t  fwmax;      // Maximum analyzed weight
public:
   TH1D   *fWtHst1;      // Histogram of the weight wt
   TH1D   *fWtHst2;      // Histogram of wt filled with wt

public:
   TFoamMaxwt();                            // NOT IMPLEMENTED (NEVER USED)
   TFoamMaxwt(Double_t, Int_t);             // Principal Constructor
   TFoamMaxwt(TFoamMaxwt &From);            // Copy constructor
   virtual ~TFoamMaxwt();                   // Destructor
   void Reset();                            // Reset
   TFoamMaxwt& operator=(const TFoamMaxwt &);    // operator =
   void Fill(Double_t);
   void Make(Double_t, Double_t&);
   void GetMCeff(Double_t, Double_t&, Double_t&);  // get MC efficiency= <w>/wmax

   ClassDef(TFoamMaxwt,1); //Controlling of the MC weight (maximum weight)
};
#endif
 TFoamMaxwt.h:1
 TFoamMaxwt.h:2
 TFoamMaxwt.h:3
 TFoamMaxwt.h:4
 TFoamMaxwt.h:5
 TFoamMaxwt.h:6
 TFoamMaxwt.h:7
 TFoamMaxwt.h:8
 TFoamMaxwt.h:9
 TFoamMaxwt.h:10
 TFoamMaxwt.h:11
 TFoamMaxwt.h:12
 TFoamMaxwt.h:13
 TFoamMaxwt.h:14
 TFoamMaxwt.h:15
 TFoamMaxwt.h:16
 TFoamMaxwt.h:17
 TFoamMaxwt.h:18
 TFoamMaxwt.h:19
 TFoamMaxwt.h:20
 TFoamMaxwt.h:21
 TFoamMaxwt.h:22
 TFoamMaxwt.h:23
 TFoamMaxwt.h:24
 TFoamMaxwt.h:25
 TFoamMaxwt.h:26
 TFoamMaxwt.h:27
 TFoamMaxwt.h:28
 TFoamMaxwt.h:29
 TFoamMaxwt.h:30
 TFoamMaxwt.h:31
 TFoamMaxwt.h:32
 TFoamMaxwt.h:33
 TFoamMaxwt.h:34
 TFoamMaxwt.h:35
 TFoamMaxwt.h:36
 TFoamMaxwt.h:37
 TFoamMaxwt.h:38
 TFoamMaxwt.h:39
 TFoamMaxwt.h:40
 TFoamMaxwt.h:41
 TFoamMaxwt.h:42