/usr/include/root/TFoamMaxwt.h is in libroot-math-foam-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | // @(#)root/foam:$Id$
// 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
|