70 , fTargetSelection(kMean)
97 , fTargetSelection(
ts)
106 , fTargetSelection(from.fTargetSelection)
108 Log() << kFATAL <<
"COPY CONSTRUCTOR NOT IMPLEMENTED" <<
Endl;
131 std::map<Int_t, Float_t>
txvec;
132 for (std::map<Int_t, Float_t>::const_iterator it = xvec.begin();
133 it != xvec.end(); ++it) {
135 Int_t dim = it->first;
139 coordinate = fXmin[dim] + std::numeric_limits<float>::epsilon();
141 coordinate = fXmax[dim] - std::numeric_limits<float>::epsilon();
143 txvec.insert(std::pair<Int_t, Float_t>(dim, VarTransform(dim,
coordinate)));
147 std::map<Int_t, Float_t>
target;
150 std::vector<PDEFoamCell*>
cells = FindCells(
txvec);
154 return std::vector<Float_t>(GetTotDim() - xvec.size(), 0);
161 target.insert(std::pair<Int_t, Float_t>(
idim, 0));
164 switch (fTargetSelection) {
172 Log() <<
"<PDEFoamMultiTarget::GetCellValue>: "
173 <<
"unknown target selection type!" <<
Endl;
178 std::vector<Float_t>
result;
180 for (std::map<Int_t, Float_t>::const_iterator it =
target.begin();
182 result.push_back(it->second);
217 (*cell_it)->GetHcub(
cellPosi, cellSize);
227 VarTransformInvers(dim,
cellPosi[dim] + 0.5 * cellSize[dim]);
251 std::map<Int_t, Float_t>
norm;
262 (*cell_it)->GetHcub(
cellPosi, cellSize);
269 VarTransformInvers(dim,
cellPosi[dim] + 0.5 * cellSize[dim]);
282 if (
norm[dim] > std::numeric_limits<Float_t>::epsilon()) {
287 target[dim] = (fXmax[dim] - fXmin[dim]) / 2.;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
const_iterator begin() const
const_iterator end() const
This PDEFoam variant stores in every cell the sum of event weights and the sum of the squared event w...
This PDEFoam variant is used to estimate multiple targets by creating an event density foam (PDEFoamE...
virtual void CalculateMean(std::map< Int_t, Float_t > &, const std::vector< PDEFoamCell * > &)
This function calculates the mean target value from a given number of cells.
virtual void CalculateMpv(std::map< Int_t, Float_t > &, const std::vector< PDEFoamCell * > &)
This function calculates the most probable target value from a given number of cells.
virtual std::vector< Float_t > GetCellValue(const std::map< Int_t, Float_t > &, ECellValue)
This function is overridden from PDFEFoam.
PDEFoamMultiTarget()
Default constructor for streamer, user should not use it.
MsgLogger & Endl(MsgLogger &ml)