Logo ROOT  
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#include "TObject.h"
8
9class TH1D;
10
11
12class TFoamMaxwt : public TObject {
13private:
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
17public:
18 TH1D *fWtHst1; ///< Histogram of the weight wt
19 TH1D *fWtHst2; ///< Histogram of wt filled with wt
20
21public:
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
int Int_t
Definition: RtypesCore.h:41
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
Small auxiliary class for controlling MC weight.
Definition: TFoamMaxwt.h:12
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:104
void Fill(Double_t)
Filling analyzed weight.
Definition: TFoamMaxwt.cxx:93
TFoamMaxwt()
Constructor for streamer.
Definition: TFoamMaxwt.cxx:23
void Reset()
Reseting weight analysis.
Definition: TFoamMaxwt.cxx:70
TH1D * fWtHst1
Histogram of the weight wt.
Definition: TFoamMaxwt.h:18
Double_t fNent
No. of MC events.
Definition: TFoamMaxwt.h:14
Int_t fnBin
No. of bins on the weight distribution.
Definition: TFoamMaxwt.h:15
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:120
Double_t fwmax
Maximum analyzed weight.
Definition: TFoamMaxwt.h:16
TH1D * fWtHst2
Histogram of wt filled with wt.
Definition: TFoamMaxwt.h:19
TFoamMaxwt & operator=(const TFoamMaxwt &)
substitution =
Definition: TFoamMaxwt.cxx:80
virtual ~TFoamMaxwt()
Destructor.
Definition: TFoamMaxwt.cxx:60
1-D histogram with a double per channel (see TH1 documentation)}
Definition: TH1.h:614
Mother of all ROOT objects.
Definition: TObject.h:37