120 Log() << kFATAL <<
"<PDEFoamDistr::FillHistograms> Edge histograms have wrong size!" <<
Endl;
126 Log() << kFATAL <<
"<PDEFoamDistr::FillHist> Histograms not initialized!" <<
Endl;
130 std::vector<const TMVA::BinarySearchTreeNode*> nodes;
133 fBst->SearchVolume(&volume, &nodes);
136 std::vector<Float_t>
xmin(volume.
fLower->size(), std::numeric_limits<float>::max());
137 std::vector<Float_t>
xmax(volume.
fLower->size(), -std::numeric_limits<float>::max());
138 for (std::vector<const TMVA::BinarySearchTreeNode*>::const_iterator it = nodes.begin();
139 it != nodes.end(); ++it) {
140 std::vector<Float_t>
ev = (*it)->GetEventV();
160 for (std::vector<const TMVA::BinarySearchTreeNode*>::const_iterator it = nodes.begin();
161 it != nodes.end(); ++it) {
162 std::vector<Float_t>
ev = (*it)->GetEventV();
165 if ((*it)->GetClass() ==
fClass) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
This is a concrete implementation of PDEFoam.
PDEFoamDecisionTreeDensity()
virtual Double_t Density(std::vector< Double_t > &Xarg, Double_t &event_density)
This function is not used in the decision tree like PDEFoam, instead FillHist() is used.
virtual void FillHistograms(TMVA::Volume &, std::vector< TH1D * > &, std::vector< TH1D * > &, std::vector< TH1D * > &, std::vector< TH1D * > &)
Fill the given histograms with signal and background events, which are found in the volume.
This is an abstract class, which provides an interface for a PDEFoam density estimator.
Volume for BinarySearchTree.
std::vector< Double_t > * fLower
vector with lower volume dimensions
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
MsgLogger & Endl(MsgLogger &ml)