84 Log() << kFATAL <<
"COPY CONSTRUCTOR NOT IMPLEMENTED" <<
Endl;
95 std::vector<Float_t> values = ev->
GetValues();
97 std::vector<Float_t> targets = ev->
GetTargets();
115 if (!(
fCells[iCell]->GetStat()))
159 return kernel->
Estimate(
this, txvec, cv);
184 cell->
GetHcub(cellPosi, cellSize);
188 std::vector<Float_t> ntxvec(txvec);
193 ntxvec[dim] = cellPosi[dim] - xoffset;
201 ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
209 if (norm > 0) result /= norm;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
std::vector< Float_t > & GetTargets()
std::vector< Float_t > & GetValues()
void GetHcub(PDEFoamVect &, PDEFoamVect &) const
Provides size and position of the cell These parameter are calculated by analyzing information in all...
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)=0
void Finalize() override
Calculate average cell target in every cell and save them to the cell.
Bool_t CellValueIsUndefined(PDEFoamCell *cell) override
Returns true, if the target error equals -1, as set in Finalize() in case of no events in the cell.
PDEFoamTarget()
Default constructor for streamer, user should not use it.
Float_t GetCellValue(const std::vector< Float_t > &xvec, ECellValue cv, PDEFoamKernelBase *) override
This function finds the cell, which corresponds to the given untransformed event vector 'xvec' and re...
PDEFoamTarget(const PDEFoamTarget &)
Copy Constructor NOT IMPLEMENTED (NEVER USED).
void FillFoamCells(const Event *ev, Float_t wt) override
This function fills an event into the discriminant PDEFoam.
Float_t GetAverageNeighborsValue(std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
Double_t GetCellElement(const PDEFoamCell *cell, UInt_t i) const
Returns cell element i of cell 'cell'.
void SetCellElement(PDEFoamCell *cell, UInt_t i, Double_t value)
Set cell element i of cell to value.
PDEFoam(const PDEFoam &)
Copy Constructor NOT IMPLEMENTED (NEVER USED).
Float_t VarTransform(Int_t idim, Float_t x) const
friend class PDEFoamKernelBase
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
PDEFoamCell ** fCells
[fNCells] Array of ALL cells
Int_t fLastCe
Index of the last cell.
MsgLogger & Endl(MsgLogger &ml)
Double_t Sqrt(Double_t x)
Returns the square root of x.