71 #ifndef ROOT_TMVA_PDEFoamDensityBase
79 TMVA::PDEFoamDensityBase::PDEFoamDensityBase()
83 fBoxHasChanged(
kTRUE),
84 fBst(new
TMVA::BinarySearchTree()),
85 fLogger(new MsgLogger("PDEFoamDensityBase"))
98 fBoxHasChanged(
kTRUE),
100 fLogger(new
MsgLogger(
"PDEFoamDensityBase"))
103 Log() <<
kFATAL <<
"Dimension of PDEFoamDensityBase is zero" <<
Endl;
114 if (fBst)
delete fBst;
115 if (fLogger)
delete fLogger;
127 fBoxVolume(distr.fBoxVolume),
128 fBoxHasChanged(distr.fBoxHasChanged),
141 Log() <<
kFATAL <<
"<PDEFoamDensityBase::FillBinarySearchTree> "
142 <<
"Binary tree is not set!" <<
Endl;
157 if (fBoxHasChanged) {
159 fBoxVolume = std::accumulate(fBox.begin(), fBox.end(), 1.0,
160 std::multiplies<Double_t>());
MsgLogger & Endl(MsgLogger &ml)
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
ClassImp(TMVA::PDEFoamDensityBase) TMVA
virtual ~PDEFoamDensityBase()
destructor
void FillBinarySearchTree(const Event *ev)
This method inserts the given event 'ev' it into the binary search tree.
Double_t GetBoxVolume()
Returns the volume of range searching box fBox.
Mother of all ROOT objects.
MsgLogger & Log() const
message logger
Abstract ClassifierFactory template that handles arbitrary types.