library: libFoam
#include "TFoamMaxwt.h"

TFoamMaxwt


class description - source file - inheritance tree (.pdf)

class TFoamMaxwt : public TObject

Inheritance Chart:
TObject
<-
TFoamMaxwt

    public:
TFoamMaxwt() TFoamMaxwt(Double_t, Int_t) TFoamMaxwt(TFoamMaxwt& From) virtual ~TFoamMaxwt() static TClass* Class() void Fill(Double_t) void GetMCeff(Double_t, Double_t&, Double_t&) virtual TClass* IsA() const void Make(Double_t, Double_t&) TFoamMaxwt& operator=(TFoamMaxwt&) void Reset() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    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

Class Description

 Class  TFoamMaxwt
 =================
 Small auxiliary class for controlling MC weight.
 It provides certain measure of the "maximum weight"
 depending on small user-parameter "epsilon".
 It creates and uses 2 histograms of the TH1D class.
 User defines no. of bins nBin,  nBin=1000 is  recommended
 wmax defines weight range (1,wmax), it is adjusted "manually"

____________________________________________________________________________

TFoamMaxwt()
 Constructor for streamer

TFoamMaxwt(Double_t wmax, Int_t nBin)
 Principal user constructor

TFoamMaxwt(TFoamMaxwt &From): TObject(From)
 Explicit COPY CONSTRUCTOR (unused, so far)

~TFoamMaxwt()
 Destructor

void Reset()
 Reseting weight analysis

void Fill(Double_t wt)
 Filling analyzed weight

void Make(Double_t eps, Double_t &MCeff)
 Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1
 To be called at the end of the MC run.

void GetMCeff(Double_t eps, Double_t &MCeff, Double_t &wtLim)
 Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1
 using information stored in two histograms.
 To be called at the end of the MC run.



Inline Functions


        TFoamMaxwt& operator=(TFoamMaxwt&)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: S. Jadach, P.Sawicki
Last update: root/foam:$Name: $:$Id: TFoamMaxwt.cxx,v 1.9 2005/08/30 08:27:42 brun Exp $


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.