Logo ROOT   6.10/09
Reference Guide
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 //////////////////////////////////////////////////////////////////
8 // //
9 // Small auxiliary class for controlling MC weight. //
10 // //
11 //////////////////////////////////////////////////////////////////
12 
13 #include "TObject.h"
14 
15 class TH1D;
16 
17 
18 class TFoamMaxwt : public TObject {
19 private:
20  Double_t fNent; // No. of MC events
21  Int_t fnBin; // No. of bins on the weight distribution
22  Double_t fwmax; // Maximum analyzed weight
23 public:
24  TH1D *fWtHst1; // Histogram of the weight wt
25  TH1D *fWtHst2; // Histogram of wt filled with wt
26 
27 public:
28  TFoamMaxwt(); // NOT IMPLEMENTED (NEVER USED)
29  TFoamMaxwt(Double_t, Int_t); // Principal Constructor
30  TFoamMaxwt(TFoamMaxwt &From); // Copy constructor
31  virtual ~TFoamMaxwt(); // Destructor
32  void Reset(); // Reset
33  TFoamMaxwt& operator=(const TFoamMaxwt &); // operator =
34  void Fill(Double_t);
35  void Make(Double_t, Double_t&);
36  void GetMCeff(Double_t, Double_t&, Double_t&); // get MC efficiency= <w>/wmax
37 
38  ClassDef(TFoamMaxwt,1); //Controlling of the MC weight (maximum weight)
39 };
40 #endif
TFoamMaxwt & operator=(const TFoamMaxwt &)
substitution =
Definition: TFoamMaxwt.cxx:84
Int_t fnBin
Definition: TFoamMaxwt.h:21
int Int_t
Definition: RtypesCore.h:41
void GetMCeff(Double_t, Double_t &, Double_t &)
Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1 using information stored in...
Definition: TFoamMaxwt.cxx:124
void Reset()
Reseting weight analysis.
Definition: TFoamMaxwt.cxx:74
TH1D * fWtHst2
Definition: TFoamMaxwt.h:25
#define ClassDef(name, id)
Definition: Rtypes.h:297
void Make(Double_t, Double_t &)
Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1 To be called at the end of ...
Definition: TFoamMaxwt.cxx:108
tomato 1-D histogram with a double per channel (see TH1 documentation)}
Definition: TH1.h:594
TFoamMaxwt()
Constructor for streamer.
Definition: TFoamMaxwt.cxx:27
TH1D * fWtHst1
Definition: TFoamMaxwt.h:24
double Double_t
Definition: RtypesCore.h:55
virtual ~TFoamMaxwt()
Destructor.
Definition: TFoamMaxwt.cxx:64
Mother of all ROOT objects.
Definition: TObject.h:37
Double_t fwmax
Definition: TFoamMaxwt.h:22
void Fill(Double_t)
Filling analyzed weight.
Definition: TFoamMaxwt.cxx:97
Double_t fNent
Definition: TFoamMaxwt.h:20