79 Log() << kFATAL <<
"<PDEFoamKernelLinN::Estimate>: PDEFoam not set!" <<
Endl;
112 Log() << kFATAL <<
"Wrong dimension of event variable!" <<
Endl;
118 cell->
GetHcub(cellPosi, cellSize);
131 std::vector<Float_t> ntxvec(txvec);
135 mindist = (txvec[dim] - cellPosi[dim]) / cellSize[dim];
137 ntxvec[dim] = cellPosi[dim] - xoffset;
138 mindistcell = foam->
FindCell(ntxvec);
140 mindist = 1 - mindist;
141 ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
142 mindistcell = foam->
FindCell(ntxvec);
149 result += cellval * (0.5 + mindist);
150 result += mindistcellval * (0.5 - mindist);
154 if (norm == 0)
return cellval;
155 else return result / norm;
170 std::vector<Float_t> &txvec,
180 cell->
GetHcub(cellPosi, cellSize);
184 std::vector<Float_t> ntxvec(txvec);
189 ntxvec[dim] = cellPosi[dim] - xoffset;
197 ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
198 right_cell = foam->
FindCell(ntxvec);
205 if (norm > 0) result /= norm;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
void GetHcub(PDEFoamVect &, PDEFoamVect &) const
Provides size and position of the cell These parameter are calculated by analyzing information in all...
PDEFoamKernelBase()
Default constructor for streamer.
Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue) override
Linear neighbors kernel estimator.
Float_t WeightLinNeighbors(PDEFoam *, std::vector< Float_t > &, ECellValue, Bool_t)
Returns the cell value, corresponding to 'txvec' (foam coordinates [0,1]), weighted by the neighbor c...
Float_t GetAverageNeighborsValue(PDEFoam *, std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
PDEFoamKernelLinN()
Default constructor for streamer.
Implementation of PDEFoam.
virtual Float_t GetCellValue(const std::vector< Float_t > &xvec, ECellValue cv, PDEFoamKernelBase *)
This function finds the cell, which corresponds to the given untransformed event vector 'xvec' and re...
virtual Bool_t CellValueIsUndefined(PDEFoamCell *)
Returns true, if the value of the given cell is undefined.
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
MsgLogger & Endl(MsgLogger &ml)