Logo ROOT   6.07/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 #ifndef ROOT_TObject
14 #include "TObject.h"
15 #endif
16 
17 class TH1D;
18 
19 
20 class TFoamMaxwt : public TObject {
21 private:
22  Double_t fNent; // No. of MC events
23  Int_t fnBin; // No. of bins on the weight distribution
24  Double_t fwmax; // Maximum analyzed weight
25 public:
26  TH1D *fWtHst1; // Histogram of the weight wt
27  TH1D *fWtHst2; // Histogram of wt filled with wt
28 
29 public:
30  TFoamMaxwt(); // NOT IMPLEMENTED (NEVER USED)
31  TFoamMaxwt(Double_t, Int_t); // Principal Constructor
32  TFoamMaxwt(TFoamMaxwt &From); // Copy constructor
33  virtual ~TFoamMaxwt(); // Destructor
34  void Reset(); // Reset
35  TFoamMaxwt& operator=(const TFoamMaxwt &); // operator =
36  void Fill(Double_t);
37  void Make(Double_t, Double_t&);
38  void GetMCeff(Double_t, Double_t&, Double_t&); // get MC efficiency= <w>/wmax
39 
40  ClassDef(TFoamMaxwt,1); //Controlling of the MC weight (maximum weight)
41 };
42 #endif
TFoamMaxwt & operator=(const TFoamMaxwt &)
substitution =
Definition: TFoamMaxwt.cxx:84
Int_t fnBin
Definition: TFoamMaxwt.h:23
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:27
#define ClassDef(name, id)
Definition: Rtypes.h:254
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:618
TFoamMaxwt()
Constructor for streamer.
Definition: TFoamMaxwt.cxx:27
TH1D * fWtHst1
Definition: TFoamMaxwt.h:26
double Double_t
Definition: RtypesCore.h:55
virtual ~TFoamMaxwt()
Destructor.
Definition: TFoamMaxwt.cxx:64
Mother of all ROOT objects.
Definition: TObject.h:44
Double_t fwmax
Definition: TFoamMaxwt.h:24
void Fill(Double_t)
Filling analyzed weight.
Definition: TFoamMaxwt.cxx:97
Double_t fNent
Definition: TFoamMaxwt.h:22